Modified styling of modal dialog.

This commit is contained in:
chouseknecht
2013-06-19 17:12:50 -04:00
parent 15b720b42b
commit 7303107450
7 changed files with 65 additions and 24 deletions

View File

@@ -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);

View File

@@ -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();

View File

@@ -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); });