mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix twig tags
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<div class="page-header">
|
||||
<h1>{% trans 'Phrasea search-engine configuration' %}</h1>
|
||||
<h1>{{ 'Phrasea search-engine configuration' | trans }}</h1>
|
||||
</div>
|
||||
|
||||
<form method="post" action="{{ path('admin_searchengine_post') }}">
|
||||
<fieldset>
|
||||
<legend>{% trans 'Stemming' %}</legend>
|
||||
{% trans 'Enable stemming' %} <input type="checkbox" name="stemming_enabled" value="1" {% if configuration['stemming_enabled'] %}checked="checked"{% endif %} />
|
||||
<legend>{{ 'Stemming' | trans }}</legend>
|
||||
{{ 'Enable stemming' | trans }} <input type="checkbox" name="stemming_enabled" value="1" {% if configuration['stemming_enabled'] %}checked="checked"{% endif %} />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{% trans 'Default sort' %}</legend>
|
||||
<legend>{{ 'Default sort' | trans }}</legend>
|
||||
<select name="default_sort">
|
||||
{% for sort, sort_name in available_sort %}
|
||||
<option value="{{ sort }}" {%if configuration['default_sort'] == sort %}selected="selected"{% endif %}>{{ sort_name }}</option>
|
||||
@@ -16,6 +16,6 @@
|
||||
</select>
|
||||
</fieldset>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-warning">{% trans 'boutton::valider' %}</button>
|
||||
<button type="submit" class="btn btn-warning">{{ 'boutton::valider' | trans }}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
@@ -1,26 +1,26 @@
|
||||
<h1>{% trans 'SphinxSearch search-engine configuration' %}</h1>
|
||||
<h1>{{ 'SphinxSearch search-engine configuration' | trans }}</h1>
|
||||
|
||||
<form method="post" action="{{ path('admin_searchengine_post') }}">
|
||||
<div>{% trans 'Sphinx Search connection configuration' %}</div>
|
||||
<div>{{ 'Sphinx Search connection configuration' | trans }}</div>
|
||||
|
||||
<div>{% trans 'Sphinx Search server' %}</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>{% trans 'Sphinx Search RealTime server' %}</div>
|
||||
<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>{% trans 'Charset to use for indexation' %}</div>
|
||||
<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>{% trans 'Date fields available for search' %}</div>
|
||||
<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" >{% trans 'boutton::valider' %}</button>
|
||||
<button type="submit" class="btn btn-warning" >{{ 'boutton::valider' | trans }}</button>
|
||||
</form>
|
||||
|
||||
<textarea style="font-family: monospace;width:90%;height:70%">{{ configfile }}</textarea>
|
Reference in New Issue
Block a user