Files
Phraseanet/templates/web/admin/search-engine/sphinx-search.html.twig
Romain Neutron e7421e1fdd Fix twig tags
2013-12-03 20:02:39 +01:00

26 lines
1.4 KiB
Twig

<h1>{{ 'SphinxSearch search-engine configuration' | trans }}</h1>
<form method="post" action="{{ path('admin_searchengine_post') }}">
<div>{{ 'Sphinx Search connection configuration' | trans }}</div>
<div>{{ 'Sphinx Search server' | trans }}</div>
<input type="text" name="host" value="{{ configuration['host'] | default('127.0.0.1') }}"/>
<input type="text" name="port" value="{{ configuration['port'] | default('93') }}"/>
<div>{{ 'Sphinx Search RealTime server' | trans }}</div>
<input type="text" name="rt_host" value="{{ configuration['rt_host'] }}"/>
<input type="text" name="rt_port" value="{{ configuration['rt_port'] }}"/>
<div>{{ 'Charset to use for indexation' | trans }}</div>
{% for charset, charsetObject in charsets %}
<input type="checkbox" name="charset_tables[]" value="{{ charset }}" {% if charset in configuration['charset_tables'] %}checked="checked"{% endif %} > {{ charsetObject.get_name() }}
{% endfor %}
<br/><br/>
<div>{{ 'Date fields available for search' | trans }}</div>
{% for field in date_fields %}
<input type="checkbox" name="date_fields[]" value="{{ field }}" {% if field in configuration['date_fields'] %}checked="checked"{% endif %} > {{ field }}
{% endfor %}
<button type="submit" class="btn btn-warning" >{{ 'boutton::valider' | trans }}</button>
</form>
<textarea style="font-family: monospace;width:90%;height:70%">{{ configfile }}</textarea>