summaryrefslogtreecommitdiffstats
path: root/oom-app-overlay/src/main/webapp/app/oom/cloudify/deployment_popups.html
blob: f4a4cddbff7a7edd7f15582c7d6fcbe988de39ed (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<script type="text/ng-template" id="deployment_execute_popup.html">

	<style>
	.ecd-parameter-table
	{
	    border:   0px;
    	overflow: auto;
	}
	.ecd-parameter-table th 
	{
		font-size: 1.4rem;
	}
	</style>

	<div class="b2b-modal-header ng-scope">
		<h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
		<div class="corner-button in">
			<button type="button" class="close" aria-label="Close"
				ng-click="$dismiss('cancel')"></button>
		</div>
	</div>

	<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
		role="region" aria-label="Modal body content">

		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="blueprintId">Deployment ID</label>
					<div class="field-group">
						<!--autofocus is HTML5 attribute; doesn't work in Firefox-->
						<input id="blueprintId" class="span12" type="text" data-ng-model="ecdapp.editRequest.deployment_id" autofocus/>
					</div>
				</div>
			</div> 
			<div class="span12">
				<div class="form-row">
					<label for="allowCustom">&nbsp;</label>
					<div class="field-group">
	                	<label for="allowCustomParameters" class="checkbox">
    	                	<input id="allowCustomParameters" type="checkbox" ng-model="ecdapp.editRequest.allow_custom_parameter" />
							<i class="skin"></i><span>Allow Custom Parameters</span>
            	    	</label>
					</div>
				</div>
			</div> 
		</div>			
			
		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="workflowName">Workflow Name</label>
					<div class="field-group">
						<select b2b-dropdown id="workflowName" name="workflowName" ng-model="ecdapp.editRequest.workflow_name.value" ng-change="selectWorkflowName()">
							<option b2b-dropdown-list option-repeat="w in ecdapp.editRequest.workflow_list" value="{{w}}">
								{{w}}
							</option>
						</select>
					</div>
				</div>			
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="force">&nbsp;</label>
					<div class="field-group">
	                	<label for="force" class="checkbox">
    	                	<input id="force" type="checkbox" ng-model="ecdapp.editRequest.force" />
							<i class="skin"></i><span>Force</span>
            	    	</label>
					</div>
				</div>
			</div> 
		</div>

		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="parameters">*Parameters</label>
    				<div b2b-file-drop file-model="ecdapp.editRequest.fileModel" on-drop="handleFileSelect()" align="center">
	    					<span b2b-file-link file-model="ecdapp.editRequest.fileModel" on-file-select="handleFileSelect()" >
    						Drag &amp; drop a parameters YAML file here, or click to browse.
    						</span>
			        </div>
		        </div>
				<div class="ecd-parameter-table">
					<table id="parameters">
						<tr id="ecd-table-header">
							<th width="40%">Name</th>
							<th width="60%">Value</th>
						</tr>
		            	<tbody ng-repeat="(pkey, pval) in ecdapp.editRequest.parmFileDict">
							<tr id="tr-rowData">
								<td ng-bind="pkey"/>
								<td ng-bind="pval"/>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>

	</div>

	<div class="b2b-modal-footer ng-scope ng-isolate-scope">
		<div class="cta-button-group in">
			<button class="btn btn-alt btn-small" type="button"
					ng-click="ecdapp.executeDeployment(ecdapp.editRequest);">
				Save
			</button>
			<button class="btn btn-small" type="button"
				ng-click="$dismiss('cancel')">
				Cancel
			</button>
		</div>
	</div>

</script>

<script type="text/ng-template" id="deployment_delete_popup.html">
	

	<div class="b2b-modal-header ng-scope">
		<h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
		<div class="corner-button in">
			<button type="button" class="close" aria-label="Close"
				ng-click="$dismiss('cancel')"></button>
		</div>
	</div>

	<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
		role="region" aria-label="Modal body content">
 
		<div class="span12">
			<div class="form-row">					
				<div class="field-group">
					<label>
						Delete deployment with ID '{{ecdapp.deploymentId}}'?
					</label>
				</div>
			</div>
		</div>

		<div class="span12">
			<div class="form-row">
				<label for="ignoreLiveNodesCheck">&nbsp;</label>
				<div class="field-group">
                	<label for="ignoreLiveNodes" class="checkbox">
   	                	<input id="ignoreLiveNodes" type="checkbox" ng-model="ecdapp.ignoreLiveNodes" />
						<i class="skin"></i><span>Ignore Live Nodes</span>
           	    	</label>
				</div>
			</div>
		</div> 

	</div>

	<div class="b2b-modal-footer ng-scope ng-isolate-scope">
		<div class="cta-button-group in">
			<button class="btn btn-alt btn-small" type="button"
					ng-click="ecdapp.deleteDeploymentById(deployment);">
				Delete
			</button>
			<button class="btn btn-small" type="button"
				ng-click="$dismiss('cancel')">
				Cancel
			</button>
		</div>
	</div>

</script>