Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikweb
Commits
965b8359
Commit
965b8359
authored
Sep 22, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix search in episode section
parent
da5ee3c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
panikweb/paniktags/templatetags/paniktags.py
panikweb/paniktags/templatetags/paniktags.py
+1
-0
panikweb_templates/templates/emissions/episodes.html
panikweb_templates/templates/emissions/episodes.html
+0
-7
panikweb_templates/templates/emissions/nav.html
panikweb_templates/templates/emissions/nav.html
+4
-2
No files found.
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