Merge pull request #32 from marshmalien/ux/fix/inventory

UX Hit List: Inventories, Empty Lists, Lookup Buttons
This commit is contained in:
Marliana Lara
2017-07-25 09:20:31 -04:00
committed by GitHub
10 changed files with 29 additions and 21 deletions

View File

@@ -728,7 +728,6 @@ dd {
} }
.error { .error {
margin-top: 5px;
font-size: 12px; font-size: 12px;
line-height: normal; line-height: normal;
color: @red; color: @red;

View File

@@ -464,7 +464,6 @@
.Form-lookupButton:hover { .Form-lookupButton:hover {
cursor: pointer; cursor: pointer;
background-color: @field-lookup-btn-hov-bg; background-color: @field-lookup-btn-hov-bg;
border: 1px solid @field-border;
color: @default-interface-txt; color: @default-interface-txt;
} }

View File

@@ -59,6 +59,10 @@
background-color: @white; background-color: @white;
} }
.List-noItems {
margin-top: 0;
}
} }
@media (min-width: 1201px) { @media (min-width: 1201px) {

View File

@@ -79,11 +79,6 @@ function(i18n) {
dataTitle: i18n._('Host Variables'), dataTitle: i18n._('Host Variables'),
dataPlacement: 'right', dataPlacement: 'right',
dataContainer: 'body' dataContainer: 'body'
},
inventory: {
type: 'hidden',
includeOnEdit: true,
includeOnAdd: true
} }
}, },

View File

@@ -1,3 +1,12 @@
.Inventories-hostStatus { .Inventories-hostStatus {
margin-left: 5px; margin-left: 5px;
} }
#inventories-panel {
.completed_jobsList.List-well {
margin: 0;
.List-noItems {
margin: 0;
}
}
}

View File

@@ -19,7 +19,7 @@ export default ['i18n', function(i18n) {
editTitle: i18n._('COMPLETED JOBS'), editTitle: i18n._('COMPLETED JOBS'),
index: false, index: false,
hover: true, hover: true,
well: false, well: true,
emptyListText: i18n._('No completed jobs'), emptyListText: i18n._('No completed jobs'),
fields: { fields: {

View File

@@ -79,11 +79,6 @@ function(i18n) {
dataTitle: i18n._('Host Variables'), dataTitle: i18n._('Host Variables'),
dataPlacement: 'right', dataPlacement: 'right',
dataContainer: 'body' dataContainer: 'body'
},
inventory: {
type: 'hidden',
includeOnEdit: true,
includeOnAdd: true
} }
}, },

View File

@@ -0,0 +1,10 @@
#hosts-panel {
.List-noItems {
margin-top: 0px;
}
.groupsList {
.List-noItems {
margin-top: 52px;
}
}
}

View File

@@ -0,0 +1,5 @@
#organizations {
.List-noItems {
margin-top: 20px;
}
}

View File

@@ -740,18 +740,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += "</div>\n"; html += "</div>\n";
} }
if (field.type === 'hidden') {
if ((options.mode === 'edit' && field.includeOnEdit) ||
(options.mode === 'add' && field.includeOnAdd)) {
html += "<input type=\"hidden\" ng-model=\"" + fld + "\" name=\"" + fld + "\" />";
}
}
if ((!field.readonly) || (field.readonly && options.mode === 'edit')) { if ((!field.readonly) || (field.readonly && options.mode === 'edit')) {
if((field.excludeMode === undefined || field.excludeMode !== options.mode) && field.type !== 'alertblock' && field.type !== 'workflow-chart') { if((field.excludeMode === undefined || field.excludeMode !== options.mode) && field.type !== 'alertblock' && field.type !== 'workflow-chart') {
html += "<div class='form-group Form-formGroup "; html += "<div class='form-group Form-formGroup ";
html += (field.disabled) ? `Form-formGroup--disabled ` : ``; html += (field.disabled) ? `Form-formGroup--disabled ` : ``;
html += (field.type === "checkbox") ? "Form-formGroup--checkbox" : ""; html += (field.type === "checkbox") ? "Form-formGroup--checkbox" : "";