aboutsummaryrefslogtreecommitdiffstats
path: root/d2ice.att.io/app/main/modals/next-steps
diff options
context:
space:
mode:
authorEdan Binshtok <eb578m@intl.att.com>2017-10-17 17:42:16 +0300
committerEdan Binshtok <eb578m@intl.att.com>2017-10-17 17:42:16 +0300
commitd0ea6a49ce88f043a6b7ce7ff8a7bb6333bd691c (patch)
tree4696cef781de91936b152e57aa26ee96042e4fbe /d2ice.att.io/app/main/modals/next-steps
parent1cd02f285d4d778dddfe34024da4b31afdc0afcd (diff)
Removal of AT&T Proprietary
Remove Terms of d2ice Remove d2ice and att in js Remove fonts Change-Id: I383d96979e0f9f7af923365f2dba7b0c7fb8f0eb Issue-Id: VVP-25 Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'd2ice.att.io/app/main/modals/next-steps')
-rwxr-xr-xd2ice.att.io/app/main/modals/next-steps/next-steps.controller.js278
-rwxr-xr-xd2ice.att.io/app/main/modals/next-steps/next-steps.html138
-rwxr-xr-xd2ice.att.io/app/main/modals/next-steps/next-steps.less307
3 files changed, 0 insertions, 723 deletions
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 @@
-<!--
-============LICENSE_START==========================================
-org.onap.vvp/portal
-===================================================================
-Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-===================================================================
-
-Unless otherwise specified, all software contained herein is licensed
-under the Apache License, Version 2.0 (the “License”);
-you may not use this software except in compliance with the License.
-You may obtain a copy of the License at
-
- http:www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Unless otherwise specified, all documentation contained herein is licensed
-under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
-you may not use this documentation except in compliance with the License.
-You may obtain a copy of the License at
-
- https:creativecommons.org/licenses/by/4.0/
-
-Unless required by applicable law or agreed to in writing, documentation
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-============LICENSE_END============================================
-
-ECOMP is a trademark and service mark of AT&T Intellectual Property.-->
-<ice-toast is-modal="true"></ice-toast>
-<div class="modal-header next-steps">
- <button type="button" ng-click="vm.closeModal()" id="close-modal-button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
- <div class="data-row-wrapper col-md-12 checklist-name" >
- <span class="font_header">
- {{vm.checklist.uuid == undefined && 'Engagement' || 'Checklist' }}:
- </span>
- <span class="font_header_chk_name margin_btm">
- {{vm.title}}
- </span>
- </div>
-</div>
-<div class="modal-body next-steps">
- <form name="nextStepsForm" ng-submit="vm.submitForm()" novalidate class="checkList-form" style="position:relative">
- <div class="data-row-wrapper addNextSteps">
- <div class="row">
- <div class="col-md-12">
- <span class="font_header_add_next">
- <h2>{{vm.edit ? 'Edit' : 'Add'}} Next Steps</h2>
- </span>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <span class="m_18_r">Use the form below to {{vm.edit ? 'edit next step' : 'add next steps'}}. You will need to specify assignees, which files it applies to and the due date.</span>
- </div>
- </div>
- </div>
- <div data-ng-repeat="nextStep in vm.nextSteps" ng-class="{lineColor: ($index % 2 != 0)}" class="data-row-wrapper repeaterNextStep">
- <div class="form-group row posRelative">
- <span class="remove-icon posAbsDelBtn" ng-if="vm.nextSteps.length > 1" ng-click='vm.removeStep($index)'></span>
- <div class="col-md-12">
- <wysiwyg textarea-id="description"
- textarea-class="form-control"
- textarea-name="description"
- name="description"
- textarea-height="160px"
- ng-required="true"
- ng-model="nextStep.description"
- class="ice-wysiwyg"
- enable-bootstrap-title="true"
- textarea-menu="vm.wysiwyg_menu"
- required>
- </wysiwyg>
- </div>
- <div class="col-md-12 padTop4">
- <multiselect
- ng-model="nextStep.files"
- options="c.File for c in vm.associated_files"
- name="{{vm.associated_files}}"
- data-multiple="true"
- scroll-after-rows="5"
- filter-after-rows="5"
- ng-required='vm.checklist.uuid != undefined'
- ms-selected="{{nextStep.files.length > 1 ? vm.get_chosen_files_num(nextStep) + ' files' : nextStep.files.length + ' file'}} selected"
- class = "ms"
- ms-header = "Select all associated files to this next step"
- id="associated-files-list"
- tabindex="-1"
- change="vm.verify_files_choice(nextStep)"
- >
- </multiselect>
- </div>
- <div class="col-md-6 padTop10">
- <multiselect
- ng-model="nextStep.assigneesUuids"
- options="c.name for c in vm.assigness"
- data-multiple="true"
- scroll-after-rows="5"
- filter-after-rows="5"
- ng-required='vm.checklist.uuid != undefined'
- ms-header = "Select assignees"
- ms-selected="{{nextStep.assigneesUuidss.length > 1 ? nextStep.assigneesUuidss.length + ' assignees' : nextStep.assigneesUuidss.length + ' assignee'}} selected"
- id="select-assigness"
- tabindex="-1">
- </multiselect>
- </div>
- <div class="col-md-6 padTop10">
- <div flex-gt-xs>
- <md-datepicker ng-model-options="{timezone: 'gmt'}" md-min-date="vm.minDate" class="btn btn-default" ng-model="nextStep.duedate" md-placeholder="Add a Due Date" data-ng-required="true" ></md-datepicker>
- </div>
- </div>
- </div>
- </div>
- <div class="data-row-wrapper " ng-if="!vm.edit">
- <div class="col-md-12 padLeft0">
- <a class="add-button" ng-click='vm.addNewStep()'>
- <span class="add-icon"></span>
- <span class="add-text" >Add Another Next Step</span>
- </a>
- </div>
- </div>
- <div class="data-row-wrapper ">
- <button type="submit" id="btn-submit" class="btn btn-primary" data-ng-disabled="!nextStepsForm.$valid">Submit Next Steps</button>
- </div>
- <div class="data-row-wrapper text-right font-deco" ng-click="vm.closeModal()">
- Skip for now
- </div>
- </form>
-</div>
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; }
-
-
-
-
-}