adding the site foreign key in Evento entity, adding Trilha
[cascardo/ema.git] / templates / base.html
1 <!-- -*- coding: utf-8 -*-
2  Copyright (C) 2008 Lincoln de Sousa <lincoln@minaslivre.org>
3
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of the
7  License, or (at your option) any later version.
8
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  General Public License for more details.
13
14  You should have received a copy of the GNU General Public
15  License along with this program; if not, write to the
16  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  Boston, MA 02111-1307, USA.
18 -->
19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
20           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
21 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
22   <head>
23     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24     <link href="/css/geral.css" rel="stylesheet" type="text/css" />
25     <title>Gerenciador de eventos</title>
26   </head>
27   <body>
28     <div id="top">
29       <h1 class="title"><a href="/">Gerenciador de eventos</a></h1>
30       <em>"Livre para aprimorar"</em>
31     </div>
32
33     {% if not user.is_authenticated %}
34
35     <form id="login-form" action="/login/" method="post">
36       <h2>Autenticação</h2>
37       <div class="field login">
38         <label for="login">Usuário</label>
39         <input type="text" name="username" id="login" />
40       </div>
41       <div class="field password">
42         <label for="password">Senha</label>
43         <input type="password" name="password" id="password" />
44       </div>
45       <div class="field submit">
46         <input type="submit" value="Ok" />
47       </div>
48     </form>
49     {% endif %}
50
51     <ul id="main-menu">
52       {% if user.is_authenticated %}
53
54       {% if user.palestrante_set.all %}
55       <li><a href="/speaker/{{ user.palestrante_set.get.id }}/">Editar dados pessoais</a></li>
56       <li><a href="/talks/add/">Enviar trabalho</a></li>
57       <li><a href="/speaker/{{ user.palestrante_set.get.id }}/talks/">Ver trabalhos cadastrados</a></li>
58       {% endif %}
59
60       {% if user.participante_set.all %}
61       <li><a href="/gerar-boleto">Gerar Boleto</a></li>
62       {% endif %}
63
64       {% if user.is_staff %}
65       <li><a href="/admin">Administrar o conteúdo</a></li>
66       {% endif %}
67
68       <li><a href="/logout">Sair</a></li>
69
70       {% else %}
71       <li><a href="/speaker/add/">Cadastre-se para enviar trabalhos</a></li>
72       <!--<li><a href="/cadastro-participante">Cadastre-se para participar</a></li>-->
73       {% endif %}
74     </ul>
75
76     <div id="content">
77       {% block content %}
78       {% endblock %}
79     </div>
80   </body>
81 </html>