mirror of
https://github.com/ansible/awx.git
synced 2026-04-08 19:49:22 -02:30
Modified styling of modal dialog.
This commit is contained in:
@@ -18,14 +18,16 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventFormDefini
|
||||
var scope = generator.inject(form, { mode: 'edit', modal: true, related: false});
|
||||
generator.reset();
|
||||
var master = {};
|
||||
|
||||
scope.formModalActionLabel = 'OK';
|
||||
scope.formModalHeader = 'View Event';
|
||||
scope.formModalCancelShow = false;
|
||||
|
||||
|
||||
scope.formModalAction = function() {
|
||||
$('#form-modal').modal("hide");
|
||||
}
|
||||
|
||||
scope.formModalActionLabel = 'OK';
|
||||
scope.formModalHeader = 'View Event';
|
||||
scope.formModalCancelShow = false;
|
||||
|
||||
$('#form-modal .btn-success').removeClass('btn-success').addClass('btn-info');
|
||||
|
||||
// Retrieve detail record and prepopulate the form
|
||||
Rest.setUrl(defaultUrl);
|
||||
|
||||
@@ -35,7 +35,9 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
scope.formModalActionLabel = 'Finished';
|
||||
scope.formModalHeader = 'Add Group';
|
||||
scope.formModalCancelShow = true;
|
||||
|
||||
scope.formModalActionClass = 'btn btn-success';
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
$('#form-modal').modal();
|
||||
|
||||
scope.selected = [];
|
||||
@@ -175,6 +177,8 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
scope.formModalCancelShow = true;
|
||||
scope.parseType = 'json';
|
||||
ParseTypeChange(scope);
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
|
||||
generator.reset();
|
||||
var master={};
|
||||
@@ -269,6 +273,8 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
scope.parseType = 'json';
|
||||
ParseTypeChange(scope);
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
|
||||
// After the group record is loaded, retrieve any group variables
|
||||
if (scope.groupLoadedRemove) {
|
||||
scope.groupLoadedRemove();
|
||||
|
||||
@@ -32,11 +32,12 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
||||
breadCrumbs: false,
|
||||
selectButton: false
|
||||
});
|
||||
|
||||
|
||||
scope.formModalActionLabel = 'Finished';
|
||||
scope.formModalHeader = 'Add Host';
|
||||
scope.formModalCancelShow = true;
|
||||
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
$('#form-modal').modal();
|
||||
$('#form-modal').unbind('hidden');
|
||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||
@@ -167,6 +168,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
||||
scope.parseType = 'json';
|
||||
ParseTypeChange(scope);
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
$('#form-modal').unbind('hidden');
|
||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||
|
||||
@@ -259,6 +261,7 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
|
||||
scope.parseType = 'json';
|
||||
ParseTypeChange(scope);
|
||||
|
||||
$('#form-modal .btn-info').removeClass('btn-info').addClass('btn-success');
|
||||
$('#form-modal').unbind('hidden');
|
||||
$('#form-modal').on('hidden', function () { HostsReload(params); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user