adding main menu to the base template
[cascardo/ema.git] / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
4   <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6     <link href="/site_media/css/geral.css" rel="stylesheet" type="text/css" />
7     <title>Gerenciador de eventos</title>
8   </head>
9   <body>
10     <h1>Gerenciador de eventos</h1>
11     <em>Livre para aprimorar</em>
12
13     {% if not user.is_authenticated %}
14
15     <form id="login-form" action="/login/" method="post">
16       <div class="field login">
17         <label for="login">Usuário</label>
18         <input type="text" name="username" id="login" />
19       </div>
20       <div class="field password">
21         <label for="password">Senha</label>
22         <input type="password" name="password" id="password" />
23       </div>
24       <div class="field submit">
25         <input type="submit" value="Ok" />
26       </div>
27     </form>
28     {% endif %}
29
30     <ul id="main-menu">
31       {% if user.is_authenticated %}
32
33       {% if user.palestrante_set.all %}
34       <li><a href="/editar-dados">Edite seus dados</a></li>
35       <li><a href="/enviar-trabalho">Enviar trabalho</a></li>
36       <li><a href="/trabalhos-cadastrados">Ver trabalhos cadastrados</a></li>
37       {% endif %}
38
39       {% if user.participante_set.all %}
40       <li><a href="/gerar-boleto">Gerar Boleto</a></li>
41       {% endif %}
42
43       <li><a href="/logout">Sair</a></li>
44
45       {% else %}
46       <li><a href="/cadastro-palestrante">Cadastre-se para enviar trabalhos</a></li>
47       <li><a href="/cadastro-participante">Cadastre-se para participar</a></li>
48       {% endif %}
49     </ul>
50
51     {% block content %}
52     {% endblock %}
53   </body>
54 </html>