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_onapName_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 style="color : #157bb2">{{label}}</h2>
27 <form name="formdata" ng-submit="saveOnapName(editOnapName);" novalidate>
28 <div class="modal-body">
29 <div class="form-group row">
30 <div class="form-group" style="margin-right:2%; margin-left:2%" ng-class="{ 'has-error' : formdata.onapName.$invalid && !formdata.onapName.$pristine }">
31 <label>Onap Name:<sup><b>*</b></sup></label><br>
32 <input type="text" class="form-control" ng-model="editOnapName.onapName" name= "onapName" required/>
33 <p ng-show="formdata.onapName.$invalid && !formdata.onapName.$pristine" class="help-block">Onap Name is required.</p>
36 <div class="form-group row">
37 <div class="form-group" style="margin-right:2%; margin-left:2%">
38 <label>Description:</label><br>
39 <input class="form-control" type="text" ng-model="editOnapName.description"/>
43 <div class="modal-footer">
44 <button class="btn btn-success" type="submit" ng-disabled="formdata.$invalid">Save</button>
45 <button class="btn btn-default" ng-click="$dismiss('cancel')">Close</button>