<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="/css/reset.css" type="text/css" rel="stylesheet" />
<link href="/css/geral.css" rel="stylesheet" type="text/css" />
<title>Gerenciador de eventos</title>
</head>
<body>
- <div id="top">
- <h1 class="title"><a href="/">Gerenciador de eventos</a></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">
- <h2>Autenticação</h2>
- <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 %}
+
+ <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>
- <ul id="main-menu">
- {% if user.is_authenticated %}
+ {% else %}
- {% 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/">Ver trabalhos cadastrados</a></li>
- {% endif %}
+ <ul id="menu_usuario">
- {% if user.participante_set.all %}
- <li><a href="/gerar-boleto">Gerar Boleto</a></li>
- {% endif %}
+ {% 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/">Ver trabalhos cadastrados</a></li>
+ {% endif %}
- {% if user.is_staff %}
- <li><a href="/admin">Administrar o conteúdo</a></li>
- {% endif %}
+ {% if user.participante_set.all %}
+ <li><a href="/gerar-boleto">Gerar Boleto</a></li>
+ {% endif %}
- <li><a href="/logout">Sair</a></li>
+ {% if user.is_staff %}
+ <li><a href="/admin">Administrar o conteúdo</a></li>
+ {% endif %}
- {% else %}
- <li><a href="/speaker/add/">Cadastre-se para enviar trabalhos</a></li>
- <!--<li><a href="/cadastro-participante">Cadastre-se para participar</a></li>-->
- {% endif %}
- </ul>
+ <li><a href="/logout">Sair</a></li>
+
+ </ul>
+
+ {% endif %}
+ </div>
<div id="content">
{% block content %}
+
{% endblock %}
</div>
</body>