mudança brusca na modelagem do banco, principalmente no que se remete a gerenciamento...
[cascardo/eventmanager.git] / templates / base.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 {% load i18n %}
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
6     <head>
7         <title>Encontro Mineiro de Software Livre</title>
8         <link rel="stylesheet" type="text/css" href="/site_media/css/geral.css" />
9     </head>
10     <body>
11         <div id="headsection">
12             <h1 class="title"><a href="/">Encontro Mineiro de Software Livre</a></h1>
13
14             {% if user.is_authenticated %}
15
16                 {% if user.palestrante_set.all %}
17                 <div id="menu-palestrante">
18                     <h3>Menu do palestrante</h3>
19                     <ul>
20                         <li><a href="/submeter_trabalho">Submeter Trabalho</a></li>
21                         <li><a href="/meus_trabalhos">Trabalhos inscritos</a></li>
22                         <li><a href="/logout">Sair ({{ user }})</a></li>
23                     </ul>
24                 </div>
25                 {% endif %}
26
27             {% else %}
28
29             <form id="login-form" method="post" action=".">
30                 <div class="field">
31                     <label for="id_username">Usuário:</label>
32                     <input id="id_username" class="vTextField required" type="text"
33                            maxlength="30" name="username" />
34                 </div>
35                 <div class="field">
36                     <label for="id_password-login">Senha:</label>
37                     <input id="id_password-login" class="vTextField required"
38                            type="password" name="password" />
39
40                     <input type="submit" value="Login" class="submit" name="submitting_login_form" />
41                 </div>
42             </form>
43             {% endif %}
44
45         </div>
46
47         <ul id="menu">
48             <li><a href="/inscricao">Inscrição</a></li>
49             <li><a href="/chamada_trabalhos">Chamada de trabalhos</a></li>
50             <li><a href="/programacao">Programação</a></li>
51
52             {% for i in menu %}
53             <li><a href="/secao/{{ i.secao.id }}">{{ i.titulo }}</a></li>
54             {% endfor %}
55         </ul>
56
57         <div id="content">
58         {% block content %}{% endblock %}
59         </div>
60
61         <div id="footer">
62             <strong>Encontro Mineiro de Software Livre 2007 © Copyleft</strong>
63             <address><a href="mailto:emsl@minaslivre.org">emsl@minaslivre.org</a></address>
64         </div>
65
66     </body>
67 </html>
68 {# vim: set ft=htmldjango: #}