1 <!-- -*- coding: utf-8 -*-
2 Copyright (C) 2008 Lincoln de Sousa <lincoln@minaslivre.org>
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.
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.
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.
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">
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>
29 <h1 class="title"><a href="/">Gerenciador de eventos</a></h1>
30 <em>"Livre para aprimorar"</em>
33 {% if not user.is_authenticated %}
35 <form id="login-form" action="/login/" method="post">
37 <div class="field login">
38 <label for="login">Usuário</label>
39 <input type="text" name="username" id="login" />
41 <div class="field password">
42 <label for="password">Senha</label>
43 <input type="password" name="password" id="password" />
45 <div class="field submit">
46 <input type="submit" value="Ok" />
52 {% if user.is_authenticated %}
54 {% if user.palestrante_set.all %}
55 <li><a href="/lecturer/{{ user.palestrante_set.get.id }}/">Editar dados pessoais</a></li>
56 <li><a href="/talks/add/">Enviar trabalho</a></li>
57 <li><a href="/lecturer/{{ user.palestrante_set.get.id }}/talks/">Ver trabalhos cadastrados</a></li>
60 {% if user.participante_set.all %}
61 <li><a href="/gerar-boleto">Gerar Boleto</a></li>
64 {% if user.is_staff %}
65 <li><a href="/admin">Administrar o conteúdo</a></li>
68 <li><a href="/logout">Sair</a></li>
71 <li><a href="/lecturer/add/">Cadastre-se para enviar trabalhos</a></li>
72 <!--<li><a href="/cadastro-participante">Cadastre-se para participar</a></li>-->