diff options
author | mkanat%bugzilla.org <> | 2009-02-24 01:35:34 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-02-24 01:35:34 +0100 |
commit | 7cd25dd61e33ad7d5bf1c041937e1793c55e61fd (patch) | |
tree | 4a8164cb946a0610eb3cf34fb68a74542f0b3b64 /template | |
parent | 61e26c1346d60a18946e50a35f95bfe3f223d408 (diff) | |
download | bugzilla-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')
-rw-r--r-- | template/en/default/account/auth/login-small.html.tmpl | 15 | ||||
-rw-r--r-- | template/en/default/global/useful-links.html.tmpl | 4 |
2 files changed, 11 insertions, 8 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> diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index a7c6e1af7..1f1224980 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -27,7 +27,6 @@ <ul id="useful-links"> <li id="links-actions"> - <div class="label">Actions: </div> [% PROCESS "global/common-links.html.tmpl" qs_suffix = "_bottom" %] </li> @@ -38,9 +37,6 @@ %] [% print_pipe = 0 %] <li id="links-saved"> - <div class="label"> - Saved Searches: - </div> <ul class="links"> [% IF user.showmybugslink %] [% filtered_username = user.login FILTER url_quote %] |