Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / fusion / scripts / view-models / workflows / workflow-new.html
1 <!--
2   ================================================================================
3   eCOMP Portal SDK
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
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   ================================================================================
19   -->
20 <div>
21         <div class="modal-header">
22                 <h3 class="modal-title">Create Workflows</h3>
23         </div>
24         <div class="workflow-popup-body">
25                 <form name="workflowForm" class="css-form" novalidate>
26                         
27                         <div class="control-group">
28                                 <label class="fn-ebz-text large" for="workflowName">Name*: </label>
29
30                                 <div>
31                                         <input type="text" id="workflowName" class="fn-ebz-text extra-large" ng-model="workflow.name"
32                                                 name="workflowName" required="required" placeholder="Workflow Name" />
33
34                                         <div ng-show="workflowForm.$submitted || workflowForm.workflowName.$touched">
35                                                 <span ng-show="workflowForm.workflowName.$error.required">Workflow Name is required !!!</span> 
36                                         </div>
37
38                                 </div>
39                         </div>
40                         
41                         
42                         <div class="control-group">
43                                 <label class="fn-ebz-text large" for="workflowKey">Key*: </label>
44                                 <div>
45                                         <input type="text" id="workflowKey" ng-model="workflow.workflowKey" class="fn-ebz-text extra-large"
46                                                 name="workflowKey" required="required" placeholder="Workflow Key" />
47
48                                         <div ng-show="workflowForm.$submitted || workflowForm.workflowKey.$touched">
49                                                 <span ng-show="workflowForm.workflowKey.$error.required">Workflow Key is required !!!</span> 
50                                         </div>
51
52                                 </div>
53                         </div>
54                         
55
56                         <div class="control-group">
57                                 <label class="fn-ebz-text large"  for="workflowDescription">Description: </label>
58
59                                 <div class="controls">
60                                         <input type="text" ng-model="workflow.description" id = "workflowDescription" name="workflowDescription" class="fn-ebz-text extra-large" placeholder="Brief Description"/>                                                                                                      
61                                 </div>
62                         </div>
63
64                         <div class="control-group">
65                                 <label class="fn-ebz-text large" for="workflowRunLink">Workflow Server URL*</label>
66                                 <div class="controls">
67                                         <input type = "url" ng-model = "workflow.runLink" id = "workflowRunLink" name = "workflowRunLink" required = "required" class="fn-ebz-text extra-large"/>
68                                 </div>
69                                                                 
70                                 <div ng-show="workflowForm.$submitted || workflowForm.workflowRunLink.$touched">
71                                         <span ng-show="workflowForm.workflowRunLink.$error.required">Run Link is required !!!</span>
72                                         <span class="error" ng-show="workflowForm.workflowRunLink.$error.url">Not valid url!</span> 
73                                 </div>                          
74                                 
75                         </div>
76                         
77                         <!-- <div class="control-group">
78                                 <label class="fn-ebz-text large" for="workflowSuspendLink">Suspend Link*</label>
79                                 <div class="controls">
80                                         <input type = "url" ng-model = "workflow.suspendLink" id = "workflowSuspendLink" name = "workflowSuspendLink" required = "required" class="fn-ebz-text extra-large"/>
81                                 </div>
82                                 
83                                 <div ng-show="workflowForm.$submitted || workflowForm.workflowSuspendLink.$touched">
84                                         <span ng-show="workflowForm.workflowSuspendLink.$error.required">Suspend Link is required !!!</span>
85                                         <span class="error" ng-show="workflowForm.workflowSuspendLink.$error.url">Not valid url!</span> 
86                                 </div>
87                         </div> -->
88                         
89                         <div class="control-group">
90                                 <label class="fn-ebz-text large" for="workflowActive">Active</label>
91                                 <div class="controls">
92                                         <!-- <input type = "text" ng-model = "workflow.active" id="workflowActive" name="workflowActive"        class="fn-ebz-text extra-large"/> -->
93                                         
94                                         <input type="radio" ng-model="workflow.active" value="true">Active
95                                         <input type="radio" ng-model="workflow.active" value="false">Inactive
96                                         
97                                         
98                                 </div>
99                         </div>
100                         
101                         <div class="modal-footer">
102                                 <a att-button btn-type="primary" ng-click="ok()">OK</a>
103                                 <a att-button btn-type="primary" ng-click="cancel()">Cancel</a>                         
104                         </div>
105                 </form>
106                 <br />
107         </div>
108 </div>