Commit 7cd25dd6 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 478173: Add a "Remember" checkbox to the header/footer login form and…

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
parent 61e26c13
...@@ -34,9 +34,12 @@ body { ...@@ -34,9 +34,12 @@ body {
-moz-border-radius-topright: 5px; -moz-border-radius-topright: 5px;
} }
#header .links { #header .links, #footer {
background-color: #929bb1; background-color: #929bb1;
color: #f1dbc7; color: #ddd;
}
#header {
-moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px; -moz-border-radius-bottomright: 5px;
border: none; border: none;
...@@ -179,11 +182,8 @@ hr { ...@@ -179,11 +182,8 @@ hr {
/* footer */ /* footer */
#footer { #footer {
background: #929bb1;
color: #f1dbc7;
border: 1px solid #747e93; border: 1px solid #747e93;
width: 100%; width: 100%;
font-size: 9pt;
-moz-border-radius: 5px; -moz-border-radius: 5px;
} }
...@@ -198,24 +198,15 @@ hr { ...@@ -198,24 +198,15 @@ hr {
margin-top: 2ex; margin-top: 2ex;
} }
#footer .label {
font-weight: bold;
color: #dddddd;
}
#footer .links { #footer .links {
border-spacing: 30px; border-spacing: 30px;
padding-bottom: 2ex; margin-bottom: 2ex;
} }
.separator { .separator {
color: #cccccc; color: #cccccc;
} }
#footer li.form {
background-color: transparent;
}
/* tabs */ /* tabs */
.tabbed .tabbody { .tabbed .tabbody {
......
...@@ -45,13 +45,14 @@ ...@@ -45,13 +45,14 @@
padding-bottom: 2px; padding-bottom: 2px;
} }
#header form { #header form, #header form input,
font-size: 85%; #footer form, #footer form input
{
font-size: 95%;
display: inline; display: inline;
} }
#header .links { #header .links {
font-size: 85%;
border-left: 1px solid silver; border-left: 1px solid silver;
border-right: 1px solid silver; border-right: 1px solid silver;
border-bottom: 1px solid silver; border-bottom: 1px solid silver;
...@@ -67,6 +68,19 @@ ...@@ -67,6 +68,19 @@
color: green; color: green;
} }
form.mini_login input.bz_login {
width: 10em;
}
form.mini_login input.bz_password {
width: 6em;
}
form.mini_login input.bz_remember {
margin: 0;
}
.bz_mini_login_help {
color: #777;
}
/* header (end) */ /* header (end) */
/* banner (begin) */ /* banner (begin) */
...@@ -117,7 +131,10 @@ ...@@ -117,7 +131,10 @@
/* titles (end) */ /* titles (end) */
/* footer (begin) */ /* footer (begin)
* See also the "header" section for styles that apply
* to both the header and footer.
*/
#footer { #footer {
clear: both; clear: both;
margin-top: 5px; margin-top: 5px;
...@@ -127,36 +144,27 @@ ...@@ -127,36 +144,27 @@
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
#footer form {
display: inline;
}
#footer .btn,
#footer .txt {
font-size: 80%;
}
#footer #useful-links { #footer #useful-links {
display: table;
padding-left: 1ex; padding-left: 1ex;
padding-right: 1ex; padding-right: 1ex;
} }
#footer #links-actions, #footer ul {
#footer #links-saved,
#footer #links-special {
display: table-row;
list-style-type: none; list-style-type: none;
} }
#links-saved ul {
display: inline;
}
#links-saved th {
vertical-align: top;
}
#footer .label { #footer .label {
display: table-cell;
white-space: nowrap; white-space: nowrap;
vertical-align: top; vertical-align: top;
} }
#footer .links { #footer .links {
display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* footer (end) */ /* footer (end) */
...@@ -508,19 +516,3 @@ form#Create .comment { ...@@ -508,19 +516,3 @@ form#Create .comment {
#down_button { #down_button {
background-image: url(global/down.png); background-image: url(global/down.png);
} }
.mini_login, .mini_login input, .mini_login button {
font-size: small;
}
form.mini_login input.bz_password, form.mini_login input.bz_login {
width: 10em;
}
form .bz_remember, form .bz_restrict {
margin: 0.4em 0;
}
.bz_mini_login_help {
color: #ccc;
}
...@@ -47,11 +47,18 @@ ...@@ -47,11 +47,18 @@
type="password" type="password"
onfocus="mini_login_on_focus( this )" 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"> <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"> <div class="bz_default_hidden">
[% PROCESS "global/hidden-fields.html.tmpl" [% PROCESS "global/hidden-fields.html.tmpl"
exclude="^Bugzilla_(login|password|restrictlogin)$" %] exclude="^Bugzilla_(login|password|restrictlogin|remember)$" %]
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
mini_login_constants = { mini_login_constants = {
...@@ -59,9 +66,9 @@ ...@@ -59,9 +66,9 @@
"password" : "password", "password" : "password",
"warning" : "You must set the login and password before logging in." "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 %]'); init_mini_login_form('[% qs_suffix FILTER html %]');
} ); } );
</script> </script>
</form> </form>
</li> </li>
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
<ul id="useful-links"> <ul id="useful-links">
<li id="links-actions"> <li id="links-actions">
<div class="label">Actions: </div>
[% PROCESS "global/common-links.html.tmpl" qs_suffix = "_bottom" %] [% PROCESS "global/common-links.html.tmpl" qs_suffix = "_bottom" %]
</li> </li>
...@@ -38,9 +37,6 @@ ...@@ -38,9 +37,6 @@
%] %]
[% print_pipe = 0 %] [% print_pipe = 0 %]
<li id="links-saved"> <li id="links-saved">
<div class="label">
Saved Searches:
</div>
<ul class="links"> <ul class="links">
[% IF user.showmybugslink %] [% IF user.showmybugslink %]
[% filtered_username = user.login FILTER url_quote %] [% filtered_username = user.login FILTER url_quote %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment