summaryrefslogtreecommitdiffstats
path: root/template/en/default/account
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-02-24 01:35:34 +0100
committermkanat%bugzilla.org <>2009-02-24 01:35:34 +0100
commit7cd25dd61e33ad7d5bf1c041937e1793c55e61fd (patch)
tree4a8164cb946a0610eb3cf34fb68a74542f0b3b64 /template/en/default/account
parent61e26c1346d60a18946e50a35f95bfe3f223d408 (diff)
downloadbugzilla-7cd25dd61e33ad7d5bf1c041937e1793c55e61fd.tar.gz
bugzilla-7cd25dd61e33ad7d5bf1c041937e1793c55e61fd.tar.xz
Bug 478173: Add a "Remember" checkbox to the header/footer login form and restructure the header and footer so that it fits nicely.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat
Diffstat (limited to 'template/en/default/account')
-rw-r--r--template/en/default/account/auth/login-small.html.tmpl15
1 files changed, 11 insertions, 4 deletions
diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl
index 56f281b24..821244cb8 100644
--- a/template/en/default/account/auth/login-small.html.tmpl
+++ b/template/en/default/account/auth/login-small.html.tmpl
@@ -47,11 +47,18 @@
type="password"
onfocus="mini_login_on_focus( this )"
>
+ [% IF Param('rememberlogin') == 'defaulton' ||
+ Param('rememberlogin') == 'defaultoff'
+ %]
+ <input type="checkbox" id="Bugzilla_remember[% qs_suffix %]"
+ name="Bugzilla_remember" value="on" class="bz_remember"
+ [%+ "checked" IF Param('rememberlogin') == "defaulton" %]>
+ <label for="Bugzilla_remember[% qs_suffix %]">Remember</label>
+ [% END %]
<input type="submit" name="GoAheadAndLogIn" value="Log in" id="log_in">
- [<a href="[% target FILTER html %]?GoAheadAndLogIn=1">options</a>]
<div class="bz_default_hidden">
[% PROCESS "global/hidden-fields.html.tmpl"
- exclude="^Bugzilla_(login|password|restrictlogin)$" %]
+ exclude="^Bugzilla_(login|password|restrictlogin|remember)$" %]
</div>
<script type="text/javascript">
mini_login_constants = {
@@ -59,9 +66,9 @@
"password" : "password",
"warning" : "You must set the login and password before logging in."
}
- YAHOO.util.Event.onDOMReady(function() {
+ YAHOO.util.Event.onDOMReady(function() {
init_mini_login_form('[% qs_suffix FILTER html %]');
- } );
+ } );
</script>
</form>
</li>