comparison pylons_app/templates/login.html @ 186:556473ba0399

fixed menu in home page, and added login html with forms that validates username and password.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 01:32:30 +0200
parents
children a55c17874486
comparison
equal deleted inserted replaced
185:3380ca40cdba 186:556473ba0399
1 ## -*- coding: utf-8 -*-
2 <%!
3 from pylons_app.lib import filters
4 %>
5 <%inherit file="base/base.html"/>
6 <%def name="title()">
7 ${c.repos_prefix} Mercurial Repositories
8 </%def>
9 <%def name="breadcrumbs()">
10 ${c.repos_prefix} Mercurial Repositories
11 </%def>
12 <%def name="page_nav()">
13 ${self.menu('home')}
14 </%def>
15 <%def name="main()">
16 <div>
17 <br />
18 <h2>${_('Login')}</h2>
19 ${h.form(h.url.current())}
20 <table>
21 <tr>
22 <td>${_('Username')}</td>
23 <td>${h.text('username')}</td>
24 <td>${self.get_form_error('username')}
25
26 </td>
27 </tr>
28 <tr>
29 <td>${_('Password')}</td>
30 <td>${h.password('password')}</td>
31 <td>${self.get_form_error('password')}</td>
32 </tr>
33 <tr>
34 <td></td>
35 <td>${h.submit('login','login')}</td>
36 </tr>
37 </table>
38 ${h.end_form()}
39 </div>
40 </%def>
41
42