]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/home.html
home: fix search form to point to search page
[panikweb.git] / panikweb_templates / templates / home.html
1 {% extends "base.html" %}
2 {% load thumbnails %}
3 {% load paniktags %}
4 {% load staticfiles %}
5 {% block bodyID %}Home{% endblock %}
6 {% block title %}Home{% endblock %}
7 {% block nav %}
8 <div  class="mainSub">
9     <div class="wrapper">
10         <nav>
11         <form method="get" action="{% url 'search' %}" class="big marged" id="search-form">
12                 <label for="id_q">Rechercher:</label><input id="id_q" name="q" type="text"><button class="icon-search"></button>
13         </form>
14         </nav>
15     </div>
16 </div>
17 {% endblock %}
18 {% block main %}
19 <div class="marged">
20         {% with focus as news %}
21                 {% newsroll %}
22         {% endwith %}
23 </div>
24
25
26 <div class="sided wrapper">
27     <div class="marged">
28             <div class="leftPart">
29                     <h2><a href="{% url 'program' %}">Cette semaine sur Panik</a></h2>
30
31                     {% weeknav %}
32                     {% weekview %}
33
34             </div>
35
36             <div class="rightPart">
37             {% if emissions %}
38                     <div id="recent-emissions">
39                     <h3 class="sectionLabel"><a href="{% url 'emissions' %}">Nouveau dans la grille</a></h3>
40                     <ul class="custom list columns padded">
41                     {% for emission in emissions %}
42                             <li class="item ellipsis">
43                                     <a href="{% url 'emission-view' slug=emission.slug %}">
44                                             {% if emission.image %}
45                                                     <img style="float:right;margin-left:1em;" src="{{ emission.image|thumbnail:'20x20' }}"/>
46                                             {% endif %}
47                                             {{ emission.title }}
48                                     </a>
49                             </li>
50                     {% endfor %}
51                     </ul>
52                     </div>
53                     {% endif %}
54             {% if soundfiles %}
55
56                     <div id="recent-sounds">
57                     <h3 class="sectionLabel right"><a href="{% url 'listen' %}">Tous</a></h3>
58                     <h3 class="sectionLabel">Derniers sons</h3>
59                     <ul class="custom columns list">
60                     {% for soundfile in soundfiles %}
61                             <li class="item {% if soundfile.episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
62                               {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
63                             </li>
64                     {% endfor %}
65                     </ul>
66                     </div>
67                     {% endif %}
68
69             </div>
70     </div>
71 </div>
72
73 {% endblock %}
74 {% block related %}
75
76               <form method="post" action="{% url 'newsletter-subscribe' %}"
77                       class="big center padded" id="subscribe-form">
78               <p>Tous les lundis, l'actualité de la semaine de Panik :</p>
79                 {% csrf_token %}
80                 {{ newsletter_form.as_table }}
81                 <button>M'inscrire</button>
82               </form>
83 {% endblock %}