diff --git a/ansibleworks/ui/static/css/ansible-ui.css b/ansibleworks/ui/static/css/ansible-ui.css index 4f9ac747cc..c969aa602f 100644 --- a/ansibleworks/ui/static/css/ansible-ui.css +++ b/ansibleworks/ui/static/css/ansible-ui.css @@ -345,25 +345,36 @@ } .inventory-buttons { - margin: 10px 10px 0 0; + text-align: right; + background-color: #f5f5f5; + border-left: 1px solid #e3e3e3; + border-right: 1px solid #e3e3e3; + border-top: 1px solid #e3e3e3; + -webkit-border-top-left-radius: 4px; + -moz-border-top-left-radius: 4px; + border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -moz-border-top-right-radius: 4px; + border-top-right-radius: 4px; } .inventory-buttons button { - margin-left: 5px; + margin: 5px 5px 3px 0; } .inventory-filter { padding: 0 3px 3px 3px; - margin-top: 3px; text-align: right; background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + border-left: 1px solid #e3e3e3; + border-right: 1px solid #e3e3e3; + border-bottom: 1px solid #e3e3e3; + -webkit-border-bottom-left-radius: 4px; + -moz-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -moz-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; } .inventory-filter label { diff --git a/ansibleworks/ui/static/lib/ansible/form-generator.js b/ansibleworks/ui/static/lib/ansible/form-generator.js index 8c23bd80df..b9f270288e 100644 --- a/ansibleworks/ui/static/lib/ansible/form-generator.js +++ b/ansibleworks/ui/static/lib/ansible/form-generator.js @@ -637,7 +637,7 @@ angular.module('FormGenerator', ['GeneratorHelpers']) for (var itm in form.related) { if (form.related[itm].type == 'tree') { html += "
"; - html += "
"; + html += "
"; html += ""; html += "
\n"; html += "
\n"; html += "
\n"; + "Show only groups with failures
\n"; html += "
\n"; } else { @@ -787,128 +787,107 @@ angular.module('FormGenerator', ['GeneratorHelpers']) html += "\n" } - if (form.related[itm].type == 'tree') { - html += "
\n"; - // Add actions(s) - if (form.related[itm].actions && form.related[itm].actions.length > 0) { - html += "
\n"; - for (var act in form.related[itm].actions) { - var action = form.related[itm].actions[act]; - html += "
\n"; - } - html += "
\n"; - html += "
\n"; - html += "
\n"; + html += "
\n"; + html += SearchWidget({ iterator: form.related[itm].iterator, template: form.related[itm], mini: false }); + + // Add actions(s) + html += "
\n"; + for (var act in form.related[itm].actions) { + var action = form.related[itm].actions[act]; + html += "\n"; } - else { - html += "
\n"; - html += SearchWidget({ iterator: form.related[itm].iterator, template: form.related[itm], mini: false }); + html += "
\n"; - // Add actions(s) - html += "
\n"; - for (var act in form.related[itm].actions) { - var action = form.related[itm].actions[act]; - html += "\n"; + // Start the list + html += "
\n"; + html += "\n"; + html += "\n"; + html += "\n"; + html += (form.related[itm].index == undefined || form.related[itm].index !== false) ? "\n" : ""; + for (var fld in form.related[itm].fields) { + html += "\n"; + html += "\n"; - // End Accordion Group - html += "\n"; // accordion inner - html += "\n"; // accordion body - html += "\n"; // accordion group + // Message for loading + html += "\n"; + html += "\n"; + html += "\n"; - idx++; + // End List + html += "\n"; + html += "
#" + + form.related[itm]['fields'][fld].label; + html += " \n"; - html += "\n"; - html += "\n"; - html += "\n"; - html += (form.related[itm].index == undefined || form.related[itm].index !== false) ? "\n" : ""; - for (var fld in form.related[itm].fields) { - html += "\n"; + else { + html += "icon-sort"; } - html += "\n"; - html += "\n"; - html += ""; - html += "\n"; - - html += "\n"; - if (form.related[itm].index == undefined || form.related[itm].index !== false) { - html += "\n"; - } - var cnt = 1; - var rfield; - var base = (form.related[itm].base) ? form.related[itm].base : itm; - base = base.replace(/^\//,''); - for (var fld in form.related[itm].fields) { - cnt++; - html += Column({ list: form.related[itm], fld: fld, options: options, base: base }); - } - - // Row level actions - html += "\n"; - html += "\n"; + html += "\">\n"; + } + html += "\n"; + html += "\n"; + html += ""; + html += "\n"; - // Message for loading - html += "\n"; - html += "\n"; - html += "\n"; + html += "\n"; + if (form.related[itm].index == undefined || form.related[itm].index !== false) { + html += "\n"; + } + var cnt = 1; + var rfield; + var base = (form.related[itm].base) ? form.related[itm].base : itm; + base = base.replace(/^\//,''); + for (var fld in form.related[itm].fields) { + cnt++; + html += Column({ list: form.related[itm], fld: fld, options: options, base: base }); + } - // End List - html += "\n"; - html += "
#" + - form.related[itm]['fields'][fld].label; - html += "
{{ $index + (" + form.related[itm].iterator + "Page * " + - form.related[itm].iterator + "PageSize) + 1 }}."; - for (act in form.related[itm].fieldActions) { - var action = form.related[itm].fieldActions[act]; - html += "
No records matched your search.
Loading...
{{ $index + (" + form.related[itm].iterator + "Page * " + + form.related[itm].iterator + "PageSize) + 1 }}.
\n"; - html += "\n"; // close well - html += "\n"; // close list div + // Row level actions + html += "
"; + for (act in form.related[itm].fieldActions) { + var action = form.related[itm].fieldActions[act]; + html += "
No records matched your search.
Loading...
\n"; + html += "
\n"; // close well + html += "
\n"; // close list div + + html += PaginateWidget({ set: itm, iterator: form.related[itm].iterator, mini: true }); + + // End Accordion Group + html += "
\n"; // accordion inner + html += "
\n"; // accordion body + html += "\n"; // accordion group + + idx++; } } html += "\n"; diff --git a/ansibleworks/ui/static/lib/jstree/themes/ansible/style.css b/ansibleworks/ui/static/lib/jstree/themes/ansible/style.css index 8f76e784c5..4a05ff379e 100644 --- a/ansibleworks/ui/static/lib/jstree/themes/ansible/style.css +++ b/ansibleworks/ui/static/lib/jstree/themes/ansible/style.css @@ -11,13 +11,8 @@ .jstree-ansible { background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); + border-left: 1px solid #e3e3e3; + border-right: 1px solid #e3e3e3; } .jstree-ansible li,