Breadcrumbs to license page

This commit is contained in:
Jared Tabor 2015-06-05 12:18:40 -04:00
parent d10a597b3c
commit 131da8775d
3 changed files with 7 additions and 115 deletions

View File

@ -3,7 +3,7 @@
*
* All Rights Reserved
*************************************************/
/**
* @ngdoc function
* @name helpers.function:License
@ -209,119 +209,6 @@ export default
}
$location.path('/license');
// html = this.getHTML(license);
// $('#license-modal-dialog').html(html.body);
//
// scope.flashMessage = null;
// scope.parseType = 'json';
//
// scope.removeLicenseDialogReady = scope.$on('LicenseDialogReady', function() {
// $('#license_license_json').attr('ng-required' , 'true' );
// $('#license_eula_agreement_chbox').attr('ng-required' , 'true' );
// $('#license-submit-button').attr('ng-disabled' , "license_form.$invalid" );
// var e = angular.element(document.getElementById('license-modal-dialog'));
// $compile(e)(scope);
// e = angular.element(document.getElementById('license-submit-button'));
// $compile(e)(scope);
// $('#license-modal-dialog').dialog('open');
// });
//
// scope.submitLicenseKey = function() {
// self.postLicense(scope.license_json);
// };
//
// if (IsAdmin()) {
// buttons = [{
// label: "Cancel",
// onClick: function() {
// $('#license-modal-dialog').dialog('close');
// },
// "class": "btn btn-default",
// "id": "license-cancel-button"
// }, {
// label: "Submit",
// onClick: function() {
// scope.submitLicenseKey();
// },
// "class": "btn btn-primary",
// "id": "license-submit-button"
// }];
// } else {
// buttons = [{
// label: "OK",
// onClick: function() {
// $('#license-modal-dialog').dialog('close');
// },
// "class": "btn btn-primary",
// "id": "license-ok-button"
// }];
// }
//
// height = (IsAdmin()) ? 675 : 350;
//
// if (scope.removeLicenseReady) {
// scope.removeLicenseReady();
// }
// scope.removeLicenseReady = scope.$on('LicenseReady', function(e, data) {
//
// scope.license_json = "";
// scope.eula = data.eula;
// if (data.license_info && data.license_info.valid_key !== undefined) {
// scope.license_json = JSON.stringify(data.license_info, null, ' ');
// }
//
// CreateDialog({
// scope: scope,
// buttons: buttons,
// width: 675,
// height: height,
// minWidth: 400,
// title: html.title,
// id: 'license-modal-dialog',
// clonseOnEscape: false,
// onClose: function() {
// if (scope.codeMirror) {
// scope.codeMirror.destroy();
// }
// $('#license-modal-dialog').empty();
// },
// onResizeStop: function() {
// if (IsAdmin()) {
// TextareaResize({
// scope: scope,
// textareaId: 'license_license_json',
// modalId: 'license-modal-dialog',
// formId: 'license-notification-body',
// fld: 'license_json',
// parse: true,
// onChange: function() { scope.license_json_api_error = ''; }
// });
// }
// },
// onOpen: function() {
// if (IsAdmin()) {
// setTimeout(function() {
// TextareaResize({
// scope: scope,
// textareaId: 'license_license_json',
// modalId: 'license-modal-dialog',
// formId: 'license-notification-body',
// fld: 'license_json',
// parse: true,
// onChange: function() { scope.license_json_api_error = ''; }
// });
// $('#cm-license_json-container .CodeMirror textarea').focus();
// }, 300);
// } else {
// $('#license-ok-button').focus();
// }
// },
// callback: 'LicenseDialogReady'
// });
// });
//
// self.GetLicense('LicenseReady');
},
GetLicense: function(callback, inScope) {

View File

@ -1,3 +1,8 @@
<breadcrumbs>
<breadcrumb path="/setup" title="Setup"></breadcrumb>
<breadcrumb path="/license" title="License"></breadcrumb>
</breadcrumb>
</breadcrumbs>
<div class="tab-pane" id="license-partial">
<div ng-cloak id="htmlTemplate"></div>
<div id="license-modal-dialog"></div>

View File

@ -158,7 +158,7 @@
<div id="login-modal-dialog" style="display: none;"></div>
<div id="help-modal-dialog" style="display: none;"></div>
<!-- <div id="license-modal-dialog" style="display: none;"></div> -->
<div id="about-modal-dialog" style="display: none;" ng-include=" '{{ STATIC_URL }}partials/cowsay-about.html ' "></div>
<div id="custom-script-dialog" style="display:none;" > </div>
<div id='configure-tower-dialog' style="display:none" >