From 437ff3e464318926cd003f7573872267ca98ba9a Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Mon, 30 Apr 2012 13:45:29 -0500 Subject: [PATCH] form.add_button(value,link) --- VERSION | 2 +- applications/welcome/views/default/user.html | 18 +++++++----------- gluon/html.py | 2 ++ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/VERSION b/VERSION index b2900d9f..8a46f933 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-30 11:39:06) dev +Version 1.99.7 (2012-04-30 13:45:03) dev diff --git a/applications/welcome/views/default/user.html b/applications/welcome/views/default/user.html index aa84a01d..61b72036 100644 --- a/applications/welcome/views/default/user.html +++ b/applications/welcome/views/default/user.html @@ -1,17 +1,13 @@ {{extend 'layout.html'}}

{{=T( request.args(0).replace('_',' ').capitalize() )}}

- {{=form}} - {{if request.args(0)=='login':}} - {{if not 'register' in auth.settings.actions_disabled:}} -
- {{=T('Register')}} - {{pass}} - {{if not 'request_reset_password' in auth.settings.actions_disabled:}} -
- {{=T('Lost Password')}} - {{pass}} - {{pass}} + {{if request.args(0)=='login':}} + {{if not 'register' in auth.settings.actions_disabled:}} + {{form.add_button(T('Register'),URL(args='register'))}} + {{pass}} + {{form.add_button(T('Lost Password'),URL(args='request_reset_password'))}} + {{pass}} + {{=form}}