Merge pull request #657 from jaredevantabor/form-followup

Adjusting 2 small things to forms
This commit is contained in:
jaredevantabor
2016-01-20 10:39:35 -08:00
3 changed files with 21 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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\">";