[CLAMP-1] Initial ONAP CLAMP seed code commit
[clamp.git] / src / main / resources / META-INF / resources / designer / partials / portfolios / clds_create_template.html
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP CLAMP
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights
6                               reserved.
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
11   
12   http://www.apache.org/licenses/LICENSE-2.0
13   
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.
22   -->
23
24 <div attribute-test="cldscreatetemplate" id="configure-widgets">
25         <div attribute-test="cldscreatetemplate1" class="modal-header">
26                 <button type="button" class="close" ng-click="close(false)"
27                         aria-hidden="true" style="margin-top: -3px">&times;</button>
28                 <h4>Create Template</h4>
29         </div>
30         <div attribute-test="cldscreatetemplate2" class="modal-body" style="height: 150px">
31                 <div style="height: 30px"></div>
32                 <div ng-show="error.flag">{{error.message}} </div>
33
34         <form attribute-test="cldscreatetemplate3" name="model" class="form-horizontal">
35                         <div class="form-group">
36                                 <label for="modelName" class="col-sm-3 control-label">Template Name</label>
37                                 <div class="col-sm-8">
38                                         <input type="text" class="form-control" id="modelName" name="modelName"
39                                                 ng-model="modelName" placeholder="Model Name" ng-change="checkExisting()" autofocus="autofocus" ng-pattern="/^\s*[\w\-]*\s*$/" required ng-trim="true">
40                                                 <div role="alert"><span ng-show="model.modelName.$error.pattern" style="color: red">Special Characters are not allowed in Model name.</span> <span ng-show="nameinUse" style="color: red"> Model Name Already In Use</span></div>
41                                 </div>
42                         </div>
43                 </form>
44         </div>
45         <div class="modal-footer">
46
47                 <button ng-click="createNewTemplate()" class="btn btn-primary" ng-disabled="model.modelName.$error.pattern || nameinUse" class="btn btn-primary">OK</button>
48                 <button ng-click="close(true)" class="btn btn-primary">Cancel</button>
49         </div>
50 </div>
51