From d0ea6a49ce88f043a6b7ce7ff8a7bb6333bd691c Mon Sep 17 00:00:00 2001 From: Edan Binshtok Date: Tue, 17 Oct 2017 17:42:16 +0300 Subject: 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 --- .../archive-engagement-modal.controller.js | 66 ----- .../archive-engagement-modal.html | 56 ---- .../archive-engagement-modal.less | 54 ---- .../main/modals/audit-log/audit-log.controller.js | 95 ------- .../app/main/modals/audit-log/audit-log.html | 76 ----- .../app/main/modals/audit-log/audit-log.less | 49 ---- .../modals/change-date/change-date.controller.js | 75 ----- .../app/main/modals/change-date/change-date.html | 62 ----- .../change-progress/change-progress.controller.js | 71 ----- .../modals/change-progress/change-progress.html | 65 ----- .../main/modals/checklist/checklist.controller.js | 238 ---------------- .../app/main/modals/checklist/checklist.html | 107 ------- .../state-approve-or-reject.controller.js | 105 ------- .../state-approve-or-reject.html | 58 ---- .../state-approve-or-reject.less | 173 ------------ .../cms-post-modal/cms-post-modal.controller.js | 92 ------ .../main/modals/cms-post-modal/cms-post-modal.html | 55 ---- .../main/modals/cms-post-modal/cms-post-modal.less | 106 ------- .../detailed-view-dtsites-modal.controller.js | 100 ------- .../dtsite/detailed-view-dtsites-modal.html | 62 ----- .../vfc/detailed-view-vfc-modal.controller.js | 124 --------- .../detailed-view/vfc/detailed-view-vfc-modal.html | 100 ------- .../detailed-view/vfc/detailed-view-vfc-modal.less | 68 ----- .../main/modals/feedback/feedback.controller.js | 82 ------ .../app/main/modals/feedback/feedback.html | 57 ---- .../app/main/modals/feedback/feedback.less | 44 --- .../general-log-modal.controller.js | 63 ----- .../general-log-modal/general-log-modal.html | 45 --- .../general-log-modal/general-log-modal.less | 72 ----- .../general-prompt-modal.controller.js | 74 ----- .../general-prompt-modal/general-prompt-modal.html | 52 ---- .../general-prompt-modal/general-prompt-modal.less | 151 ---------- .../modals/next-steps/next-steps.controller.js | 278 ------------------- .../app/main/modals/next-steps/next-steps.html | 138 --------- .../app/main/modals/next-steps/next-steps.less | 307 --------------------- .../select-el-modal/select-el-modal.controller.js | 78 ------ .../modals/select-el-modal/select-el-modal.html | 56 ---- .../modals/select-el-modal/select-el-modal.less | 54 ---- .../set-eng-stage-modal.controller.js | 63 ----- .../modals/set-eng-stage/set-eng-stage-modal.html | 49 ---- .../modals/set-eng-stage/set-eng-stage-modal.less | 135 --------- .../modals/set-eng-stage/set_eng_stage_modal.html | 58 ---- .../app/main/modals/status/status.controller.js | 125 --------- d2ice.att.io/app/main/modals/status/status.html | 59 ---- d2ice.att.io/app/main/modals/status/status.less | 44 --- .../change-lab-entry-date.controller.js | 78 ------ .../target-lab-entry/change-lab-entry-date.html | 55 ---- .../target-lab-entry/change-lab-entry-date.less | 49 ---- .../update-engagement-status-modal.controller.js | 73 ----- .../update-engagement-status-modal.html | 97 ------- .../update-engagement-status-modal.less | 61 ---- ...led-view-validation-details-modal.controller.js | 202 -------------- .../detailed-view-validation-details-modal.html | 101 ------- .../detailed-view-validation-details-modal.less | 49 ---- 54 files changed, 4906 deletions(-) delete mode 100755 d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.html delete mode 100755 d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.less delete mode 100755 d2ice.att.io/app/main/modals/audit-log/audit-log.controller.js delete mode 100755 d2ice.att.io/app/main/modals/audit-log/audit-log.html delete mode 100755 d2ice.att.io/app/main/modals/audit-log/audit-log.less delete mode 100755 d2ice.att.io/app/main/modals/change-date/change-date.controller.js delete mode 100755 d2ice.att.io/app/main/modals/change-date/change-date.html delete mode 100755 d2ice.att.io/app/main/modals/change-progress/change-progress.controller.js delete mode 100755 d2ice.att.io/app/main/modals/change-progress/change-progress.html delete mode 100755 d2ice.att.io/app/main/modals/checklist/checklist.controller.js delete mode 100755 d2ice.att.io/app/main/modals/checklist/checklist.html delete mode 100755 d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.controller.js delete mode 100755 d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html delete mode 100755 d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.less delete mode 100755 d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.html delete mode 100755 d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.less delete mode 100755 d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html delete mode 100755 d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.html delete mode 100755 d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.less delete mode 100755 d2ice.att.io/app/main/modals/feedback/feedback.controller.js delete mode 100755 d2ice.att.io/app/main/modals/feedback/feedback.html delete mode 100755 d2ice.att.io/app/main/modals/feedback/feedback.less delete mode 100755 d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.html delete mode 100755 d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.less delete mode 100755 d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.html delete mode 100755 d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.less delete mode 100755 d2ice.att.io/app/main/modals/next-steps/next-steps.controller.js delete mode 100755 d2ice.att.io/app/main/modals/next-steps/next-steps.html delete mode 100755 d2ice.att.io/app/main/modals/next-steps/next-steps.less delete mode 100755 d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.html delete mode 100755 d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.less delete mode 100755 d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.html delete mode 100755 d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.less delete mode 100755 d2ice.att.io/app/main/modals/set-eng-stage/set_eng_stage_modal.html delete mode 100755 d2ice.att.io/app/main/modals/status/status.controller.js delete mode 100755 d2ice.att.io/app/main/modals/status/status.html delete mode 100755 d2ice.att.io/app/main/modals/status/status.less delete mode 100755 d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.controller.js delete mode 100755 d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.html delete mode 100755 d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.less delete mode 100755 d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.html delete mode 100755 d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.less delete mode 100755 d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.controller.js delete mode 100755 d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.html delete mode 100755 d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.less (limited to 'd2ice.att.io/app/main/modals') diff --git a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.controller.js b/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.controller.js deleted file mode 100755 index 3c1226cb..00000000 --- a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.controller.js +++ /dev/null @@ -1,66 +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('archiveEngagementModalController', ['$uibModalInstance','engagementDetails',archiveEngagementModalController]); - - function archiveEngagementModalController($uibModalInstance, engagementDetails) { - - var vm = this; - var init = function () { - if(engagementDetails) { - vm.engagement = engagementDetails; - } - }; - - vm.closeModal = function () { - $uibModalInstance.dismiss(); - }; - - vm.archiveEngagement = function() { - $uibModalInstance.close(vm.reason); - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.html b/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.html deleted file mode 100755 index 7d4b5b07..00000000 --- a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.html +++ /dev/null @@ -1,56 +0,0 @@ - -
- - -
diff --git a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.less b/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.less deleted file mode 100755 index da2f8503..00000000 --- a/d2ice.att.io/app/main/modals/archive-engagement-modal/archive-engagement-modal.less +++ /dev/null @@ -1,54 +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. -.archive-engagement-modal { - padding: 0px 15px 0px 15px; - - .archive-engagement-title { - .a_24_m;; - } - - .archive-engagement-reason { - .m_16_r; - } - - .modal-body { - top: 10px; - } -} - 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 @@ - - - - - - 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; - } -} diff --git a/d2ice.att.io/app/main/modals/change-date/change-date.controller.js b/d2ice.att.io/app/main/modals/change-date/change-date.controller.js deleted file mode 100755 index 35290c99..00000000 --- a/d2ice.att.io/app/main/modals/change-date/change-date.controller.js +++ /dev/null @@ -1,75 +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('ChangeDateModalController', ["$uibModalInstance", "completionDate", "engagementUuid", "vfService", "$rootScope", "toastService", changeDateModalController]); - - function changeDateModalController($uibModalInstance, completionDate, engagementUuid, vfService, $rootScope, toastService) { - - var vm = this; - //vm.completionDate = new Date(completionDate); - vm.completionDate = completionDate; - - vm.dateOptions = { - minDate: new Date(), - showWeeks: true - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.submitForm = function(){ - var postData={"target_date": moment(vm.completionDate).format("YYYY-MM-DD")}; - vfService.updateDaysLeft(engagementUuid, postData) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(postData); - } - }) - .catch(function (error) { - toastService.setToast(error.status + ': Error changing completion date!', 'danger'); - }); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/change-date/change-date.html b/d2ice.att.io/app/main/modals/change-date/change-date.html deleted file mode 100755 index 4d3e0b59..00000000 --- a/d2ice.att.io/app/main/modals/change-date/change-date.html +++ /dev/null @@ -1,62 +0,0 @@ - -
- - - -
diff --git a/d2ice.att.io/app/main/modals/change-progress/change-progress.controller.js b/d2ice.att.io/app/main/modals/change-progress/change-progress.controller.js deleted file mode 100755 index e28b2528..00000000 --- a/d2ice.att.io/app/main/modals/change-progress/change-progress.controller.js +++ /dev/null @@ -1,71 +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('ChangeProgressModalController', ["$uibModalInstance", "progress", "engagementUuid", "vfService", - "$log", "toastService", ChangeProgressModalController]); - - function ChangeProgressModalController($uibModalInstance, progress, engagementUuid, vfService, $log, toastService) { - - var vm = this; - vm.progress = progress; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.submitForm = function(){ - var postData={"progress": vm.progress}; - vfService.updateProgress(engagementUuid, postData) - .then(function (response) { - if (response.status === 202) { - $uibModalInstance.close(postData); - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - }); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/change-progress/change-progress.html b/d2ice.att.io/app/main/modals/change-progress/change-progress.html deleted file mode 100755 index adfb7e7a..00000000 --- a/d2ice.att.io/app/main/modals/change-progress/change-progress.html +++ /dev/null @@ -1,65 +0,0 @@ - -
- - - - -
diff --git a/d2ice.att.io/app/main/modals/checklist/checklist.controller.js b/d2ice.att.io/app/main/modals/checklist/checklist.controller.js deleted file mode 100755 index 4a20b53d..00000000 --- a/d2ice.att.io/app/main/modals/checklist/checklist.controller.js +++ /dev/null @@ -1,238 +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('ChecklistModalController', ['toastService', '$rootScope', '$uibModalInstance', 'checklistService', - 'engagementUuid', 'modal_type', 'wizardData', '$log', ChecklistModalController]); - - function ChecklistModalController(toastService, $rootScope, $uibModalInstance, checklistService, engagementUuid, - modal_type, wizardData, $log) { - var vm = this; - vm.checkListAssociatedFiles = []; - vm.selectedCheckListAssociatedFiles = []; - vm.isDisabled = false; - - var init = function() { - switch(modal_type) { - case 'create': - vm.create = true; - vm.createUpadeTitle = "Create"; - vm.modalType = 'create'; - vm.modalTitle = "Create"; - checklistService.getDataForCreateChecklist(engagementUuid) - .then(function (response) { - if (response.status === 200) { - vm.checkListTemplatesLists = []; - vm.checkListTemplates = response.data.checkListTemplates; - angular.forEach(response.data.checkListAssociatedFiles, function (value, key) { - vm.checkListAssociatedFiles.push({File: value}); - }); - $rootScope.ice.loader.show = false; - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - $log.error(error.message); - }); - break; - case 'update': - vm.update = true; - vm.createUpadeTitle = "Update"; - vm.modalType = 'udpate'; - vm.modalTitle = "Update"; - vm.checklistUuid = wizardData.uuid; - vm.checkListName = wizardData.name; - checklistService.getDataForCreateChecklist(engagementUuid) - .then(function (response) { - if (response.status === 200) { - vm.checkListAssociatedFiles = [] - angular.forEach(response.data.checkListAssociatedFiles, function (value, key) { - vm.checkListAssociatedFiles.push({File: value}); - }); - $rootScope.ice.loader.show = false; - - vm.selectedCheckListAssociatedFiles =[] - - angular.forEach(wizardData.associatedFiles, function(val, key1) { - vm.selectedCheckListAssociatedFiles.push({File: val}); - }); - - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - $log.error(error.message); - }); - vm.selectedTemplateUuid = wizardData.selectedTemplateUuid; - vm.selectedTemplateName = wizardData.selectedTemplateName; - - break; - } - } - init(); - - vm.addFile = function () - { - var newItemNo = vm.selectedCheckListAssociatedFiles.length + 1; - vm.selectedCheckListAssociatedFiles.push({'id': newItemNo}); - }; - - vm.removeFile = function (index) - { - vm.selectedCheckListAssociatedFiles.splice(index,1); - }; - - vm.closeModal = function(){ - toastService.clearToast(); - $rootScope.$emit('onChecklistUpdate'); - $uibModalInstance.close(vm.checkListName); - $uibModalInstance.close(); - }; - - - vm.submitForm = function () - { - vm.isDisabled = true; - var checklist_files = []; - switch(modal_type){ - case 'create': - angular.forEach(vm.selectedCheckListAssociatedFiles, function(val, key1) { - checklist_files.push(val.File); - }); - var jsonPost = { - "checkListAssociatedFiles": checklist_files, - "checkListName": vm.checkListName, - "checkListTemplateUuid" : vm.selectedTemplateUuid - }; - - checklistService.createChecklist(engagementUuid, jsonPost) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.data); - $rootScope.ice.loader.show = false; - vm.closeModal(); - } - }) - .catch(function (error) { - toastService.setToast(error.message || 'Error creating check list.', 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - vm.isDisabled = false; - $log.error(error.message); - }); - break; - case 'update': - - var updated_file_list = []; - angular.forEach(vm.selectedCheckListAssociatedFiles, function(val, key1) { - updated_file_list.push(val.File); - }); - $log.debug("update", updated_file_list); - var jsonPut = { - "checklistUuid": vm.checklistUuid, - "checkListAssociatedFiles": updated_file_list, - "checkListName": vm.checkListName, - "checkListTemplateUuid" : vm.selectedTemplateUuid - }; - checklistService.putDataForChecklist(vm.checklistUuid, jsonPut) - .then(function (response) { - if (response.status === 200) { - $rootScope.$broadcast('onUpdateEngagements',{select:{uuid: engagementUuid, view_type : 'checklist', sub_id: vm.checklistUuid}}); - $rootScope.ice.loader.show = false; - - var response_data = {}; - response_data.checklist_name = vm.checkListName; - response_data.associated_files = updated_file_list; - var array1 = vm.checkListAssociatedFiles.sort(); - var array2 = updated_file_list.sort(); - - var is_same_files = (array1.length == array2.length) && array1.every(function(element, index) { - return element === array2[index]; - }); - // if file list changed reject checklist - if (!is_same_files && wizardData.state != 'pending') - { - var postData = {}; - postData["description"] = "Rejected due to file list change"; - postData["decline"] = "True"; - - checklistService.setState(vm.checklistUuid, postData) - .then(function (response) { - if (response.status === 200) { - $rootScope.$broadcast('onUpdateEngagements'); - } - else { - toastService.setToast(response.error, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - vm.isDisabled = false; - return; - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - vm.isDisabled = false; - return; - }); - } - - $uibModalInstance.close(response_data); - vm.closeModal(); - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - $log.error(error.message); - vm.isDisabled = false; - - }); - break; - default: - $log.debug('no submit action found'); - vm.isDisabled = false; - break; - } - } - } -})(); diff --git a/d2ice.att.io/app/main/modals/checklist/checklist.html b/d2ice.att.io/app/main/modals/checklist/checklist.html deleted file mode 100755 index d308c9d2..00000000 --- a/d2ice.att.io/app/main/modals/checklist/checklist.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - diff --git a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.controller.js b/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.controller.js deleted file mode 100755 index 160b57cc..00000000 --- a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.controller.js +++ /dev/null @@ -1,105 +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('stateDecisionModalController', ['$rootScope','$uibModalInstance', 'checklistService', - 'toastService', 'action', 'checklist', '$log', stateDecisionModalController]); - - function stateDecisionModalController($rootScope, $uibModalInstance, checklistService, toastService, action, - checklist, $log) { - - var vm = this; - - var init = function () { - vm.description = null; - vm.checklist_name = checklist.name; - vm.state = checklist.state; - vm.action = action; - vm.modalText = (vm.state == 'pending') ? "Are you sure you want to move the checklist state to Automation?": - "Please use the button below to either approve or reject the " + - "checklist.
You can also add a log entry comment."; - }; - - vm.submitForm = function(decision) { - var postData = {}; - if (vm.description != null) { - postData["description"] = vm.description; - } - else{ - postData["description"] = ''; - } - - if (decision === true) { - postData["decline"] = "False"; - } - else { - postData["decline"] = "True"; - } - - - - checklistService.setState(checklist.uuid, postData) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.data); - vm.closeModal(); - } - else { - toastService.setToast(response.error, 'danger'); - $rootScope.ice.loader.show = false; - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - }); - - }; - - vm.closeModal = function () { - $uibModalInstance.close(); - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html b/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html deleted file mode 100755 index 4db81b1f..00000000 --- a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.html +++ /dev/null @@ -1,58 +0,0 @@ - - -
- -
- -
- -
-
- Inserted text should not include any special chars such as: \%_*." -
- -
diff --git a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.less b/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.less deleted file mode 100755 index 08bf14e9..00000000 --- a/d2ice.att.io/app/main/modals/checklist/state-approve-or-reject/state-approve-or-reject.less +++ /dev/null @@ -1,173 +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. -.modal-open .modal { - z-index: 30000 !important; -} - -#approve-or-reject-state { - - .modal-title { - .a_22_m; - } - - .decision-modal-body { - margin-bottom: 8px; - margin-top: 10px; - } - - .decision-comment { - .m_14_r;; - } - - .modal_buttons { - .custom-button { - position: relative; - width: 30%; - float: left; - display: inline-block; - } - .custom-space { - position: relative; - width: 5%; - float: left; - min-height: 1px; - } - } - - .state-title .bold { - .m_18_m; - } - .state-title { - .m_18_r; - } - .state-title-border { - border-bottom: dashed 1px; - border-color: @main_color_q; - margin-left: 0px; - } - - .comment-textarea { - resize: vertical; - } - - .btn-gradient-success { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #41A02C; - *background-color: #41A02C; - background-image: -moz-linear-gradient(top, #A2E652, #41A02C); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#A2E652), to(#41A02C)); - background-image: -webkit-linear-gradient(top, #A2E652, #41A02C); - background-image: -o-linear-gradient(top, #A2E652, #41A02C); - background-image: linear-gradient(to bottom, #A2E652, #41A02C); - background-repeat: repeat-x; - border-color: #41A02C; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A2E652', endColorstr='#41A02C', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); - } - .btn-sample:hover, - .btn-sample:focus, - .btn-sample:active, - .btn-sample.active, - .btn-sample.disabled, - .btn-sample[disabled] { - color: #FFFFFF; - background-color: #41A02C; - *background-color: #003bb3; - } - - .btn-gradient-danger { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #AE0020; - *background-color: #AE0020; - background-image: -moz-linear-gradient(top, #F74658, #AE0020); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F74658), to(#AE0020)); - background-image: -webkit-linear-gradient(top, #F74658, #AE0020); - background-image: -o-linear-gradient(top, #F74658, #AE0020); - background-image: linear-gradient(to bottom, #F74658, #AE0020); - background-repeat: repeat-x; - border-color: #AE0020; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F74658', endColorstr='#AE0020', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); - } - .btn-sample:hover, - .btn-sample:focus, - .btn-sample:active, - .btn-sample.active, - .btn-sample.disabled, - .btn-sample[disabled] { - color: #FFFFFF; - background-color: #AE0020; - *background-color: #003bb3; - } - - .btn-gradient-default { - font-weight: bold; - color: #B3B3B3; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #D0D0D0; - *background-color: #D0D0D0; - background-image: -moz-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), to(#D0D0D0)); - background-image: -webkit-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -o-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: linear-gradient(to bottom, #FCFCFC, #D0D0D0); - background-repeat: repeat-x; - border-color: #D0D0D0; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFCFC', endColorstr='#D0D0D0', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); - } - .btn-sample:hover, - .btn-sample:focus, - .btn-sample:active, - .btn-sample.active, - .btn-sample.disabled, - .btn-sample[disabled] { - color: #FFFFFF; - background-color: #D0D0D0; - *background-color: #003bb3; - } - -} diff --git a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.controller.js b/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.controller.js deleted file mode 100755 index 09773283..00000000 --- a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.controller.js +++ /dev/null @@ -1,92 +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('cmsPostModalController', ['$uibModalInstance', 'cmsService','post', '$log', cmsPostModalController]); - - function cmsPostModalController($uibModalInstance, cmsService, post, $log) { - - var vm = this; - var init = function () { - if(post) { - vm.post = post; - } else { - cmsService.getLastAnnouncementPost() - .then(function(response) { - if(response && response.data && response.data.length === 1) { - vm.post = response.data[0]; - } - }) - .catch(function(error) { - $log.error(error); - }); - } - - loadRecentPosts(); - }; - - vm.closeModal = function (bool) { - $uibModalInstance.close(bool); - }; - - vm.loadSelectedPostData = function(post) { - if(post) { - vm.post = post; - } - }; - - function loadRecentPosts() { - var limit = 5; - var fromLastDays = ""; - - cmsService.getPosts(limit, fromLastDays, ['Announcement', 'News']) - .then(function(response) { - vm.recentPosts = response.data; - }) - .catch(function(error) { - $log.error(error); - }); - } - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.html b/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.html deleted file mode 100755 index cd51c5e3..00000000 --- a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.html +++ /dev/null @@ -1,55 +0,0 @@ - -
- - -
-
- Most recent news & announcements -
    -
  • - {{post.title}}Posted at {{post.publish_date | date2: 'EEEE MMMM doo yyyy'}} by {{post.user.username}} -
  • -
-
-
diff --git a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.less b/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.less deleted file mode 100755 index 832ef012..00000000 --- a/d2ice.att.io/app/main/modals/cms-post-modal/cms-post-modal.less +++ /dev/null @@ -1,106 +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. -.toast-read-more-container { - padding: 0 20px; - word-wrap: break-word; - - .recent-cms-posts-container { - .line-separator { - border-bottom: solid 1px @main_color_m; - margin: 20px 0; - } - - .recent-cms-posts-title { - .a_16_m; - - } - - ul.recent-cms-posts { - margin-top: 3px; - - li { - .f-type._16_m; - list-style: none; - position: relative; - line-height: 28px; - cursor: pointer; - - .post-creation { - .f-type._12_r; - } - - &:before { - content: ''; - display: inline-block; - position: absolute; - top: 0; - } - } - - li.selected { - background-color: @func_color_r; - } - } - } -} - -.toast-read-more-title { - .a_26_m; - line-height: 26px; -} - -.toast-read-more-creation { - display: block; -} - -.toast-read-more-content { - .m_18_r; - line-height: 20px; - padding: 10px 20px 0; -} - -.modal-cms-post-read-more { - width: 70%; - margin: 0px auto; - height: 100%; - - .modal-content { - height: 100%; - } -} diff --git a/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.controller.js b/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.controller.js deleted file mode 100755 index e14a9f88..00000000 --- a/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.controller.js +++ /dev/null @@ -1,100 +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('detailedViewDtsitesModalController', ["$rootScope", "$uibModalInstance", "$stateParams", - "dtsiteService", "toastService", "vf_uuid", "$log", detailedViewDtsitesModalController]); - - function detailedViewDtsitesModalController($rootScope, $uibModalInstance, $stateParams, dtsiteService, toastService, - vf_uuid, $log) { - - var vm = this; - - var init = function () { - if($stateParams.engagement != undefined) { - vm.vf = $stateParams.engagement.vf; - } - getDTsites(); - - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.json = ''; - - vm.submitForm = function(){ - var postData={ - "name": vm.json, - "vf_uuid": vf_uuid - }; - - dtsiteService.add(postData) - .then(function (response) { - $uibModalInstance.close(response.status); - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - }); - }; - - var getDTsites = function() { - $rootScope.ice.loader.show = true; - dtsiteService.get() - .then(function (response) { - $rootScope.ice.loader.show = false; - if (response.status === 200) { - vm.dtsites = response.data; - } - }) - .catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - }; - - init(); - } - -})(); diff --git a/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html b/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html deleted file mode 100755 index 901cd624..00000000 --- a/d2ice.att.io/app/main/modals/detailed-view/dtsite/detailed-view-dtsites-modal.html +++ /dev/null @@ -1,62 +0,0 @@ - -
- - - - - -
diff --git a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.controller.js b/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.controller.js deleted file mode 100755 index 983d8d99..00000000 --- a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.controller.js +++ /dev/null @@ -1,124 +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('detailedViewVFCModalController', ["$rootScope", "$uibModalInstance", "vfcService", "toastService", - "vf_uuid", "usersService", "$log", detailedViewVFCModalController]); - - function detailedViewVFCModalController($rootScope, $uibModalInstance, vfcService, toastService, vf_uuid, usersService, $log) { - - var vm = this; - - var init = function () { - vm.me = usersService.getUserData(); - - getVendors() - }; - - vm.vfcs = [{name:'',external_ref_id:'',company:''}]; - vm.companies = []; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.addNewChoice = function () { - var newItemNo = vm.vfcs.length + 1; - vm.vfcs.push({'id': newItemNo}); - }; - - vm.removeChoice = function (index) { - vm.vfcs.splice(index,1); - }; - - vm.submitForm = function(){ - var jsonAddVfc = []; - angular.forEach(vm.vfcs, function (value, key) { - vm.item = []; - var jsonItem = new Object(); - jsonItem.name = value.name; - jsonItem.external_ref_id = value.external_ref_id; - jsonItem.company = value.company; - jsonAddVfc.push(jsonItem); - }); - - var postData={ - "vfcs": jsonAddVfc, - "vf_uuid": vf_uuid, - "creator": vm.me, - }; - - vfcService.add(postData) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.status); - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - }); - }; - - var getVendors = function() { - $rootScope.ice.loader.show = true; - vfcService.getCompanies() - .then(function (response) { - $rootScope.ice.loader.show = false; - if (response.status === 200) { - vm.companies = response.data; - if(vm.companies.length === 0 ){ - console.warn("No vendors pulled, request was successfull") - } - } - }) - .catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.html b/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.html deleted file mode 100755 index 7ac2097f..00000000 --- a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - diff --git a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.less b/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.less deleted file mode 100755 index 5ce9098d..00000000 --- a/d2ice.att.io/app/main/modals/detailed-view/vfc/detailed-view-vfc-modal.less +++ /dev/null @@ -1,68 +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. -.vfc-remove-button { - width: 20px; - height: 40px; - float: right; - .a_16_m; - cursor: pointer; - margin: 14px 0 0 0; - - .remove-icon { - .sprite; - .sprite.delete-circle; - cursor: pointer; - display: block; - } -} - -.modal-add-vfc { - margin-top: 8px; - display: block; - .add-text { - .a_16_m; - vertical-align: top; - margin-left: 6px; - } - .add-icon { - .sprite; - .sprite.add; - display: inline-block; - } -} diff --git a/d2ice.att.io/app/main/modals/feedback/feedback.controller.js b/d2ice.att.io/app/main/modals/feedback/feedback.controller.js deleted file mode 100755 index acee617b..00000000 --- a/d2ice.att.io/app/main/modals/feedback/feedback.controller.js +++ /dev/null @@ -1,82 +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('FeedbackModalController', ['$rootScope','$uibModalInstance', 'feedbackService', - 'action', 'toastService', '$log', FeedbackModalController]); - - function FeedbackModalController($rootScope, $uibModalInstance, feedbackService, action, toastService, $log) { - var vm = this; - - var init = function() { - vm.action = action; - vm.feedback_modal_description = ''; - }; - - init(); - - vm.submitForm = function () - { - var feedbackPostData = {"description":vm.feedback_modal_description}; - if (action == 'add') { - feedbackService.add(feedbackPostData) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.data); - toastService.setToast('Feedback was sent successfully.', 'success'); - } else { - toastService.setToast(response.error, 'danger'); - $rootScope.ice.loader.show = false; - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger'); - $log.error(error.message); - }); - } - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/feedback/feedback.html b/d2ice.att.io/app/main/modals/feedback/feedback.html deleted file mode 100755 index 88912c84..00000000 --- a/d2ice.att.io/app/main/modals/feedback/feedback.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - diff --git a/d2ice.att.io/app/main/modals/feedback/feedback.less b/d2ice.att.io/app/main/modals/feedback/feedback.less deleted file mode 100755 index 5d7fd8b3..00000000 --- a/d2ice.att.io/app/main/modals/feedback/feedback.less +++ /dev/null @@ -1,44 +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. -.feedback-modal-body { - .feedback-modal-description { - border-color: @main_color_q; - margin-bottom:15px; - } -} diff --git a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.controller.js b/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.controller.js deleted file mode 100755 index 98fb2c14..00000000 --- a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.controller.js +++ /dev/null @@ -1,63 +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('GeneralLogModalController', ['$uibModalInstance', 'modalDetails', GeneralLogModalController]); - - function GeneralLogModalController($uibModalInstance, modalDetails) { - - var vm = this; - - var init = function() { - if(modalDetails) { - vm.headline = modalDetails.headline || 'General log modal'; - vm.body = modalDetails.body || 'There is no body'; - } - }; - - init(); - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.html b/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.html deleted file mode 100755 index f87a8ac7..00000000 --- a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.html +++ /dev/null @@ -1,45 +0,0 @@ - -
- - -
diff --git a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.less b/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.less deleted file mode 100755 index e48ed525..00000000 --- a/d2ice.att.io/app/main/modals/general-log-modal/general-log-modal.less +++ /dev/null @@ -1,72 +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. - - -.general-log-containter { - height: inherit; - padding: 0 20px 30px; - word-wrap: break-word; - - .general-log-subtitle { - padding-bottom: 10px; - } - - .general-log-body { - height: inherit; - overflow:scroll; - padding: 0px 20px 0; - .m_18_r; - line-height: 20px; - } -} - -.general-log-modal-title { - .a_26_m; - line-height: 26px; -} - -.modal-general-log-modal { - width: 70%; - margin: 0px auto; - height: 100%; - - .modal-content { - height: 100%; - } -} diff --git a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.controller.js b/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.controller.js deleted file mode 100755 index f887a5ee..00000000 --- a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.controller.js +++ /dev/null @@ -1,74 +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('generalPromptModalController', ['$uibModalInstance','modalDetails',generalPromptModalController]); - - function generalPromptModalController($uibModalInstance, modalDetails) { - - var vm = this; - var init = function () { - if(modalDetails) { - vm.upper_headline = modalDetails.upper_headline; - vm.upper_headline_value = modalDetails.upper_headline_value; - vm.headline = modalDetails.headline || 'D2ICE'; - vm.message = modalDetails.message || 'Are you sure?'; - vm.closeCallback = modalDetails.closeCallback; - vm.approveText = modalDetails.approve || 'Approve'; - vm.cancelText = modalDetails.cancel || 'Cancel'; - vm.is_close_modal_button = modalDetails.is_close_modal_button; - vm.is_message = modalDetails.is_message; - } - }; - - vm.closeModal = function (bool) { - if(vm.closeCallback) { - vm.closeCallback(bool); - } - - $uibModalInstance.close(bool); - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.html b/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.html deleted file mode 100755 index 3bd31887..00000000 --- a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.html +++ /dev/null @@ -1,52 +0,0 @@ - - - diff --git a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.less b/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.less deleted file mode 100755 index d367cdaa..00000000 --- a/d2ice.att.io/app/main/modals/general-prompt-modal/general-prompt-modal.less +++ /dev/null @@ -1,151 +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. -.general-prompt-text-details { - .l_14_r; - padding: 3% 0% 3% 0%; -} - -.general-prompt-upper-headline { - .l_14_m; -} -.general-prompt-upper-dash { - border-bottom: dashed 1px #5a5a5a; - margin-bottom: 15px; -} -.upper-headline-value{ - .l_14_i; -} - -.general-prompt-body{ - margin: 0px; -} - -.general-prompt-title { - .m_18_r; - - .bold { - .a_18_m; - } - -} - - -.btn-gradient-success { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #41A02C; - *background-color: #41A02C; - background-image: -moz-linear-gradient(top, #A2E652, #41A02C); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#A2E652), to(#41A02C)); - background-image: -webkit-linear-gradient(top, #A2E652, #41A02C); - background-image: -o-linear-gradient(top, #A2E652, #41A02C); - background-image: linear-gradient(to bottom, #A2E652, #41A02C); - background-repeat: repeat-x; - border-color: #41A02C; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A2E652', endColorstr='#41A02C', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #41A02C; - *background-color: #003bb3; -} - -.btn-gradient-danger { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #AE0020; - *background-color: #AE0020; - background-image: -moz-linear-gradient(top, #F74658, #AE0020); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F74658), to(#AE0020)); - background-image: -webkit-linear-gradient(top, #F74658, #AE0020); - background-image: -o-linear-gradient(top, #F74658, #AE0020); - background-image: linear-gradient(to bottom, #F74658, #AE0020); - background-repeat: repeat-x; - border-color: #AE0020; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F74658', endColorstr='#AE0020', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #AE0020; - *background-color: #003bb3; -} - -.btn-gradient-default { - font-weight: bold; - color: #B3B3B3; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #D0D0D0; - *background-color: #D0D0D0; - background-image: -moz-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), to(#D0D0D0)); - background-image: -webkit-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -o-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: linear-gradient(to bottom, #FCFCFC, #D0D0D0); - background-repeat: repeat-x; - border-color: #D0D0D0; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFCFC', endColorstr='#D0D0D0', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #D0D0D0; - *background-color: #003bb3; -} diff --git a/d2ice.att.io/app/main/modals/next-steps/next-steps.controller.js b/d2ice.att.io/app/main/modals/next-steps/next-steps.controller.js deleted file mode 100755 index b90921ff..00000000 --- a/d2ice.att.io/app/main/modals/next-steps/next-steps.controller.js +++ /dev/null @@ -1,278 +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('NextStepsModalController', ['$rootScope', '$uibModalInstance', 'stepsService', 'engagement_team', - 'title', 'associated_files', 'engagement_uuid', 'checklist', 'nextstep', 'toastService', '$log', NextStepsModalController]); - - function NextStepsModalController($rootScope, $uibModalInstance, stepsService, engagement_team, title, - associated_files, engagement_uuid, checklist, nextstep, toastService, $log) { - - var vm = this; - vm.nextSteps = [{assigneesUuids: '',description: '', files: '', duedate: ''}]; - - var init = function() { - - vm.myDate = new Date(); - vm.minDate = new Date( - vm.myDate.getFullYear(), - vm.myDate.getMonth(), - vm.myDate.getDate()); - vm.maxDate = new Date( - vm.myDate.getFullYear() + 2, - vm.myDate.getMonth(), - vm.myDate.getDate()); - vm.onlyWeekendsPredicate = function (date) { - var day = date.getDay(); - return day === 0 || day === 6; - }; - - vm.wysiwyg_menu = [ - ['bold', 'italic', 'strikethrough', 'underline'], - ['unordered-list', 'ordered-list', 'outdent', 'indent'] - ]; - vm.select_str = {File: 'Select All'}; - vm.select_all_flag = false; - vm.associated_files = []; - vm.associated_files.push( vm.select_str); - vm.assigness = []; - vm.title = title; - if (checklist == undefined) - { - vm.checklist = {}; - vm.checklist.uuid = undefined; - } else { - vm.checklist = checklist; - } - - var unique_files = []; - angular.forEach(associated_files, function (value, key) { - if (unique_files.indexOf(value) == -1) { - unique_files.push(value); - vm.associated_files.push({File: value}); - } - }); - angular.forEach(engagement_team, function (value, key) { - vm.assigness.push({name: value.full_name, id: value.uuid}); - }); - vm.edit = false; - - if (nextstep != undefined) - { - vm.edit = true; - var current = {}; - current.description = nextstep.description; - current.files = []; - current.duedate = new Date(nextstep.due_date); - var unique_files = []; - angular.forEach(nextstep.files, function(val, key1) { - if (unique_files.indexOf(value) == -1) { - unique_files.push(value); - current.files.push({File: val}); - } - }); - - current.assigneesUuids = []; - angular.forEach(nextstep.assignees, function(val, key1) { - current.assigneesUuids.push({name : val.full_name, id :val.uuid}); - - }); - vm.nextSteps = [current]; - } - }; - - init(); - - vm.get_chosen_files_num = function(ns){ - if (ns.files.length == associated_files.length+1) { - return ns.files.length - 1; - } - return ns.files.length - } - - vm.add_all_associated_files = function (ns , choose_option){ - if (choose_option == true) { - ns.files = []; - ns.files.push({File: 'Select All'}); - _.forEach(associated_files, function (value, key) { - ns.files.push({File: value}); - }); - } - else { - vm.select_all_flag = false; - ns.files = []; - } - return; - } - - vm.pull_select_all_from_list = function(ns){ - var shortened_files_list = []; - _.forEach(ns.files, function(item) { - if (!_.isEqual(item, vm.select_str)) { - shortened_files_list.push(item); - } - }); - ns.files = shortened_files_list; - } - - vm.verify_files_choice = function(ns){ - _.forEach(ns.files, function(item) { - if (ns.files.length == associated_files.length && vm.select_all_flag) { - if (item === vm.select_str) { - vm.select_all_flag = false; - vm.pull_select_all_from_list(ns); - } - else { - vm.add_all_associated_files(ns, false) - } - } - else if (ns.files.length == associated_files.length && !vm.select_all_flag) { - ns.files.push({File: 'Select All'}); - vm.select_all_flag = true; - } - else if (item === vm.select_str) { - vm.select_all_flag = true; - vm.add_all_associated_files(ns, true) - } - }) - } - - vm.addNewStep = function () { - var newItemNo = vm.nextSteps.length + 1; - vm.nextSteps.push({'id': newItemNo}); - }; - - vm.removeStep = function (index) { - vm.nextSteps.splice(index,1); - }; - - vm.closeModal = function(){ - $rootScope.ice.loader.show = false; - toastService.clearToast(); - $uibModalInstance.close(); - }; - - vm.submitForm = function () { - - var jsonNextSteps = []; - - var objDate; - var strDate; - angular.forEach(vm.nextSteps, function(value, key) { - var next_step = {}; - next_step.files = []; - if (value.files.length > associated_files.length) { - vm.pull_select_all_from_list(value); - } - angular.forEach(value.files, function(val, key1) { - next_step.files.push(val.File); - }); - next_step.assigneesUuids = []; - angular.forEach(value.assigneesUuids, function(val, key1) { - next_step.assigneesUuids.push(val.id); - }); - - // TODO exho correct format in one command - objDate = new Date(Date.parse((value.duedate) + moment().format("z"))); - next_step.duedate = objDate.getFullYear() + "-" + addZero(objDate.getMonth()+1) + "-" + addZero(objDate.getDate()); - next_step.description = value.description; - jsonNextSteps.push(next_step); - }); - var checklist_uuid = vm.checklist.uuid; - var engUuid = engagement_uuid; - if (vm.edit){ - stepsService.edit(engagement_uuid, nextstep.uuid,jsonNextSteps[0]) - .then(function (response) { - if (response.status === 202) { - $uibModalInstance.close(response.data); - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error adding next step!', 'danger', {displayFor: 'modal'}); - }); - } else if (vm.checklist.uuid == undefined) { - - stepsService.add(engagement_uuid, jsonNextSteps) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.data); - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error adding next step!', 'danger', {displayFor: 'modal'}); - }); - } else { - stepsService.createChecklistNextStep(checklist_uuid, engUuid, jsonNextSteps) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.status); - vm.closeModal(); - } - else - { - toastService.setToast(error.message, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - $log.error(error); - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger', {displayFor: 'modal'}); - $rootScope.ice.loader.show = false; - $log.error(error); - }); - } - }; - - var addZero = function(x) - { - if (x<10) - { - return("0"+x); - } else - { - return(x); - } - } - } -})(); diff --git a/d2ice.att.io/app/main/modals/next-steps/next-steps.html b/d2ice.att.io/app/main/modals/next-steps/next-steps.html deleted file mode 100755 index 588247e8..00000000 --- a/d2ice.att.io/app/main/modals/next-steps/next-steps.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - diff --git a/d2ice.att.io/app/main/modals/next-steps/next-steps.less b/d2ice.att.io/app/main/modals/next-steps/next-steps.less deleted file mode 100755 index faf3eb9e..00000000 --- a/d2ice.att.io/app/main/modals/next-steps/next-steps.less +++ /dev/null @@ -1,307 +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. -.md-datepicker-calendar-pane { - z-index:30001; -} -md-datepicker.btn { - width:100%; - padding: 0px; - position: relative; - - .md-button.md-icon-button.md-datepicker-button { - float:left; - min-height: 0px; - height: 32px; - z-index: 2; - width: 100%; - padding: 0px; - margin: 0px; - md-icon { - display:none; - } - } - - .md-datepicker-input-container{ - - line-height: 28px; - border-bottom:none; - margin-left: 0px; - position: absolute; - left: 0px; - padding-left: 0px; - width: 100% - } - - .md-datepicker-input { - width: 100%; - text-align: left; - line-height: 32px; - padding-left: 10px; - margin: 0px; - } - .md-datepicker-input::-webkit-input-placeholder { - color: #555; - } - .md-datepicker-triangle-button { - top: 7px; - } - .md-datepicker-triangle-button .md-datepicker-expand-triangle { - border-left: 4px solid transparent; - border-right: 4px solid transparent; - border-top: 4px solid transparent; - border-bottom: 4px solid transparent; - } - - .md-datepicker-triangle-button .md-datepicker-expand-triangle:before { - position: absolute; - top: -13px; - left: -3px; - display: inline-block; - border-left: 3.8px solid transparent; - border-right: 3.8px solid transparent; - border-top: 7px solid transparent; - border-bottom: 5.9px solid #555555; - content: ''; - } - - .md-datepicker-triangle-button .md-datepicker-expand-triangle:after { - position: absolute; - top: 1px; - left: -3px; - display: inline-block; - border-left: 3.8px solid transparent; - border-right: 3.8px solid transparent; - border-top: 5.9px solid #555555; - border-bottom: 7px solid transparent; - content: ''; - } - -} - -.dropdown-menu li[data-ng-if="modelValue().length > 0"] { - display:none; -} -.next-steps -{ - md-datepicker .md-datepicker-input { - text-align: center; - } - -} - -.next-steps { - - .checklist-name - { - padding-left:0px; - border-bottom:1px dashed; - } - - .addNextSteps - { - - margin-bottom:10px;margin-top:10px; - } - - .repeaterNextStep - { - - margin-bottom:10px; - padding-left:10px; - padding-right:10px; - padding-left:10px; - padding-top:10px; - padding-bottom:10px; - border:1px solid; - border-color:#CCCCCC; - } - - .padTop4 - { - padding-top:4px; - } - - .padTop10 - { - padding-top:10px; - } - - .padLeft0 - { - padding-left:0px; - } - - .add-header - { - .a_16_m; - } - - .ice-wysiwyg { - height: 200px; - .wysiwyg-menu > div { - background-color: #f1f1f1; - padding: 2px; - } - } - - .font-deco { - text-decoration-line: underline; - text-decoration-style: dashed; - } - - .text-right - { - text-align:right; - } - - .font_header - { - margin_top:0px; - .m_18_m; - } - - .font_header_add_next - { - .a_24_m; - } - - .font_header_chk_name - { - .m_18_r; - } - - .margin_btm - { - margin-bottom:12px; - } - - .ms - { - background-color:yellow; - } - - multiselect > .btn-group - { - width:100%; - } - multiselect > .btn-group > .btn - { - width:100%; - } - multiselect > .btn-group > .dropdown-menu - { - width:100%; - } - - form > .lineColor - { - background-color:#F6F3F3; - } - - .add-icon { - .sprite; - .sprite.add; - display: inline-block; - } - - .add-button { - margin-top: 8px; - display: block; - .add-text { - .a_16_m; - vertical-align: top; - margin-left: 6px; - } - } - - .remove-icon { - cursor: pointer; - vertical-align: text-top; - //.sprite; - //.sprite.delete;//-circle; - .actions-sprite; - .actions-sprite.delete_large; - - display:block; - position:relative; - top:11px; - } - - .posRelative - { - position:relative; - } - - .posAbsDelBtn - { - position:absolute; - top:10px; - right:20px; - z-index:40000; - } - - #btn-submit { - width: 100%; - } - - .btn-primary { - border: 1px solid #8799A3; - border-radius: 6px; - background: #1E79B0; /* For browsers that do not support gradients */ - background: -webkit-linear-gradient(#1E79B0, #62ADD5); /* For Safari 5.1 to 6.0 */ - background: -o-linear-gradient(#1E79B0, #62ADD5); /* For Opera 11.1 to 12.0 */ - background: -moz-linear-gradient(#1E79B0, #62ADD5); /* For Firefox 3.6 to 15 */ - background: linear-gradient(#1E79B0, #62ADD5); /* Standard syntax (must be last) */ - } - - - - .datepickerdemoBasicUsage { - /** Demo styles for mdCalendar. */ } - .datepickerdemoBasicUsage md-content { - padding-bottom: 200px; } - .datepickerdemoBasicUsage .validation-messages { - font-size: 12px; - color: #dd2c00; - margin-left: 15px; } - - - - -} diff --git a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.controller.js b/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.controller.js deleted file mode 100755 index 9b73e706..00000000 --- a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.controller.js +++ /dev/null @@ -1,78 +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('selectELModalController', ['$uibModalInstance', 'excludeUuids', 'selectedOption', 'usersService', - '_', '$log', selectELModalController]); - - function selectELModalController($uibModalInstance, excludeUuids, selectedOption, usersService, _, $log) { - var vm = this; - vm.show_warning = false; - var init = function () { - usersService.getEngagementLeads() - .then(function(response) { - vm.engagementLeads = _.filter(response.data, function(el) { - return el.uuid; - }); - - vm.selectedUserUuid = _.find(vm.engagementLeads, ['uuid', selectedOption]); - }) - .catch(function(error) { - $log.error(error); - vm.closeModal(); - }); - }; - - vm.closeModal = function () { - $uibModalInstance.dismiss(); - }; - - vm.onUserSelect = function() { - if(vm.selectedUserUuid) { - $uibModalInstance.close(vm.selectedUserUuid); - } - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.html b/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.html deleted file mode 100755 index fa285a6d..00000000 --- a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.html +++ /dev/null @@ -1,56 +0,0 @@ - -
- - -
diff --git a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.less b/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.less deleted file mode 100755 index 6371cf7e..00000000 --- a/d2ice.att.io/app/main/modals/select-el-modal/select-el-modal.less +++ /dev/null @@ -1,54 +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. -.select-engagement-lead-modal { - padding: 0px 15px 0px 15px; - - .select-engagement-lead-title { - .a_24_m;; - } - - .select-engagement-lead-description { - .m_16_r; - } - - .modal-body { - top: 10px; - } -} - diff --git a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.controller.js b/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.controller.js deleted file mode 100755 index 3824870d..00000000 --- a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.controller.js +++ /dev/null @@ -1,63 +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('setEngStageModalController', ['$rootScope','$uibModalInstance','stage','eng_name','current_stage', setEngStageModalController]); - - function setEngStageModalController($rootScope, $uibModalInstance,stage, eng_name, current_stage) { - - var vm = this; - var init = function () { - vm.stage = stage; - vm.current_stage = current_stage; - vm.modalText = "Are you sure you want to set the Engagement's stage to "+vm.stage+"?"; - vm.eng_name = eng_name; - } - - vm.closeModal = function (bool) { - $uibModalInstance.close(bool); - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.html b/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.html deleted file mode 100755 index 362eb93b..00000000 --- a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.html +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.less b/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.less deleted file mode 100755 index af7d5ba1..00000000 --- a/d2ice.att.io/app/main/modals/set-eng-stage/set-eng-stage-modal.less +++ /dev/null @@ -1,135 +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. -.set-stage-modal-text-details { - .m_18_r; - padding: 3% 0% 3% 0%; -} - -.set-stage-title { - .m_18_r; - - .bold { - .a_18_m; - } - -} - -.btn-gradient-success { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #41A02C; - *background-color: #41A02C; - background-image: -moz-linear-gradient(top, #A2E652, #41A02C); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#A2E652), to(#41A02C)); - background-image: -webkit-linear-gradient(top, #A2E652, #41A02C); - background-image: -o-linear-gradient(top, #A2E652, #41A02C); - background-image: linear-gradient(to bottom, #A2E652, #41A02C); - background-repeat: repeat-x; - border-color: #41A02C; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#A2E652', endColorstr='#41A02C', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #41A02C; - *background-color: #003bb3; -} - -.btn-gradient-danger { - font-weight: bold; - color: #FFFFFF; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #AE0020; - *background-color: #AE0020; - background-image: -moz-linear-gradient(top, #F74658, #AE0020); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#F74658), to(#AE0020)); - background-image: -webkit-linear-gradient(top, #F74658, #AE0020); - background-image: -o-linear-gradient(top, #F74658, #AE0020); - background-image: linear-gradient(to bottom, #F74658, #AE0020); - background-repeat: repeat-x; - border-color: #AE0020; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F74658', endColorstr='#AE0020', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #AE0020; - *background-color: #003bb3; -} - -.btn-gradient-default { - font-weight: bold; - color: #B3B3B3; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #D0D0D0; - *background-color: #D0D0D0; - background-image: -moz-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FCFCFC), to(#D0D0D0)); - background-image: -webkit-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: -o-linear-gradient(top, #FCFCFC, #D0D0D0); - background-image: linear-gradient(to bottom, #FCFCFC, #D0D0D0); - background-repeat: repeat-x; - border-color: #D0D0D0; - border-color: #888; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFCFC', endColorstr='#D0D0D0', GradientType=0); - filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); -} -.btn-sample:hover, -.btn-sample:focus, -.btn-sample:active, -.btn-sample.active, -.btn-sample.disabled, -.btn-sample[disabled] { - color: #FFFFFF; - background-color: #D0D0D0; - *background-color: #003bb3; -} diff --git a/d2ice.att.io/app/main/modals/set-eng-stage/set_eng_stage_modal.html b/d2ice.att.io/app/main/modals/set-eng-stage/set_eng_stage_modal.html deleted file mode 100755 index adf81be3..00000000 --- a/d2ice.att.io/app/main/modals/set-eng-stage/set_eng_stage_modal.html +++ /dev/null @@ -1,58 +0,0 @@ - - -
- - - -
- -
-
- - -
diff --git a/d2ice.att.io/app/main/modals/status/status.controller.js b/d2ice.att.io/app/main/modals/status/status.controller.js deleted file mode 100755 index 9a90ec52..00000000 --- a/d2ice.att.io/app/main/modals/status/status.controller.js +++ /dev/null @@ -1,125 +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('StatusModalController', ['$rootScope', '$uibModalInstance', 'statusService', 'engagement_uuid', - 'action', 'toastService', '$log', StatusModalController]); - - function StatusModalController($rootScope, $uibModalInstance, statusService, engagement_uuid, action, toastService, $log) { - var vm = this; - - var init = function() { - vm.engagement_uuid = engagement_uuid; - vm.action = action; - if (action == 'edit') { - statusService.get(engagement_uuid) - .then(function (response) { - if (response.status === 200) - { - vm.status = response.data; - vm.status_modal_description = vm.status.description; - vm.eng_status_uuid = vm.status.uuid; - } else - { - $log.error(response); - } - }) - .catch(function (error) { - vm.status = false; - $log.error(error.message); - }); - } else { - vm.status_modal_description = ''; - } - }; - - init(); - - vm.submitForm = function () - { - var jsonPost = {"description":vm.status_modal_description}; - if (action == 'edit') { - jsonPost.eng_status_uuid = vm.eng_status_uuid; - statusService.update(vm.engagement_uuid, jsonPost) - .then(function (response) { - if (response.status === 200) - { - $uibModalInstance.close(response.data); - vm.closeModal(); - } - else - { - toastService.setToast(response.error, 'danger'); - $rootScope.ice.loader.show = false; - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger'); - $log.error(error.message); - }); - } else { - statusService.add(vm.engagement_uuid, jsonPost) - .then(function (response) { - if (response.status === 200) - { - - $uibModalInstance.close(response.data); - vm.closeModal(); - } - else - { - toastService.setToast(response.error, 'danger'); - $rootScope.ice.loader.show = false; - } - }) - .catch(function (error) { - toastService.setToast(error.message, 'danger'); - $log.error(error.message); - }); - } - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/status/status.html b/d2ice.att.io/app/main/modals/status/status.html deleted file mode 100755 index 83c50d2b..00000000 --- a/d2ice.att.io/app/main/modals/status/status.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/d2ice.att.io/app/main/modals/status/status.less b/d2ice.att.io/app/main/modals/status/status.less deleted file mode 100755 index ae5f7945..00000000 --- a/d2ice.att.io/app/main/modals/status/status.less +++ /dev/null @@ -1,44 +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. -.status-modal-body { - .status-modal-description { - border-color: @main_color_q; - margin-bottom:15px; - } -} diff --git a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.controller.js b/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.controller.js deleted file mode 100755 index a300d3da..00000000 --- a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.controller.js +++ /dev/null @@ -1,78 +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('ChangeLabEntryDateModalController', ["$uibModalInstance", "targetLabDate", "engagementUuid", "vfService", "$rootScope", "toastService", changeLabEntryDateModalController]); - - function changeLabEntryDateModalController($uibModalInstance, targetLabDate, engagementUuid, vfService, $rootScope, toastService) { - - var vm = this; - //vm.completionDate = new Date(completionDate); - vm.targetLabDate = targetLabDate; - vm.dateOptions = { - minDate: new Date(), - showWeeks: true - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.myDate = new Date(); - vm.minDate = moment(vm.myDate).format("YYYY-MM-DD") - vm.maxDate = moment(vm.myDate).add(2, 'years').format("YYYY-MM-DD"); - - vm.submitForm = function(){ - var postData={"target_date": moment(vm.targetLabDate).format("YYYY-MM-DD")}; - vfService.updateLabEntryDaysLeft(engagementUuid, postData) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(postData); - } - }) - .catch(function (error) { - toastService.setToast(error.status + ': Error changing completion date!', 'danger'); - }); - }; - } -})(); diff --git a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.html b/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.html deleted file mode 100755 index cfd30f79..00000000 --- a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.html +++ /dev/null @@ -1,55 +0,0 @@ - -
- - - - -
diff --git a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.less b/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.less deleted file mode 100755 index 8aa6f3be..00000000 --- a/d2ice.att.io/app/main/modals/target-lab-entry/change-lab-entry-date.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. - .edit-target-lab-date-modal { - .md-datepicker-input-container { - .md-datepicker-input { - width: 100%; - text-align: left; - line-height: 32px; - padding-left: 95px; - margin: 0px; - } - } - } \ No newline at end of file diff --git a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.controller.js b/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.controller.js deleted file mode 100755 index f9afa320..00000000 --- a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.controller.js +++ /dev/null @@ -1,73 +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('updateEngagementStatusModalController', ['$uibModalInstance', 'engagement', updateEngagementStatusModalController]); - - function updateEngagementStatusModalController($uibModalInstance, engagement) { - var vm = this; - var init = function () { - vm.engagement = engagement; - formatDates(); - }; - - vm.closeModal = function () { - $uibModalInstance.dismiss(); - }; - - vm.updateEngagement = function() { - formatDates(); - $uibModalInstance.close({"engagement": vm.engagement, "status": vm.status}); - }; - - var formatDates = function() { - if(vm.engagement.target_completion_date){ vm.engagement.target_completion_date = new Date(vm.engagement.target_completion_date); } - if(vm.engagement.heat_validated_time){ vm.engagement.heat_validated_time = new Date(vm.engagement.heat_validated_time); } - if(vm.engagement.image_scan_time){ vm.engagement.image_scan_time = new Date(vm.engagement.image_scan_time); } - if(vm.engagement.aic_instantiation_time){ vm.engagement.aic_instantiation_time = new Date(vm.engagement.aic_instantiation_time); } - if(vm.engagement.asdc_onboarding_time){ vm.engagement.asdc_onboarding_time = new Date(vm.engagement.asdc_onboarding_time); } - }; - - init(); - } -})(); diff --git a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.html b/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.html deleted file mode 100755 index 29abb24e..00000000 --- a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.html +++ /dev/null @@ -1,97 +0,0 @@ - -
- - -
diff --git a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.less b/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.less deleted file mode 100755 index 8bce9da3..00000000 --- a/d2ice.att.io/app/main/modals/update-engagement-status-modal/update-engagement-status-modal.less +++ /dev/null @@ -1,61 +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. -.update-engagement-status-modal { - padding: 0px 15px 0px 15px; - - .update-engagement-status-title { - .a_24_m;; - } - - .update-engagement-status-description { - .m_16_r; - } - - .form-field-title{ - .m_16_r; - } - - .modal-body { - top: 10px; - } - - .md-datepicker-input { - max-width: none; - } -} diff --git a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.controller.js b/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.controller.js deleted file mode 100755 index 1370e367..00000000 --- a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.controller.js +++ /dev/null @@ -1,202 +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('validationDetailsModalController', ["$rootScope", "$uibModalInstance", "vfcService", "vfService", "$stateParams", "toastService", "vf_uuid", "usersService", "$log", "_", validationDetailsModalController]); - - function validationDetailsModalController($rootScope, $uibModalInstance, vfcService,vfService, $stateParams,toastService, vf_uuid, usersService,$log,_) { - - var vm = this; - var init = function () { - if($stateParams.engagement) { - vm.engagement = $stateParams.engagement; - } - vm.me = usersService.getUserData(); - vfService.getSingleEngagement(vm.me.uuid,vm.engagement.uuid) - .then(function (response) { - $rootScope.ice.loader.show = false; - - if (response.status === 200 && response.data && response.data !== '') { - var vf_data = response.data; - vm.engagement_manual_id = vf_data.engagement.engagement_manual_id; - vm.vf_name = vf_data.name; - vm.vf_uuid = vf_data.uuid; - vm.ecomp_release = vf_data.ecomp_release; - vm.target_lab = new Date(vf_data.target_lab_entry_date); - vm.dtversion = vf_data.deployment_target; - vm.selected_dt_uuid = vm.dtversion.uuid; - vm.selected_ecomp_uuid = vm.ecomp_release.uuid; - vm.me = usersService.getUserData(); - vm.name = vm.engagement.name; - vm.isEngagementEL = usersService.isEngagementEL(vf_data.engagement.engagement_team); - vm.isAdmin = usersService.isAdmin(vm.me); - vm.choices = [{TargetLab: '', TargetAic: ''}]; - getDeployTargets(); - getECOMPReleases(); - getVFVersion(); - } - }) - .catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - }; - - vm.closeModal = function(){ - $uibModalInstance.close(); - }; - - vm.addNewChoice = function () { - var newItemNo = vm.choices.length + 1; - vm.choices.push({'id': newItemNo}); - }; - - function getDeployTargets() { - vfService.getDeployTargets() - .then(function (response) { - $rootScope.ice.loader.show = false; - if (response.status === 200) { - vm.deployTargets = response.data; - if (_.filter(vm.deployTargets, {'uuid': vm.dtversion.uuid}).length === 0) { - vm.dtversion.disabled = true; - vm.deployTargets.push(vm.dtversion); - } - } - }).catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - } - function getECOMPReleases(){ - vfService.getECOMPReleases() - .then(function (response) { - if (response.status === 200) { - vm.ECOMPReleases = response.data; - if (_.filter(vm.ECOMPReleases, {'uuid':vm.ecomp_release.uuid}).length === 0) { - vm.ecomp_release.disabled = true; - vm.ECOMPReleases.push(vm.ecomp_release); - } - } - }).catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - } - function getVFVersion(){ - vfService.getVFVersion(vf_uuid) - .then(function (response) { - $rootScope.ice.loader.show = false; - if (response.status === 200) { - vm.VFVersion = response.data; - } - }).catch(function (error) { - $rootScope.ice.loader.show = false; - $log.debug(error); - }); - } - vm.removeChoice = function (index) { - vm.choices.splice(index,1); - }; - - vm.submitForm = function(){ - var validationDetailsSelection = { - "vf_uuid": vm.vf_uuid, - "version": vm.VFVersion, - "target_aic_uuid": vm.TargetAic, - "ecomp_release": vm.ECOMPRelease - }; - - vfService.updateVfs(validationDetailsSelection,vm.vf_uuid) - .then(function (response) { - if (response.status === 200) { - $uibModalInstance.close(response.status); - } - }) - .catch(function (error) { - $log.error(error); - toastService.setToast(error.status + ': Error changing progress!', 'danger'); - }); - }; - - vm.update_deployment_target = function(){ - if(vm.dtversion.uuid == vm.selected_dt_uuid){ - return - } - angular.forEach(vm.dt_AIC_versions, function (value, key) { - if (value.uuid === vm.selected_dt_uuid) { - vm.dtversion = value; - }; - }); - vfService.updateDeployTargets(vm.engagement.uuid, vm.selected_dt_uuid) - .then(function (response) { - $rootScope.ice.loader.show = false; - }).catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - vm.set_edit_mode('aic'); - }; - vm.update_ECOMP_release = function(){ - if( vm.ecomp_release.uuid == vm.selected_ecomp_uuid){ - return; - } - _.each(vm.ECOMPReleases, function (value, key) { - if (value.uuid === vm.selected_ecomp_uuid) { - vm.ecomp_release = value; - }; - }); - vfService.updateECOMPReleases(vm.engagement.uuid, vm.selected_ecomp_uuid) - .then(function (response) { - $rootScope.ice.loader.show = false; - }).catch(function (error) { - $rootScope.ice.loader.show = false; - $log.error(error); - }); - vm.set_edit_mode('ecomp'); - }; - - init(); - } - -})(); diff --git a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.html b/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.html deleted file mode 100755 index 48e3fe2a..00000000 --- a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.html +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.less b/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.less deleted file mode 100755 index 08fd5ea8..00000000 --- a/d2ice.att.io/app/main/modals/validation-details/detailed-view-validation-details-modal.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. -#validation-details-form { - #edit-validation-setails-save-button { - margin-top: 15px; - } - - .field-title { - .m_16_m; - margin-bottom: 2px; - margin-top: 5px; - } -} -- cgit 1.2.3-korg