mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Merge pull request #657 from jaredevantabor/form-followup
Adjusting 2 small things to forms
This commit is contained in:
@@ -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\">";
|
||||
|
||||
Reference in New Issue
Block a user