Koha/koha-tmpl/intranet-tmpl/prog/en/css/login.css
Fridolyn SOMERS d1bec84142 Bug 11146: Show a go back link on no permission page
When a user does not have permissions for a page or module, the
authentication page is displayed with message

  "Error: You do not have permission to access this page.".

Most librarians uses the "previous page" button of their browser to
come back on the page they were before trying to get to the
non-permitted page.

This patch adds a button to help coming back to previous page.
It also changes the "Click to log out" link as a button.

Test plan :
- Define a user with staff permissions but no permission on tools module
- Login with this user
=> You get to intranet home page
- Edit URL to go to tools module : cgi-bin/koha/tools/tools-home.pl
=> You get a page with a red error message and 2 buttons "Previous page"
   and "Log out"
- Click on "Previous page"
=> Go get to intranet home page
- Edit URL to go to tools module : cgi-bin/koha/tools/tools-home.pl
- Click on "Log out" button
=> You are logged-out and get to authentication page : cgi-bin/koha/mainpage.pl?logout.x=1

Signed-off-by: Garming Sam <garming@catalyst.net.nz>

Works as intended.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-11-23 19:43:37 +00:00

176 lines
3.3 KiB
CSS

a.edit, a.delete, a.edit:hover, a.delete:hover {
border-bottom: none;
display: block;
padding: 5px 0;
text-align: center;
}
a.edit:hover {
background: #ccc;
color: #036;
}
a:visited {
color: #006;
}
a:hover {
/* border-bottom: 1px solid #3a75ae;*/
color: #069;
}
body {
background: #f5f5f5;
}
form, label input {
margin: 0;
padding: 0;
}
input:focus, textarea:focus, label:focus {
background: #fff;
border: 1px solid #686868;
}
label {
display : block;
margin : .2em 0;
}
#logo { margin-bottom: 2em; }
#login {
background: #fff;
border: 1px solid #a2a2a2;
margin: 4em auto;
padding: 1.5em;
position : relative;
top : auto;
right : auto;
width: 25em;
}
#login #login_error {
background: #D23F3F;
border: 1px solid #a40000;
color: #fff;
font-size: 120%;
line-height: 140%;
font-weight: bold;
margin: 1em 0;
padding: .5em;
text-align: center;
text-shadow: 0px 1px 1px #6C1010;
filter: dropshadow(color=#6C1010, offx=0, offy=1);
-moz-border-radius: 5px;
border-radius: 5px;
}
#login #login_error a:link,
#login #login_error a:visited {
color : #FFC;
}
#login #login_error a:hover,
#login #login_error a:active {
color : #FCFC4D;
}
#login h1 {
background: url(../../img/koha-logo.gif) no-repeat top center;
margin-top: 0;
margin-bottom : .5em;
}
#login h1 a {
display: block;
text-indent: -1000px;
height: 74px;
border-bottom: none;
}
#login input {
padding: 3px;
}
#login ul {
list-style: none;
margin: 0;
padding: 0;
}
#login ul li {
display: inline;
margin-left: 1.4em;
text-align: center;
}
#login #userid, #password {
font-size: 1.7em;
width: 97%;
}
#login #branch {
width : 99%;
}
#login #submit, #login .button {
font-size: 1.4em;
padding : .3em .6em;
}
#login #onerror_actions {
margin-bottom: 1em;
text-align: center;
}
#login #onerror_actions .button {
margin: 3px;
color: #333333;
}
#footer {
text-align: center;
border-top: 1px solid #ccc;
padding-top: 1em;
font-style: italic;
}
.submit input, .submit input:focus, .button {
border: 1px outset #999999;
border-top-color: #666;
border-left-color: #666;
-moz-border-radius : 2px;
padding: 0.25em;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f7f7f7 35%, #e0e0e0 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(35%,#f7f7f7), color-stop(100%,#e0e0e0)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* W3C */
color: #333333;
padding: 0.25em;
}
.submit input:active, .button:active {
background: #f4f4f4;
border: 1px solid #999;
border-left-color: #999;
border-top-color: #999;
}
.submit, .editform th, #postcustomsubmit {
text-align: right;
}
textarea, input, select {
background: #f4f4f4;
border: 1px solid #b2b2b2;
color: #000;
font: 13px Verdana, Arial, Helvetica, sans-serif;
margin: 1px;
padding: 3px;
}