aboutsummaryrefslogtreecommitdiffstats
path: root/oom-app-overlay/src/main/webapp/app/oom/consul/service_popups.html
blob: 8fd92b381186f2a91c1da5119f9cb9a0aa76fd49 (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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<script type="text/ng-template" id="service_register_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="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="serviceName">*Service Name</label>
					<div class="field-group">
						<input id="serviceName" class="span12" type="text" data-ng-model="ecdapp.editRequest.service_name" autofocus />
					</div>
				</div>
			</div> 
			<div class="span12">
				<div class="form-row">
					<label for="checkEndpoint">*Endpoint URL</label>
					<div class="field-group">
						<input id="checkEndpoint" class="span12" type="text" data-ng-model="ecdapp.editRequest.check_endpoint"/>
					</div>
				</div>
			</div> 
		</div>			
			
		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="serviceId">*Service ID</label>
					<div class="field-group">
						<input id="serviceId" class="span12" type="text" data-ng-model="ecdapp.editRequest.service_id"/>
					</div>
				</div>			
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="checkInterval">*Interval</label>
					<div class="field-group">
						<input id="checkInterval" class="span12" type="text" data-ng-model="ecdapp.editRequest.check_interval"/>
					</div>
				</div>
			</div> 
		</div>

		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="serviceAddress">*Address</label>
					<div class="field-group">
						<input id="serviceAddress" class="span12" type="text" data-ng-model="ecdapp.editRequest.service_address"/>
					</div>
				</div>			
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="checkDescription">Description</label>
					<div class="field-group">
						<input id="checkDescription" class="span12" type="text" data-ng-model="ecdapp.editRequest.check_description"/>
					</div>
				</div>
			</div> 
		</div>

		<div class="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="servicePort">*Port</label>
					<div class="field-group">
						<input id="servicePort" class="span12" type="text" data-ng-model="ecdapp.editRequest.service_port"/>
					</div>
				</div>			
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="checkName">Name</label>
					<div class="field-group">
						<input id="checkName" class="span12" type="text" data-ng-model="ecdapp.editRequest.check_name"/>
					</div>
				</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.registerService(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="service_history_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="row-nowrap">
			<div class="span12">
				<div class="form-row">
					<label for="startDateTime">*Start Date</label>
					<div class="field-group">
                  		<div class="datepicker-container" >   
		                     <input id="startDateTime" name="startDateTime" class="span12" type="text" ng-model="ecdapp.startDateTime" b2b-datepicker>
                  		</div>
					</div>
				</div>
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="endDateTime">*End Date</label>
					<div class="field-group">
                  		<div class="datepicker-container" >   
		                     <input id="endDateTime" name="endDateTime" class="span12" type="text" ng-model="ecdapp.endDateTime" b2b-datepicker>
                  		</div>
					</div>
				</div>
			</div>
			<div class="span12">
				<div class="form-row">
					<label for="submit">&nbsp;</label>
					<div class="field-group">
						<button id="submit" 
							class="btn btn-alt btn-small" 
							type="submit"
							ng-disabled="ecdapp.startDateTime === '' || ecdapp.endDateTime === '' "
							ng-click="ecdapp.showHistory();">
							Search
						</button>
					</div>
				</div>
			</div>
		</div>

		<!-- show progress indicator -->
		<div ng-show="ecdapp.isDataLoading">
			<div class="span" style="margin-bottom: 20px;">
				<i class="icon-primary-spinner small" role="img"
					aria-label="Please wait while the content loads"></i> Please wait
				while the content loads.
			</div>
		</div>

		<div ng-show="ecdapp.isRequestFailed">
			<span class="ecd-error-message">{{ecdapp.errMsg}}</span>
		</div>

		<div ng-hide="ecdapp.isRequestFailed">
			<div b2b-table id="consul-services-history-table" class="b2b-table-div"
				table-data="ecdapp.tableData" search-string="ecdapp.searchString"
				current-page="ecdapp.currentPageIgnored"
				next-sort="ecdapp.nextSortIgnored">
				<table>
					<thead b2b-table-row type="header">
						<tr id="th-header-row">
							<th b2b-table-header key="status">Status</th>
							<th b2b-table-header key="output">Output</th>
							<th b2b-table-header key="notes">Date</th>
						</tr>
					</thead>

					<tbody b2b-table-row type="body"
						row-repeat="rowData in ecdapp.tableData">
						<tr id="tr-rowData">
							<td b2b-table-body ng-bind="rowData.status" />
							<td b2b-table-body ng-bind="rowData.output" />
							<td b2b-table-body ng-bind="rowData.date" />
						</tr>
					</tbody>
				</table>
			</div>
		</div> <!--hide-->

	</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="$dismiss();">
				Close
			</button>
		</div>
	</div>

</script>