adicionando view de notícias e adicionando listagem de menu
[cascardo/eventmanager.git] / templates / base.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 {% load i18n %}
5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
6     <head>
7         <title>Encontro Mineiro de Software Livre</title>
8
9         <style type="text/css">
10             body {
11                 margin: 10px;
12                 background-color: #fff;
13             }
14
15             h1.title {
16                 color: #f00;
17             }
18
19             label {
20                 display: block;
21                 width: 180px;
22                 font-weight: bold;
23             }
24
25             #login-form {
26                 position: absolute;
27                 right: 10px;
28                 background-color: #f7f7f7;
29                 padding: 10px;
30             }
31
32             #login-form label {
33                 width: 80px !important;
34                 float: left;
35             }
36
37             #login-form input[type=text] {
38                 width: 100px;
39             }
40
41             #login-form input[type=password]  {
42                 width: 40px;
43             }
44         </style>
45     </head>
46     <body>
47         <h1 class="title"><a href="/">Encontro Mineiro de Software Livre</a></h1>
48
49         {% if user.is_authenticated %}
50
51         <ul>
52             <li><a href="/inscrever_palestra">Inscreva uma palestra</a></li>
53             <li><a href="/inscrever_minicurso">Inscreva um minicurso</a></li>
54             <li><a href="/logout">Sair</a></li>
55         </ul>
56
57         {% else %}
58
59         <form id="login-form" method="post" action=".">
60             <h3>Login</h3>
61             <div class="field">
62                 <label for="id_username">Usuário:</label>
63                 <input id="id_username" class="vTextField required" type="text"
64                        maxlength="30" name="username" />
65             </div>
66             <div class="field">
67                 <label for="id_password-login">Senha:</label>
68                 <input id="id_password-login" class="vTextField required"
69                        type="password" name="password" />
70
71                 <input type="submit" value="Login" class="submit" name="submitting_login_form" />
72             </div>
73
74             <a href="/cadastro">Cadastre-se</a>
75         </form>
76
77         {% endif %}
78
79         {% if menu %}
80         <ul id="menu">
81             {% for i in menu %}
82             <li><a href="/secao/{{ i.id }}">{{ i.titulo }}</a></li>
83             {% endfor %}
84         </ul>
85         {% endif %}
86
87         <div id="conteudo">
88         {% block content %}{% endblock %}
89         </div>
90
91     </body>
92 </html>
93 {# vim: set ft=htmldjango: #}