mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
Merge pull request #32 from marshmalien/ux/fix/inventory
UX Hit List: Inventories, Empty Lists, Lookup Buttons
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,10 @@
|
|||||||
background-color: @white;
|
background-color: @white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.List-noItems {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1201px) {
|
@media (min-width: 1201px) {
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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: {
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#hosts-panel {
|
||||||
|
.List-noItems {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
.groupsList {
|
||||||
|
.List-noItems {
|
||||||
|
margin-top: 52px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
5
awx/ui/client/src/organizations/organizations.block.less
Normal file
5
awx/ui/client/src/organizations/organizations.block.less
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#organizations {
|
||||||
|
.List-noItems {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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" : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user