Commit 965b8359 authored by fred's avatar fred

fix search in episode section

parent da5ee3c8
......@@ -56,6 +56,7 @@ def emission_nav(context, date=None, klass=None):
'episodes': context.get('episodes'),
'emission': context.get('emission'),
'episode': context.get('episode'),
'search_query': context.get('search_query'),
}
@register.inclusion_tag('episodes/inline.html', takes_context=True)
......
......@@ -5,13 +5,6 @@
{% endblock %}
{% block main %}
<form method="get" action="." class="padded center" id="search-form">
<div class="big ">
<label for="id_q">Rechercher :</label>
<input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
<button class="icon-search"></button>
</div>
</form>
<div class="wrapper {% if episodes %}sided{% endif %}">
{% if search_query and not episodes %}
......
......@@ -58,8 +58,10 @@
{% endif %}
</div>
<div class="rightPart">
<form method="get" action="." class="" id="search-form">
<label for="id_q">Rechercher:</label><input id="id_q" name="q" type="text"><button class="icon-search"></button>
<form method="get" action="{% url 'emissionEpisodes' slug=emission.slug %}" class="" id="search-form">
<label for="id_q">Rechercher :</label>
<input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
<button class="icon-search"></button>
</form>
</div>
</header>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment