forked from wallabag/wallabag
Merged list and search methods
This commit is contained in:
@ -16,7 +16,19 @@
|
||||
</div>
|
||||
<div class="col s6">
|
||||
<div class="input-field">
|
||||
{{ render(controller("WallabagUserBundle:Manage:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
|
||||
<form name="search_users" method="GET" action="{{ path('user_index')}}">
|
||||
{% if form_errors(searchForm) %}
|
||||
<span class="black-text">{{ form_errors(searchForm) }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% if form_errors(searchForm.term) %}
|
||||
<span class="black-text">{{ form_errors(searchForm.term) }}</span>
|
||||
{% endif %}
|
||||
|
||||
{{ form_widget(searchForm.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'user.search.placeholder'} }) }}
|
||||
|
||||
{{ form_rest(searchForm) }}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
<form name="search_users" method="GET" action="{{ path('user-search')}}">
|
||||
{% if form_errors(form) %}
|
||||
<span class="black-text">{{ form_errors(form) }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% if form_errors(form.term) %}
|
||||
<span class="black-text">{{ form_errors(form.term) }}</span>
|
||||
{% endif %}
|
||||
|
||||
<i class="material-icons prefix">search</i>
|
||||
{{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'user.search.placeholder'} }) }}
|
||||
<label for="search_user_term" class="active">{{ 'user.search.label' | trans }}</label>
|
||||
|
||||
{{ form_rest(form) }}
|
||||
</form>
|
||||
Reference in New Issue
Block a user