2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
20 ===================================================================
21 ECOMP is a trademark and service mark of AT&T Intellectual Property.
24 <div attribute-test="cldsopentemplate" id="configure-widgets">
25 <div attribute-test="cldsopentemplate2" class="modal-header">
26 <button type="button" class="close" ng-click="close(false)"
27 aria-hidden="true" style="margin-top: -3px">×</button>
28 <h4>Open Template</h4>
30 <div attribute-test="cldsopentemplate" class="modal-body" style="height: 150px">
31 <div style="height: 30px"></div>
33 <form name="model" class="form-horizontal">
34 <div class="form-group clearfix">
35 <label for="modelName" class="col-sm-3 control-label">Model Name</label>
36 <div class="col-sm-8">
37 <select class="form-control" id="modelName" name="modelName"
38 autofocus="autofocus" required ng-trim="true">
39 <option ng-repeat="x in modelNamel" value="{{x}}">{{x}}</option>
41 <div role="alert"><span ng-show="model.modelName.$error.pattern" style="color: red">Special Characters are not allowed in Model name.</span></div>
46 <div class="modal-footer">
48 <button ng-click="openTemplate()" class="btn btn-primary" ng-disabled="model.modelName.$error.pattern" class="btn btn-primary">OK</button>
49 <button ng-click="close(true)" class="btn btn-primary">Cancel</button>
53 /*$.get("/restservices/clds/v1/clds/model-names",function(data) {
54 var mySelect = $('#modelName');
56 mySelect.append("<option value=''>New Diagram</option>")
58 for(var i=0;i<data.length;i++){
62 $.each(map, function(val, text) {
64 $('<option></option>').val(text).html(text)