aboutsummaryrefslogtreecommitdiffstats
path: root/ecomp-sdk-app/src/main/webapp/app/fusion/scripts/view-models/workflows/workflow-new.html
blob: 4622b928f756c8bfbbb6d5aac435a898c9bc6f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!--
  ================================================================================
  eCOMP Portal SDK
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ================================================================================
  -->
<div>
	<div class="modal-header">
		<h3 class="modal-title">Create Workflows</h3>
	</div>
	<div class="workflow-popup-body">
		<form name="workflowForm" class="css-form" novalidate>
			
			<div class="control-group">
				<label class="fn-ebz-text large" for="workflowName">Name*: </label>

				<div>
					<input type="text" id="workflowName" class="fn-ebz-text extra-large" ng-model="workflow.name"
						name="workflowName" required="required" placeholder="Workflow Name" />

					<div ng-show="workflowForm.$submitted || workflowForm.workflowName.$touched">
						<span ng-show="workflowForm.workflowName.$error.required">Workflow Name is required !!!</span> 
					</div>

				</div>
			</div>
			
			
			<div class="control-group">
				<label class="fn-ebz-text large" for="workflowKey">Key*: </label>
				<div>
					<input type="text" id="workflowKey" ng-model="workflow.workflowKey" class="fn-ebz-text extra-large"
						name="workflowKey" required="required" placeholder="Workflow Key" />

					<div ng-show="workflowForm.$submitted || workflowForm.workflowKey.$touched">
						<span ng-show="workflowForm.workflowKey.$error.required">Workflow Key is required !!!</span> 
					</div>

				</div>
			</div>
			

			<div class="control-group">
				<label class="fn-ebz-text large"  for="workflowDescription">Description: </label>

				<div class="controls">
					<input type="text" ng-model="workflow.description" id = "workflowDescription" name="workflowDescription" class="fn-ebz-text extra-large" placeholder="Brief Description"/>													
				</div>
			</div>

			<div class="control-group">
				<label class="fn-ebz-text large" for="workflowRunLink">Workflow Server URL*</label>
				<div class="controls">
					<input type = "url" ng-model = "workflow.runLink" id = "workflowRunLink" name = "workflowRunLink" required = "required"	class="fn-ebz-text extra-large"/>
				</div>
								
				<div ng-show="workflowForm.$submitted || workflowForm.workflowRunLink.$touched">
					<span ng-show="workflowForm.workflowRunLink.$error.required">Run Link is required !!!</span>
					<span class="error" ng-show="workflowForm.workflowRunLink.$error.url">Not valid url!</span> 
				</div>				
				
			</div>
			
			<!-- <div class="control-group">
				<label class="fn-ebz-text large" for="workflowSuspendLink">Suspend Link*</label>
				<div class="controls">
					<input type = "url" ng-model = "workflow.suspendLink" id = "workflowSuspendLink" name = "workflowSuspendLink" required = "required" class="fn-ebz-text extra-large"/>
				</div>
				
				<div ng-show="workflowForm.$submitted || workflowForm.workflowSuspendLink.$touched">
					<span ng-show="workflowForm.workflowSuspendLink.$error.required">Suspend Link is required !!!</span>
					<span class="error" ng-show="workflowForm.workflowSuspendLink.$error.url">Not valid url!</span> 
				</div>
			</div> -->
			
			<div class="control-group">
				<label class="fn-ebz-text large" for="workflowActive">Active</label>
				<div class="controls">
					<!-- <input type = "text" ng-model = "workflow.active" id="workflowActive" name="workflowActive"	class="fn-ebz-text extra-large"/> -->
					
					<input type="radio" ng-model="workflow.active" value="true">Active
					<input type="radio" ng-model="workflow.active" value="false">Inactive
					
					
				</div>
			</div>
			
			<div class="modal-footer">
				<a att-button btn-type="primary" ng-click="ok()">OK</a>
				<a att-button btn-type="primary" ng-click="cancel()">Cancel</a>				
			</div>
		</form>
		<br />
	</div>
</div>