Search: Fix search bar style in conference pages

This commit is contained in:
Alejandro Avilés 2016-11-28 15:34:03 +01:00 committed by Alejandro Avilés
parent 3b3559c12f
commit f9f1955e14
2 changed files with 10 additions and 8 deletions

View File

@ -37,7 +37,7 @@ class SearchPlugin(IndicoPlugin):
def init(self):
super(SearchPlugin, self).init()
self.connect(plugins_loaded, self._plugins_loaded, sender=self.app)
self.template_hook('conference-header', self._add_conference_search_box)
self.template_hook('conference-header-right-column', self._add_conference_search_box)
self.template_hook('page-header', self._add_category_search_box)
self.inject_js('search_js')
self.inject_css('search_css')

View File

@ -1,9 +1,11 @@
{% from 'forms/_form.html' import form_header, form_footer %}
<div class="confSearchBox">
{{ form_header(form, method='get', action=url_for_plugin('search.search', event), classes='UIForm', i_form=false) }}
<input class="searchButton" type="submit" value="{% trans %}Search{% endtrans %}">
{{ form.phrase(class_='searchField', id='conference-search-phrase') }}
{% block extra_fields %}{% endblock %}
{{ form_footer(form, i_form=false) }}
</div>
{{ form_header(form, method='get', action=url_for_plugin('search.search', event), i_form=false) }}
<div class="toolbar thin f-j-end">
<div class="group">
{{ form.phrase(id='conference-search-phrase', placeholder=_("Search...")) }}
<button class="i-button highlight text-color color-on-hover icon-search" type="submit"></button>
{% block extra_fields %}{% endblock %}
</div>
</div>
{{ form_footer(form, i_form=false) }}