Mercurial > kallithea
changeset 6904:1433199fb0f5
templates: use consistent form-group/buttons pattern for buttons in centered panels
author | domruf <dominikruf@gmail.com> |
---|---|
date | Mon, 11 Sep 2017 22:19:32 +0200 |
parents | 7e22d42320cd |
children | ff5c4b26461a |
files | kallithea/templates/login.html kallithea/templates/password_reset.html kallithea/templates/password_reset_confirmation.html kallithea/templates/register.html |
diffstat | 4 files changed, 19 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/login.html Mon Sep 11 21:45:33 2017 +0200 +++ b/kallithea/templates/login.html Mon Sep 11 22:19:32 2017 +0200 @@ -42,15 +42,20 @@ </div> </div> - <div class="links"> - ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))} - %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): - / - ${h.link_to(_("Don't have an account ?"),h.url('register'))} - %endif - <span class="buttons"> + <div class="form-group"> + <div> + ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))} + %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): + / + ${h.link_to(_("Don't have an account ?"),h.url('register'))} + %endif + </div> + </div> + + <div class="form-group"> + <div class="buttons"> ${h.submit('sign_in',_('Sign In'),class_="btn btn-default")} - </span> + </div> </div> </div> ${h.end_form()}
--- a/kallithea/templates/password_reset.html Mon Sep 11 21:45:33 2017 +0200 +++ b/kallithea/templates/password_reset.html Mon Sep 11 22:19:32 2017 +0200 @@ -34,9 +34,9 @@ </div> %endif - <div class="buttons"> - <div class="nohighlight"> - ${h.submit('send',_('Send Password Reset Email'),class_="btn btn-default")} + <div class="form-group"> + <div class="buttons"> + ${h.submit('send',_('Send Password Reset Email'),class_="btn btn-default")} </div> </div>
--- a/kallithea/templates/password_reset_confirmation.html Mon Sep 11 21:45:33 2017 +0200 +++ b/kallithea/templates/password_reset_confirmation.html Mon Sep 11 22:19:32 2017 +0200 @@ -45,9 +45,7 @@ <div class="form-group"> <div class="buttons"> - <div class="nohighlight"> - ${h.submit('send',_('Confirm'),class_="btn btn-default")} - </div> + ${h.submit('send',_('Confirm'),class_="btn btn-default")} </div> </div> </div>
--- a/kallithea/templates/register.html Mon Sep 11 21:45:33 2017 +0200 +++ b/kallithea/templates/register.html Mon Sep 11 22:19:32 2017 +0200 @@ -70,8 +70,8 @@ </div> %endif - <div class="buttons"> - <div class="nohighlight"> + <div class="form-group"> + <div class="buttons"> ${h.submit('sign_up',_('Sign Up'),class_="btn btn-default")} %if c.auto_active: <div class="alert alert-info">${_('Registered accounts are ready to use and need no further action.')}</div>