Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
965b8359
Commit
965b8359
authored
Sep 22, 2013
by
fred
Browse files
fix search in episode section
parent
da5ee3c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
panikweb/paniktags/templatetags/paniktags.py
View file @
965b8359
...
...
@@ -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
)
...
...
panikweb_templates/templates/emissions/episodes.html
View file @
965b8359
...
...
@@ -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 %}
...
...
panikweb_templates/templates/emissions/nav.html
View file @
965b8359
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment