aboutsummaryrefslogtreecommitdiffstats
path: root/d2ice.att.io/app/main/modals/audit-log
diff options
context:
space:
mode:
authorEdan Binshtok <eb578m@intl.att.com>2017-10-17 17:42:16 +0300
committerEdan Binshtok <eb578m@intl.att.com>2017-10-17 17:42:16 +0300
commitd0ea6a49ce88f043a6b7ce7ff8a7bb6333bd691c (patch)
tree4696cef781de91936b152e57aa26ee96042e4fbe /d2ice.att.io/app/main/modals/audit-log
parent1cd02f285d4d778dddfe34024da4b31afdc0afcd (diff)
Removal of AT&T Proprietary
Remove Terms of d2ice Remove d2ice and att in js Remove fonts Change-Id: I383d96979e0f9f7af923365f2dba7b0c7fb8f0eb Issue-Id: VVP-25 Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'd2ice.att.io/app/main/modals/audit-log')
-rwxr-xr-xd2ice.att.io/app/main/modals/audit-log/audit-log.controller.js95
-rwxr-xr-xd2ice.att.io/app/main/modals/audit-log/audit-log.html76
-rwxr-xr-xd2ice.att.io/app/main/modals/audit-log/audit-log.less49
3 files changed, 0 insertions, 220 deletions
diff --git a/d2ice.att.io/app/main/modals/audit-log/audit-log.controller.js b/d2ice.att.io/app/main/modals/audit-log/audit-log.controller.js
deleted file mode 100755
index 84e7fbc6..00000000
--- a/d2ice.att.io/app/main/modals/audit-log/audit-log.controller.js
+++ /dev/null
@@ -1,95 +0,0 @@
-//
-// ============LICENSE_START==========================================
-// org.onap.vvp/portal
-// ===================================================================
-// Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-// ===================================================================
-//
-// Unless otherwise specified, all software contained herein is licensed
-// under the Apache License, Version 2.0 (the “License”);
-// you may not use this software except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http:www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//
-// Unless otherwise specified, all documentation contained herein is licensed
-// under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
-// you may not use this documentation except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https:creativecommons.org/licenses/by/4.0/
-//
-// Unless required by applicable law or agreed to in writing, documentation
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// ============LICENSE_END============================================
-//
-// ECOMP is a trademark and service mark of AT&T Intellectual Property.
-(function () {
- 'use strict';
-
- angular
- .module('ice.modals')
- .controller('AuditLogModalController', ['$rootScope', '$uibModalInstance', 'checklistService', 'wizardData',
- 'toastService', '$log', AuditLogModalController]);
-
- function AuditLogModalController($rootScope, $uibModalInstance, checklistService, wizardData, toastService, $log) {
- var vm = this;
-
- var init = function()
- {
- var arr = [];
- var i;
- var region = moment().tz( moment.tz.guess()).format('z');
- var dt = "";
- vm.name = wizardData.name;
- vm.checklistAuditLogs = wizardData.checklistAuditLogs;
- vm.checklistAuditLogs.forEach(function (cl)
- {
- dt = moment(cl.create_time).local().format('YYYY-MM-DD hh:mm:ss A') + " " + region;
- arr.push({"name":cl.creator.full_name,"dt":dt,"desc":cl.description});
- });
- vm.checklistAuditLogs = arr;
- }
-
- init();
-
- vm.submitForm = function ()
- {
- var jsonPost = {"description":vm.description};
- checklistService.createAuditlogChecklist(wizardData.uuid, jsonPost)
- .then(function (response) {
- if (response.status === 200)
- {
- $uibModalInstance.close(response.data);
- vm.closeModal();
- }
- else
- {
- toastService.setToast(response.error, 'danger', {displayFor: 'modal'});
- $rootScope.ice.loader.show = false;
- }
- })
- .catch(function (error) {
- toastService.setToast(error.message, 'danger', {displayFor: 'modal'});
- $log.error(error.message);
- });
- };
-
- vm.closeModal = function(){
- toastService.clearToast();
- $uibModalInstance.close();
- };
- }
-})();
diff --git a/d2ice.att.io/app/main/modals/audit-log/audit-log.html b/d2ice.att.io/app/main/modals/audit-log/audit-log.html
deleted file mode 100755
index a4ad06f7..00000000
--- a/d2ice.att.io/app/main/modals/audit-log/audit-log.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<!--
-============LICENSE_START==========================================
-org.onap.vvp/portal
-===================================================================
-Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-===================================================================
-
-Unless otherwise specified, all software contained herein is licensed
-under the Apache License, Version 2.0 (the “License”);
-you may not use this software except in compliance with the License.
-You may obtain a copy of the License at
-
- http:www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Unless otherwise specified, all documentation contained herein is licensed
-under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
-you may not use this documentation except in compliance with the License.
-You may obtain a copy of the License at
-
- https:creativecommons.org/licenses/by/4.0/
-
-Unless required by applicable law or agreed to in writing, documentation
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-============LICENSE_END============================================
-
-ECOMP is a trademark and service mark of AT&T Intellectual Property.-->
-<ice-loader selector=".checkList-form"></ice-loader>
-
-<div class="modal-header checkList">
- <button type="button" ng-click="vm.closeModal()" id="close-modal-button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
- <ice-toast is-modal="true"></ice-toast>
- <div id="modal-title" class="row ">
- <div class=" dash col-md-12 col-md-12 ">
- <span class="font_header">Checklist: </span>
- <span class="font_header_chk_name margin_btm italic">{{vm.name}}</span>
- </div>
- </div>
-</div>
-
-<div class="modal-body checkList auditlog">
- <form name="AuditLogForm" ng-submit="vm.submitForm()" novalidate class="checkList-form">
- <div class=" margin_top">
- <h2>Audit Log</h2>
- </div>
- <div class="audit-log-items" id="audit-log-lines" data-ng-repeat="auditLog in vm.checklistAuditLogs">
- <div class="row" >
- <span class="col-md-6 font_user_name">
- {{auditLog.name}}
- </span>
- <span class="col-md-6 text-right font_date">
- {{auditLog.dt}}
- </span>
- <div class=" col-md-12 font_desc margin_btm5" ng-bind-html="auditLog.desc"></div>
- </div>
- </div>
- <textarea name="inputBox" rows="3" class="form-control col-md-12 margin_top textarea-checklist-audit" ng-model="vm.description" ng-trim="false" ng-pattern="/^[a-zA-Z0-9\&\,\.\ ]*$/"required ></textarea>
- <div data-ng-show="AuditLogForm.inputBox.$error" class="ice-form-error">
- <span ng-show="AuditLogForm.inputBox.$error.required && !AuditLogForm.inputBox.$pristine">Please add a Description.</span>
- <span ng-show="AuditLogForm.inputBox.$error.pattern">Inserted text should not include any special chars such as: \%_*."</span>
- </div>
-
- <button type="submit" class="btn btn-primary margin_top" data-ng-disabled="!AuditLogForm.$valid">Add Log Entry</button>
- </form>
-</div>
diff --git a/d2ice.att.io/app/main/modals/audit-log/audit-log.less b/d2ice.att.io/app/main/modals/audit-log/audit-log.less
deleted file mode 100755
index 7ba728e6..00000000
--- a/d2ice.att.io/app/main/modals/audit-log/audit-log.less
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// ============LICENSE_START==========================================
-// org.onap.vvp/portal
-// ===================================================================
-// Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-// ===================================================================
-//
-// Unless otherwise specified, all software contained herein is licensed
-// under the Apache License, Version 2.0 (the “License”);
-// you may not use this software except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http:www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//
-// Unless otherwise specified, all documentation contained herein is licensed
-// under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
-// you may not use this documentation except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https:creativecommons.org/licenses/by/4.0/
-//
-// Unless required by applicable law or agreed to in writing, documentation
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// ============LICENSE_END============================================
-//
-// ECOMP is a trademark and service mark of AT&T Intellectual Property.
-.auditlog {
-
- .audit-log-items {
- border-bottom: 1px solid;
- margin-bottom: 5px;
- }
-
- .textarea-checklist-audit {
- resize: none;
- }
-}