+<!-- -*- coding: utf-8 -*-
+ Copyright (C) 2008 Lincoln de Sousa <lincoln@minaslivre.org>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link href="/site_media/css/geral.css" rel="stylesheet" type="text/css" />
- <title>Gerenciador de eventos</title>
+ <link href="/css/reset.css" type="text/css" rel="stylesheet" />
+ <link href="/css/geral.css" rel="stylesheet" type="text/css" />
+ <title>Encontro Mineiro de Software Livre</title>
</head>
<body>
- <h1>Gerenciador de eventos</h1>
- <em>Livre para aprimorar</em>
+ <div id="esquerda">
+ <h1><a href="/"><img src="/imgs/emsl.png" alt="EMSL - Encontro Mineiro de Software Livre" /></a></h1>
+ <ul id="menu">
+ <li><a href="/">Início</a></li>
+ {% for i in menus %}
+ <li><a href="{{ i.entry.get_absolute_url }}">{{ i }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
- {% if not user.is_authenticated %}
+ <div id="direita">
+ <div id="top-right">
- <form id="login-form" action="/login/" method="post">
- <div class="field login">
- <label for="login">Usuário</label>
- <input type="text" name="username" id="login" />
- </div>
- <div class="field password">
- <label for="password">Senha</label>
- <input type="password" name="password" id="password" />
- </div>
- <div class="field submit">
- <input type="submit" value="Ok" />
- </div>
- </form>
- {% endif %}
+ {% if not user.is_authenticated %}
- <ul id="main-menu">
- {% if user.is_authenticated %}
+ <form id="login-form" action="/login/" method="post">
+ <label for="login" class="inline">usuário</label>
+ <input type="text" id="login" name="username" size="16" />
+ <label for="passwd" class="inline">senha</label>
+ <input type="password" id="passwd" name="password" size="16" />
+ <input type="submit" value="ENTRAR" class="button" />
+ </form>
- {% if user.palestrante_set.all %}
- <li><a href="/editar-dados">Edite seus dados</a></li>
- <li><a href="/enviar-trabalho">Enviar trabalho</a></li>
- <li><a href="/trabalhos-cadastrados">Ver trabalhos cadastrados</a></li>
- {% endif %}
+ {% else %}
- {% if user.participante_set.all %}
- <li><a href="/gerar-boleto">Gerar Boleto</a></li>
- {% endif %}
+ <ul id="menu_usuario">
- <li><a href="/logout">Sair</a></li>
+ {% if user.palestrante_set.all %}
+ <li><a href="/speaker/{{ user.palestrante_set.get.id }}/">Editar dados pessoais</a></li>
+ <li><a href="/talks/add/">Enviar trabalho</a></li>
+ <li><a href="/speaker/{{ user.palestrante_set.get.id }}/talks/">Meus trabalhos cadastrados</a></li>
+ {% endif %}
+
+ {% if user.participante_set.all %}
+ <li><a href="/gerar-boleto">Gerar Boleto</a></li>
+ {% endif %}
+
+ {% if user.is_staff %}
+ <li><a href="/admin">Administrar o conteúdo</a></li>
+ {% endif %}
+
+ <li><a href="/logout">Sair</a></li>
+
+ </ul>
+
+ {% endif %}
+ </div>
- {% else %}
- <li><a href="/cadastro-palestrante">Cadastre-se para enviar trabalhos</a></li>
- <li><a href="/cadastro-participante">Cadastre-se para participar</a></li>
- {% endif %}
- </ul>
+ <div id="content">
+ {% block content %}
- {% block content %}
- {% endblock %}
+ {% endblock %}
+ </div>
</body>
</html>