15a4760404fc6f1e945a8a7cfd92516013265783
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / Windows / Dictionary / MSModelsDictionary.html
1 <!--/*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */-->
20 <script type="text/ng-template" id="add_msModel_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>
26                         <div class="corner-button in">
27                                 <button type="button" class="close" aria-label="Close"
28                                 ng-click="$dismiss('cancel')"></button>
29                         </div>
30         </div>
31                 <form name="formdata" ng-submit="saveMSModel(editMSmodelName);" novalidate>
32         <div class="modal-body">
33                         <div class="form-group row">
34             <div class="form-group col-sm-12">
35                 <label>Description:</label><br>
36                 <input type="text" ng-model="editMSmodelName.description" class="form-control"/>
37             </div>
38                         </div>
39                         <div class="form-group row">
40                         <div  class="form-group col-sm-6" ng-class="{ 'has-error' : formdata.file.$invalid && !formdata.file.$pristine }">
41                                 <input type="file" name="file" onchange="angular.element(this).scope().uploadFile(this.files)" name= "file"  required/>
42                                 <p ng-show="formdata.file.$invalid && !formdata.file.$pristine" class="help-block">Uploading Model is required.</p>
43             </div>
44                         </div>
45                         <div class="form-group row">
46                         <div class="form-group col-sm-6" ng-class="{ 'has-error' : formdata.modelName.$invalid && !formdata.modelName.$pristine }">
47                 <label>Micro Service Option:<sup><b>*</b></sup></label><br>
48                 <select class="form-control" name= "editMSmodelName.modelName"  required   ng-model="editMSmodelName.modelName"  ng-options="option for option in classListDatas track by option" ></select>
49                                 <p ng-show="formdata.classList.$invalid && !formdata.classList.$pristine" class="help-block">Micro Service is required.</p>
50                  </div>
51                          <div class="form-group col-sm-6">
52                 <label>Version:<sup><b>*</b></sup></label><br>
53                 <input type="text" required ng-model="editMSmodelName.version" class="form-control"/>
54                 </div>
55                         </div>
56         </div>
57         <div class="modal-footer">
58             <button class="btn btn-success" type="submit" ng-disabled="formdata.$invalid">Save</button>
59             <button class="btn btn-default"  type="button" ng-click="close()">Close</button>
60                 </div>
61                 </form>
62                         </div>
63 </div>
64     </div>
65 </script>