mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Adjusting 2 small things to forms
1) Changing the color of the SAVE button when disabled in order to make the text pop 2) Adding the ADMIN label to the title of hte user's form when the user is an admin in order to make the white text pop
This commit is contained in:
parent
af4b4e280d
commit
f6ab2fdff7
@ -29,6 +29,22 @@
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.Form-title--is_superuser{
|
||||
height:15px;
|
||||
color: @btn-txt;
|
||||
background-color: @btn-bg;
|
||||
border-radius: 5px;
|
||||
border: 1px solid @btn-bord;
|
||||
font-size: 10px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
margin-left: 10px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 100;
|
||||
position: absolute;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.Form-exitHolder{
|
||||
justify-content: flex-end;
|
||||
display:flex;
|
||||
|
@ -99,7 +99,7 @@
|
||||
@submit-button-text: @default-bg;
|
||||
@submit-button-bg: @default-succ;
|
||||
@submit-button-bg-hov: @default-succ-hov;
|
||||
@submit-button-bg-dis: @default-second-border;
|
||||
@submit-button-bg-dis: @default-icon-hov;
|
||||
|
||||
// footer
|
||||
@copyright-text: @default-interface-txt;
|
||||
|
@ -1427,6 +1427,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
html += "<div class=\"Form-header\">";
|
||||
html += "<div class=\"Form-title\">";
|
||||
html += (options.mode === 'edit') ? this.form.editTitle : this.form.addTitle;
|
||||
if(this.form.name === "user"){
|
||||
html+= "<span class=\"Form-title--is_superuser\" "+
|
||||
"ng-if=is_superuser>Admin</span>";
|
||||
}
|
||||
html += "</div>\n";
|
||||
|
||||
html += "<div class=\"Form-exitHolder\">";
|
||||
|
Loading…
Reference in New Issue
Block a user