mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
Modified styling of modal dialog.
This commit is contained in:
@@ -487,3 +487,33 @@
|
|||||||
.modal-input-xlarge {
|
.modal-input-xlarge {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* overrides to TB modal */
|
||||||
|
.modal-header {
|
||||||
|
padding: 15px 15px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
background-color: #36454F;
|
||||||
|
color: #A9A9A9;
|
||||||
|
-webkit-border-top-left-radius: 3px;
|
||||||
|
-moz-border-top-left-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
-webkit-border-top-right-radius: 3px;
|
||||||
|
-moz-border-top-right-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
border: 1px solid #36454F;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
color: #A9A9A9;
|
||||||
|
opacity: .7;
|
||||||
|
filter: alpha(opacity=70);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header h3 {
|
||||||
|
margin: 0;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
}
|
||||||
|
|||||||
2
ansibleworks/ui/static/css/bootstrap.css
vendored
2
ansibleworks/ui/static/css/bootstrap.css
vendored
@@ -5198,7 +5198,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||||
*border: 1px solid #999;
|
*border: 1px solid #999;
|
||||||
-webkit-border-radius: 6px;
|
*-webkit-border-radius: 6px;
|
||||||
-moz-border-radius: 6px;
|
-moz-border-radius: 6px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
@@ -38,18 +38,19 @@ function JobHostSummaryList ($scope, $rootScope, $location, $log, $routeParams,
|
|||||||
|
|
||||||
LoadBreadCrumbs();
|
LoadBreadCrumbs();
|
||||||
|
|
||||||
scope.viewHost = function(id) {
|
scope.showEvents = function(host_name, last_job) {
|
||||||
Rest.setUrl(GetBasePath('jobs') + $routeParams.id + '/');
|
// When click on !Failed Events link, redirect to latest job/job_events for the host
|
||||||
Rest.get()
|
Rest.setUrl(last_job);
|
||||||
.success( function(data, status, headers, config) {
|
Rest.get()
|
||||||
LoadBreadCrumbs({ path: '/inventories/' + data.inventory, title: data.summary_fields.inventory.name });
|
.success( function(data, status, headers, config) {
|
||||||
$location.path('/inventories/' + data.inventory + /hosts/ + id);
|
LoadBreadCrumbs({ path: '/jobs/' + data.id, title: data.name });
|
||||||
})
|
$location.url('/jobs/' + data.id + '/job_events/?host=' + escape(host_name));
|
||||||
.error( function(data, status, headers, config) {
|
})
|
||||||
ProcessErrors(scope, data, status, null,
|
.error( function(data, status, headers, config) {
|
||||||
{ hdr: 'Error!', msg: 'Failed to lookup job record for job ' + $routeParams.id + ' GET returned status: ' + status });
|
ProcessErrors(scope, data, status, form,
|
||||||
});
|
{ hdr: 'Error!', msg: 'Failed to lookup last job: ' + last_job + '. GET status: ' + status });
|
||||||
};
|
});
|
||||||
|
}
|
||||||
|
|
||||||
scope.refresh = function() {
|
scope.refresh = function() {
|
||||||
scope.search(list.iterator);
|
scope.search(list.iterator);
|
||||||
|
|||||||
@@ -19,13 +19,15 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventFormDefini
|
|||||||
generator.reset();
|
generator.reset();
|
||||||
var master = {};
|
var master = {};
|
||||||
|
|
||||||
|
scope.formModalAction = function() {
|
||||||
|
$('#form-modal').modal("hide");
|
||||||
|
}
|
||||||
|
|
||||||
scope.formModalActionLabel = 'OK';
|
scope.formModalActionLabel = 'OK';
|
||||||
scope.formModalHeader = 'View Event';
|
scope.formModalHeader = 'View Event';
|
||||||
scope.formModalCancelShow = false;
|
scope.formModalCancelShow = false;
|
||||||
|
|
||||||
scope.formModalAction = function() {
|
$('#form-modal .btn-success').removeClass('btn-success').addClass('btn-info');
|
||||||
$('#form-modal').modal("hide");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Retrieve detail record and prepopulate the form
|
// Retrieve detail record and prepopulate the form
|
||||||
Rest.setUrl(defaultUrl);
|
Rest.setUrl(defaultUrl);
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
scope.formModalActionLabel = 'Finished';
|
scope.formModalActionLabel = 'Finished';
|
||||||
scope.formModalHeader = 'Add Group';
|
scope.formModalHeader = 'Add Group';
|
||||||
scope.formModalCancelShow = true;
|
scope.formModalCancelShow = true;
|
||||||
|
scope.formModalActionClass = 'btn btn-success';
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
$('#form-modal').modal();
|
$('#form-modal').modal();
|
||||||
|
|
||||||
scope.selected = [];
|
scope.selected = [];
|
||||||
@@ -176,6 +178,8 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
scope.parseType = 'json';
|
scope.parseType = 'json';
|
||||||
ParseTypeChange(scope);
|
ParseTypeChange(scope);
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
|
|
||||||
generator.reset();
|
generator.reset();
|
||||||
var master={};
|
var master={};
|
||||||
|
|
||||||
@@ -269,6 +273,8 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
scope.parseType = 'json';
|
scope.parseType = 'json';
|
||||||
ParseTypeChange(scope);
|
ParseTypeChange(scope);
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
|
|
||||||
// After the group record is loaded, retrieve any group variables
|
// After the group record is loaded, retrieve any group variables
|
||||||
if (scope.groupLoadedRemove) {
|
if (scope.groupLoadedRemove) {
|
||||||
scope.groupLoadedRemove();
|
scope.groupLoadedRemove();
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
scope.formModalHeader = 'Add Host';
|
scope.formModalHeader = 'Add Host';
|
||||||
scope.formModalCancelShow = true;
|
scope.formModalCancelShow = true;
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
$('#form-modal').modal();
|
$('#form-modal').modal();
|
||||||
$('#form-modal').unbind('hidden');
|
$('#form-modal').unbind('hidden');
|
||||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||||
@@ -167,6 +168,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
scope.parseType = 'json';
|
scope.parseType = 'json';
|
||||||
ParseTypeChange(scope);
|
ParseTypeChange(scope);
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
$('#form-modal').unbind('hidden');
|
$('#form-modal').unbind('hidden');
|
||||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||||
|
|
||||||
@@ -259,6 +261,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
|||||||
scope.parseType = 'json';
|
scope.parseType = 'json';
|
||||||
ParseTypeChange(scope);
|
ParseTypeChange(scope);
|
||||||
|
|
||||||
|
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||||
$('#form-modal').unbind('hidden');
|
$('#form-modal').unbind('hidden');
|
||||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ angular.module('JobHostDefinition', [])
|
|||||||
sourceModel: 'host',
|
sourceModel: 'host',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
ngBind: 'jobhost.host_name',
|
ngBind: 'jobhost.host_name',
|
||||||
//linkTo: '/hosts/\{\{ jobhost.host \}\}'
|
ngClick:"showEvents('\{\{ jobhost.summary_fields.host.name \}\}','\{\{ jobhost.related.job \}\}')"
|
||||||
ngClick:"viewHost(\{\{ jobhost.host \}\})"
|
|
||||||
},
|
},
|
||||||
ok: {
|
ok: {
|
||||||
label: 'Success',
|
label: 'Success',
|
||||||
|
|||||||
Reference in New Issue
Block a user