Add Form for ElasticSearch Configuration.

Also changed type from array to Options object.
This commit is contained in:
Benoît Burnichon
2015-06-29 15:04:50 +02:00
parent 7271e28cf5
commit 28fee99fc4
20 changed files with 306 additions and 332 deletions

View File

@@ -1,11 +1,3 @@
<h1>{{ 'ElasticSearch configuration' | trans }}</h1>
<form method="post" action="{{ path('admin_searchengine_post') }}">
<div>{{ 'ElasticSearch connection configuration' | trans }}</div>
<div>{{ 'ElasticSearch server' | trans }}</div>
<input type="text" name="host" value="{{ configuration['host'] | default('localhost') }}"/>
<input type="text" name="port" value="{{ configuration['port'] | default('9200') }}"/>
<button type="submit" class="btn btn-warning" >{{ 'boutton::valider' | trans }}</button>
</form>
{{ form(form) }}

View File

@@ -23,7 +23,7 @@
</a>
</li>
<li>
<a target="right" href="{{ path('admin_searchengine_get') }}">
<a target="right" href="{{ path('admin_searchengine_form') }}">
<span>{{ 'SearchEngine settings' | trans }}</span>
</a>
</li>