2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 <script type="text/ng-template" id="add_fwParentList_popup.html">
21 <div class="modal" tabindex="-1">
22 <div class="modal-dialog modal-lg">
23 <div class="modal-content">
24 <div class="modal-header">
25 <h2 class="font-showcase-font-name" style="color: #157bb2">{{label}}</h2>
27 <form name="formdata" ng-submit="saveFWParentList(editParentList);" novalidate>
28 <div class="modal-body">
29 <div class="form-group row">
30 <div class="form-group col-sm-6" ng-class="{ 'has-error' : formdata.parentItemName.$invalid && !formdata.parentItemName.$pristine }">
31 <label>Parent Name:<sup><b>*</b></sup></label><br>
32 <input type="text" ng-model="editParentList.parentItemName" class="form-control" name= "parentItemName" required/>
33 <p ng-show="formdata.parentItemName.$invalid && !formdata.parentItemName.$pristine" class="help-block">Parent Name is required.</p>
35 <div class="form-group col-sm-6">
36 <label>Description:<sup><b>*</b></sup></label><br>
37 <input type="text" ng-model="editParentList.description" class="form-control"/>
40 <div class="form-group row">
41 <div class="form-group col-sm-4">
42 <label>Service List:</label><br>
43 <button type="button" class="btn btn-secondary btn-small" ng-click="addServiceGroupNewChoice()"><i class="fa fa-plus"></i></button>
46 <div class="form-group row">
47 <div class="form-group">
48 <div data-ng-repeat="choice in slchoices">
49 <div class="form-group row">
50 <div class="form-group col-sm-5" ng-class="{ 'has-error' : formdata.option.$invalid && !formdata.option.$pristine }">
51 <select class="form-control" ng-model="choice.option" ng-options="option for option in serviceListDictionaryDatas track by option" name= "option" required><option value = "">{{choice.option}}</option></select>
52 <p ng-show="formdata.option.$invalid && !formdata.option.$pristine" class="help-block">SL Choices Key is required.</p>
54 <div class="form-group col-sm-1">
55 <button type="button" class="btn btn-secondary btn-small" ng-show="$last" ng-click="removeServiceGroupChoice()"><i class="fa fa-minus"></i></button>
61 <div class="form-group row">
62 <div class="form-group col-sm-4">
63 <label>Address List:</label><br>
64 <button type="button" class="btn btn-secondary btn-small" ng-click="addAddressGroupNewChoice()"><i class="fa fa-plus"></i></button>
67 <div class="form-group row">
68 <div class="form-group">
69 <div data-ng-repeat="choice in alchoices">
70 <div class="form-group row">
71 <div class="form-group col-sm-5" ng-class="{ 'has-error' : formdata.option.$invalid && !formdata.option.$pristine }">
72 <select class="form-control" ng-model="choice.option" ng-options="option for option in addressGroupDictionaryDatas track by option" name= "option" required><option value = "">{{choice.option}}</option></select>
73 <p ng-show="formdata.option.$invalid && !formdata.option.$pristine" class="help-block">AL Choices Key is required.</p>
75 <div class="form-group col-sm-1">
76 <button type="button" class="btn btn-secondary btn-small" ng-show="$last" ng-click="removeAddressGroupChoice()"><i class="fa fa-minus"></i></button>
83 <div class="modal-footer">
84 <button class="btn btn-success" ng-disabled="formdata.$invalid">Save</button>
85 <button class="btn btn-default" type="button" ng-click="close()">Close</button>