Messages and modal box

This commit is contained in:
Gabriel Cardoso 2013-11-05 13:45:07 -02:00
parent a69064c934
commit 45fb634881
4 changed files with 50 additions and 25 deletions

View file

@ -55,17 +55,30 @@ body {
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
} }
.loading span { .loading {
background: url(img/loader.gif) no-repeat center top;
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 50%; top: 50%;
left: 50%; left: 50%;
margin-top: -2.27272727272727em; width: 6em;
margin-left: -2.27272727272727em; height: 6em;
padding-top: 2.90909090909091em; margin-top: -3em;
margin-left: -3em;
text-align: center;
}
.loading img {
width: 3em;
height: 3em;
background-color: #f0f0f0;
display: inline-block;
padding: 0.3em;
border-radius: 0.4em;
}
.loading span {
font-size: 1.1em; font-size: 1.1em;
color: #666; color: #666;
display: inline-block;
padding-top: 0.36363636363636em;
} }
/* Header */ /* Header */
.header.rcue { .header.rcue {
@ -485,11 +498,11 @@ td.token-cell button {
font-family: "Open Sans", sans-serif; font-family: "Open Sans", sans-serif;
margin: 0; margin: 0;
} }
.modal .modal-body p { .modal .modal-body p span {
display: block;
font-size: 1.1em; font-size: 1.1em;
} }
.modal .modal-body p.primary { .modal .modal-body p span.primary {
font-size: 1.1em;
font-weight: bold; font-weight: bold;
margin-bottom: 0.45454545454545em; margin-bottom: 0.45454545454545em;
} }

View file

@ -75,18 +75,30 @@ body {
} }
.loading { .loading {
span {
background: url(img/loader.gif) no-repeat center top;
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 50%; top: 50%;
left: 50%; left: 50%;
margin-top: -2.27272727272727em; width: 6em;
margin-left: -2.27272727272727em; height: 6em;
padding-top: 2.90909090909091em; margin-top: -3em;
margin-left: -3em;
text-align: center;
img {
width: 3em;
height: 3em;
background-color: #f0f0f0;
display: inline-block;
padding: 0.3em;
border-radius: 0.4em;
}
span {
font-size: 1.1em; font-size: 1.1em;
color: #666; color: #666;
display: inline-block;
padding-top: 0.36363636363636em;
} }
} }
@ -592,11 +604,11 @@ td.token-cell button {
.modal-body { .modal-body {
p { p span {
display: block;
font-size: 1.1em; font-size: 1.1em;
&.primary { &.primary {
font-size: 1.1em;
font-weight: bold; font-weight: bold;
margin-bottom: 0.45454545454545em; margin-bottom: 0.45454545454545em;
} }

View file

@ -17,8 +17,8 @@ module.service('Dialog', function($dialog) {
var dialog = {}; var dialog = {};
dialog.confirmDelete = function(name, type, success) { dialog.confirmDelete = function(name, type, success) {
var title = 'Delete ' + type.charAt(0).toUpperCase() + type.slice(1); var title = 'Delete ' + type.charAt(0).toUpperCase() + type.slice(1);
var msg = '<p class="primary">Are you sure you want to permanently delete the ' + type + ' "' + name + '"?</p>' + var msg = '<span class="primary">Are you sure you want to permanently delete the ' + type + ' "' + name + '"?</span>' +
'<p>This action can\'t be undone.</p>'; '<span>This action can\'t be undone.</span>';
var btns = [ { var btns = [ {
result : 'cancel', result : 'cancel',
label : 'Cancel' label : 'Cancel'

View file

@ -22,15 +22,15 @@ passwordNewConfirm=New Password confirmation
authenticatorCode=One-time-password authenticatorCode=One-time-password
clientCertificate=Client Certificate clientCertificate=Client Certificate
invalidUser=Invalid username or password invalidUser=Invalid username or password.
invalidPassword=Invalid username or password invalidPassword=Invalid username or password.
accountDisabled=Account is disabled, contact admin accountDisabled=Account is disabled, contact admin
missingFirstName=Please specify first name missingFirstName=Please specify first name
missingLastName=Please specify last name missingLastName=Please specify last name
missingEmail=Please specify email missingEmail=Please specify email
missingUsername=Please specify username missingUsername=Please specify username
missingPassword=Please specify password missingPassword=Please specify password.
notMatchPassword=Passwords don't match notMatchPassword=Passwords don't match
missingTotp=Please specify authenticator code missingTotp=Please specify authenticator code
@ -49,7 +49,7 @@ actionTotpWarning=You need to set up the Google Authenticator to activate your a
actionProfileWarning=You need to update your user profile to activate your account. actionProfileWarning=You need to update your user profile to activate your account.
actionPasswordWarning=You need to change your password to activate your account. actionPasswordWarning=You need to change your password to activate your account.
actionEmailWarning=You need to verify your email address to activate your account. actionEmailWarning=You need to verify your email address to activate your account.
actionFollow=Please follow the steps below. actionFollow=Please fill in the fields below.
successHeader=Success! successHeader=Success!
errorHeader=Error! errorHeader=Error!