mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Search: Fix search bar style in conference pages
This commit is contained in:
parent
3b3559c12f
commit
f9f1955e14
@ -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')
|
||||
|
||||
@ -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) }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user