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 git-svn-id: svn://10.0.0.236/trunk@256304 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -34,9 +34,12 @@ body {
|
||||
-moz-border-radius-topright: 5px;
|
||||
}
|
||||
|
||||
#header .links {
|
||||
#header .links, #footer {
|
||||
background-color: #929bb1;
|
||||
color: #f1dbc7;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
#header {
|
||||
-moz-border-radius-bottomleft: 5px;
|
||||
-moz-border-radius-bottomright: 5px;
|
||||
border: none;
|
||||
@@ -179,11 +182,8 @@ hr {
|
||||
/* footer */
|
||||
|
||||
#footer {
|
||||
background: #929bb1;
|
||||
color: #f1dbc7;
|
||||
border: 1px solid #747e93;
|
||||
width: 100%;
|
||||
font-size: 9pt;
|
||||
-moz-border-radius: 5px;
|
||||
}
|
||||
|
||||
@@ -198,24 +198,15 @@ hr {
|
||||
margin-top: 2ex;
|
||||
}
|
||||
|
||||
#footer .label {
|
||||
font-weight: bold;
|
||||
color: #dddddd;
|
||||
}
|
||||
|
||||
#footer .links {
|
||||
border-spacing: 30px;
|
||||
padding-bottom: 2ex;
|
||||
margin-bottom: 2ex;
|
||||
}
|
||||
|
||||
.separator {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
#footer li.form {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* tabs */
|
||||
|
||||
.tabbed .tabbody {
|
||||
|
||||
@@ -45,13 +45,14 @@
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
#header form {
|
||||
font-size: 85%;
|
||||
#header form, #header form input,
|
||||
#footer form, #footer form input
|
||||
{
|
||||
font-size: 95%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#header .links {
|
||||
font-size: 85%;
|
||||
border-left: 1px solid silver;
|
||||
border-right: 1px solid silver;
|
||||
border-bottom: 1px solid silver;
|
||||
@@ -67,6 +68,19 @@
|
||||
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) */
|
||||
|
||||
/* banner (begin) */
|
||||
@@ -117,7 +131,10 @@
|
||||
|
||||
/* titles (end) */
|
||||
|
||||
/* footer (begin) */
|
||||
/* footer (begin)
|
||||
* See also the "header" section for styles that apply
|
||||
* to both the header and footer.
|
||||
*/
|
||||
#footer {
|
||||
clear: both;
|
||||
margin-top: 5px;
|
||||
@@ -127,36 +144,27 @@
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#footer form {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#footer .btn,
|
||||
#footer .txt {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#footer #useful-links {
|
||||
display: table;
|
||||
padding-left: 1ex;
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
#footer #links-actions,
|
||||
#footer #links-saved,
|
||||
#footer #links-special {
|
||||
display: table-row;
|
||||
#footer ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
#links-saved ul {
|
||||
display: inline;
|
||||
}
|
||||
#links-saved th {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#footer .label {
|
||||
display: table-cell;
|
||||
white-space: nowrap;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#footer .links {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
/* footer (end) */
|
||||
@@ -508,19 +516,3 @@ form#Create .comment {
|
||||
#down_button {
|
||||
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 @@
|
||||
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>
|
||||
|
||||
@@ -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 %]
|
||||
|
||||
Reference in New Issue
Block a user