blob: daccf88c33656ceb052397640b023d9ef9eb9896 [file] [log] [blame]
Scott Bakerc1e681e2014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker8560fd12014-11-24 23:26:12 -08003<script type="text/template" id="xos-error-response">
4 <h5>Error</h5>
5 <table>
6 <tr><td>error:</td><td><%= error %></td></tr>
7 <tr><td>check:</td><td><%= specific_error %></td></tr>
8 </table>
9 <h5>Details:</h5>
10 <table>
11 <tbody>
12 <% _.each(reasons, function(element, index) { %>
13 <tr><td><%= index %></td><td><%= element %></td></tr>
14 <% }); %>
15 </tbody>
16 </table>
17</script>
18
Scott Baker28a65442014-11-03 23:54:59 -080019<script type="text/template" id="xos-error-template">
Scott Bakerc1e681e2014-11-03 09:43:23 -080020 <button id="close-error-box">Close Error Message</button>
21 <h3>An error has occurred.</h3>
22 <table class="test-error-table">
23 <tr><td>Code:</td><td><%= status %></td></tr>
24 <tr><td>Message:</td><td><%= statusText %></td></tr>
25 </table>
26</script>
27
Scott Baker28a65442014-11-03 23:54:59 -080028<script type="text/template" id="xos-success-template">
Scott Bakerc1e681e2014-11-03 09:43:23 -080029 <button id="close-success-box">Close Success Message</button>
30 <h3>Success!</h3>
31 <table class="test-success-table">
32 <tr><td>Code:</td><td><%= status %></td></tr>
33 <tr><td>Message:</td><td><%= statusText %></td></tr>
34 </table>
35</script>
36
Scott Baker100b0a32014-11-04 09:34:17 -080037<script type="text/template" id="xos-navbutton-old">
Scott Baker28a65442014-11-03 23:54:59 -080038 <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
39</script>
40
Scott Baker17390d22014-11-05 21:11:50 -080041<script type="text/template" id="xos-status-template">
Scott Baker1c5d4ee2014-11-14 16:13:43 -080042 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
Scott Baker17390d22014-11-05 21:11:50 -080043</script>
44
Scott Baker76d7b622014-11-04 23:20:48 -080045<script type="text/template" id="xos-tabs-template">
46 <ul class="xos-nav-list">
47 <% _.each(tabs, function(tab) { %>
48 <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
49 <% }); %>
50 </ul>
51</script>
52
53<script type="text/template" id="xos-title-list">
Scott Baker95a57b82014-11-18 17:02:07 -080054 <h3><img src="/static/img/brokencircle.gif" height=16 width=16 id="xos-list-title-spinner"> <%= title %></h3>
Scott Baker76d7b622014-11-04 23:20:48 -080055</script>
56
57<script type="text/template" id="xos-title-detail">
58 <h3><%= title %></h3>
59</script>
60
Scott Baker100b0a32014-11-04 09:34:17 -080061<script type="text/template" id="xos-navbutton">
62 <li>
63 <a href="<%= routeUrl %>">
64 <i class="<%= iconClass %>"></i>
65 <%= name %>
66 </a>
Scott Baker50282372014-11-04 15:41:47 -080067 </li>
Scott Baker100b0a32014-11-04 09:34:17 -080068</script>
69
Scott Baker09ed3e02014-11-07 13:01:43 -080070<script type="text/template" id="xos-inline-detail-buttons-template">
71 <tr>
72 <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button>
73 <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button>
74 <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button>
Scott Baker95a57b82014-11-18 17:02:07 -080075 <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button>
Scott Baker09ed3e02014-11-07 13:01:43 -080076 </td>
77 </tr>
78</script>
79
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080080<script type="text/template" id="xos-inline-list-buttons-template">
81 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
Scott Baker95a57b82014-11-18 17:02:07 -080082 <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button>
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080083 </td>
84 </tr>
85</script>
86
Scott Baker7e0e6b92014-10-30 16:10:16 -070087<!-- Deployment -->
88
89<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -080090 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080091 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -070092 <table class="test-table">
93 <thead><tr>
94 <th>id</th>
95 <th>name</th>
96 <th>backend</th>
97 <th>admin_tenant</th>
98 <th># sites</th>
99 </tr></thead>
100 <tbody></tbody>
101 </table>
102</script>
103
104
105<script type="text/template" id="xosAdmin-deployment-listitem-template">
106 <td class="objectLink"><%= id %></td>
107 <td class="objectLink"><%= name %></td>
108 <td><%= backend_type %></td>
109 <td><%= admin_tenant %></td>
Scott Baker95a57b82014-11-18 17:02:07 -0800110 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700111</script>
112
113<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800114 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Baker17390d22014-11-05 21:11:50 -0800115 <form>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700116 <table>
117 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
118 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
119 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800120 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700121 </table>
122 </form>
Scott Baker17390d22014-11-05 21:11:50 -0800123</script>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700124
125<!-- Image -->
126
127<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800128 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800129 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700130 <table class="test-table">
131 <thead><tr>
132 <th>id</th>
133 <th>name</th>
134 <th>disk_format</th>
135 <th>container_format</th>
136 <th>path</th>
137 </tr></thead>
138 <tbody></tbody>
139 </table>
140</script>
141
142<script type="text/template" id="xosAdmin-image-listitem-template">
143 <td class="objectLink"><%= id %></td>
144 <td class="objectLink"><%= name %></td>
145 <td><%= disk_format %></td>
146 <td><%= container_format %></td>
147 <td><%= path %></td>
148</script>
149
150<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800151 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700152 <form>
153 <table>
154 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
155 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
156 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800157 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700158 </table>
159 </form>
160</script>
161
162<!-- NetworkTemplate -->
163
164<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800165 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800166 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700167 <table class="test-table">
168 <thead><tr>
169 <th>id</th>
170 <th>name</th>
171 <th>description</th>
172 <th>visibility</th>
173 <th>translation</th>
174 <th>sharedNetworkName</th>
175 <th>sharedNetworkId</th>
176 </tr></thead>
177 <tbody></tbody>
178 </table>
179</script>
180
181
182<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
183 <td class="objectLink"><%= id %></td>
184 <td class="objectLink"><%= name %></td>
185 <td><%= description %></td>
186 <td><%= visibility %></td>
187 <td><%= translation %></td>
188 <td><%= sharedNetworkName %></td>
189 <td><%= sharedNetworkId %></td>
190</script>
191
192<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800193 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700194 <form>
195 <table>
196 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
197 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
198 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
199 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
200 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
201 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800202 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700203 </table>
204 </form>
205</script>
206
207<!-- Network -->
208
209<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800210 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800211 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700212 <table class="test-table">
213 <thead><tr>
214 <th>id</th>
215 <th>name</th>
216 <th>template</th>
217 <th>ports</th>
218 <th>labels</th>
219 <th>owner</th>
220 </tr></thead>
221 <tbody></tbody>
222 </table>
223</script>
224
225<script type="text/template" id="xosAdmin-network-listitem-template">
226 <td class="objectLink"><%= id %></td>
227 <td class="objectLink"><%= name %></td>
228 <td><%= idToName(template,"networkTemplates","name") %></td>
229 <td><%= ports %></td>
230 <td><%= labels %></td>
231 <td><%= idToName(owner,"slices","name") %></td>
232</script>
233
234<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800235 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700236 <form>
237 <table>
238 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800239 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700240 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
241 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800242 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800243 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700244 </table>
245 </form>
246</script>
247
248<!-- NetworkSliver -->
249
250<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800251 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800252 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700253 <table class="test-table">
254 <thead><tr>
255 <th>id</th>
256 <th>network</th>
257 <th>sliver</th>
258 <th>ip</th>
259 <th>port_id</th>
260 </tr></thead>
261 <tbody></tbody>
262 </table>
263</script>
264
265<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
266 <td class="objectLink"><%= id %></td>
267 <td><%= idToName(network,"networks","name") %></td>
268 <td><%= idToName(sliver,"slivers","name") %></td>
269 <td><%= ip %></td>
270 <td><%= port_id %></td>
271</script>
272
273<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800274 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700275 <form>
276 <table>
277 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
278 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
279 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
280 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800281 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700282 </table>
283 </form>
284</script>
285
Scott Bakercefee292014-10-31 16:43:07 -0700286<!-- NetworkDeployment -->
287
288<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800289 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800290 <%= xosInlineListButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700291 <table class="test-table">
292 <thead><tr>
293 <th>id</th>
294 <th>network</th>
295 <th>deployment</th>
296 <th>net_id</th>
297 </tr></thead>
298 <tbody></tbody>
299 </table>
300</script>
301
302<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
303 <td class="objectLink"><%= id %></td>
304 <td><%= idToName(network,"networks","name") %></td>
305 <td><%= idToName(deployment,"deployments","name") %></td>
306 <td><%= net_id %></td>
307</script>
308
309<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800310 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakercefee292014-10-31 16:43:07 -0700311 <form>
312 <table>
313 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
314 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
315 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800316 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700317 </table>
318 </form>
319</script>
320
Scott Baker7e0e6b92014-10-30 16:10:16 -0700321<!-- Node -->
322
323<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800324 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800325 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700326 <table class="test-table">
327 <thead><tr>
328 <th>id</th>
329 <th>name</th>
330 <th>site</th>
331 <th>deployment</th>
332 </tr></thead>
333 <tbody></tbody>
334 </table>
335</script>
336
337
338<script type="text/template" id="xosAdmin-node-listitem-template">
339 <td class="objectLink"><%= id %></td>
340 <td class="objectLink"><%= name %></td>
341 <td><%= idToName(site,"sites","name") %></td>
342 <td><%= idToName(deployment,"deployments","name") %></td>
343</script>
344
345<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800346 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700347 <form>
348 <table>
349 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800350 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
351 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800352 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700353 </table>
354 </form>
355</script>
356
357<!-- SliceRole -->
358
359<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800360 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800361 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700362 <table class="test-table">
363 <thead><tr>
364 <th>id</th>
365 <th>role</th>
366 </tr></thead>
367 <tbody></tbody>
368 </table>
369</script>
370
371
372<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
373 <td class="objectLink"><%= id %></td>
374 <td><%= role %></td>
375</script>
376
377<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800378 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700379 <form>
380 <table>
381 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800382 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700383 </table>
384 </form>
385</script>
386
387<!-- Service -->
388
389<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800390 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800391 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700392 <table class="test-table">
393 <thead><tr>
394 <th>id</th>
395 <th>name</th>
396 <th>description</th>
397 <th>enabled</th>
398 <th>versionNumber</th>
399 <th>published</th>
400 </tr></thead>
401 <tbody></tbody>
402 </table>
403</script>
404
405
406<script type="text/template" id="xosAdmin-service-listitem-template">
407 <td class="objectLink"><%= id %></td>
408 <td class="objectLink"><%= name %></td>
409 <td><%= description %></td>
410 <td><%= enabled %></td>
411 <td><%= versionNumber %></td>
412 <td><%= published %></td>
413</script>
414
415<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800416 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700417 <form>
418 <table>
419 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
420 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
421 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800422 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700423 </table>
424 </form>
425</script>
426
427<!-- Site -->
428
429<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800430 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800431 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700432 <table class="test-table">
433 <thead><tr>
434 <th>id</th>
435 <th>name</th>
436 <th>url</th>
437 <th>enabled</th>
438 <th>login_base</th>
439 <th>is_public</th>
440 <th>abbreviated_name</th>
441 </tr></thead>
442 <tbody></tbody>
443 </table>
444</script>
445
446<script type="text/template" id="xosAdmin-site-listitem-template">
447 <td class="objectLink"><%= id %></td>
448 <td class="objectLink"><%= name %></td>
449 <td><%= site_url %></td>
450 <td><%= enabled %></td>
451 <td><%= login_base %></td>
452 <td><%= is_public %></td>
453 <td><%= abbreviated_name %></td>
454</script>
455
456<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800457 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700458 <form>
459 <table>
460 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800461 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700462 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800463 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
464 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700465 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800466 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700467 </table>
468 </form>
469</script>
470
471<!-- Slice -->
472
473<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800474 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800475 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700476 <table class="test-table">
477 <thead><tr>
478 <th>id</th>
479 <th>name</th>
480 <th>enabled</th>
481 <th>omf_friendly</th>
482 <th>description</th>
483 <th>slice_url</th>
484 <th>site</th>
485 <th>max_slivers</th>
486 <th>service</th>
487 </tr></thead>
488 <tbody></tbody>
489 </table>
490</script>
491
492<script type="text/template" id="xosAdmin-slice-listitem-template">
493 <td class="objectLink"><%= id %></td>
494 <td class="objectLink"><%= name %></td>
495 <td><%= enabled %></td>
496 <td><%= omf_friendly %></td>
497 <td><%= description %></td>
498 <td><%= slice_url %></td>
499 <td><%= idToName(site,"sites","name") %></td>
500 <td><%= max_slivers %></td>
501 <td><%= idToName(service,"services","name") %></td>
502</script>
503
504<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800505 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700506 <form>
507 <table>
508 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker47798362014-11-12 01:15:52 -0800509 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700510 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
511 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
512 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
513 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800514 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700515 </table>
516 </form>
517</script>
518
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800519<!-- SliceDeployment -->
Scott Baker7e0e6b92014-10-30 16:10:16 -0700520
521<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800522 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800523 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700524 <table class="test-table">
525 <thead><tr>
526 <th>id</th>
527 <th>slice</th>
528 <th>deployment</th>
529 <th>tenant_id</th>
530 </tr></thead>
531 <tbody></tbody>
532 </table>
533</script>
534
535<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
536 <td class="objectLink"><%= id %></td>
537 <td><%= idToName(slice,"slices","name") %></td>
538 <td><%= idToName(deployment,"deployments","name") %></td>
539 <td><%= tenant_id %></td>
540</script>
541
542<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800543 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700544 <form>
545 <table>
546 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
547 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
548 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800549 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700550 </table>
551 </form>
552</script>
553
554<!-- SlicePrivilege -->
555
556<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800557 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800558 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700559 <table class="test-table">
560 <thead><tr>
561 <th>id</th>
562 <th>user</th>
563 <th>slice</th>
564 <th>role</th>
565 </tr></thead>
566 <tbody></tbody>
567 </table>
568</script>
569
570<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
571 <td class="objectLink"><%= id %></td>
572 <td><%= idToName(user,"users","username") %></td>
573 <td><%= idToName(slice,"slices","name") %></td>
574 <td><%= idToName(role,"sliceRoles","role") %></td>
575</script>
576
577<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800578 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700579 <form>
580 <table>
581 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
582 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
583 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800584 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700585 </table>
586 </form>
587</script>
588
589<!-- Sliver -->
590
591<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800592 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800593 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700594 <table class="test-table">
595 <thead><tr>
596 <th>id</th>
597 <th>name</th>
598 <th>instance_id</th>
599 <th>instance_name</th>
600 <th>image</th>
601 <th>creator</th>
602 <th>slice</th>
603 <th>node</th>
604 <th>deploymentNetwork</th>
605 <th>flavor</th>
606 <th>userData</th>
607 </tr></thead>
608 <tbody></tbody>
609 </table>
610</script>
611
612
613<script type="text/template" id="xosAdmin-sliver-listitem-template">
614 <td class="objectLink"><%= id %></td>
615 <td class="objectLink"><%= name %></td>
616 <td><%= instance_id %></td>
617 <td><%= instance_name %></td>
618 <td><%= idToName(image,"images","name") %></td>
619 <td><%= idToName(creator,"users","name") %></td>
620 <td><%= idToName(slice,"slices","name") %></td>
621 <td><%= idToName(node,"nodes","name") %></td>
622 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
623 <td><%= flavor %></td>
624 <td><%= userData %></td>
625</script>
626
627<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800628 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700629 <form>
630 <table>
631 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
632 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
633 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800634 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
635 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Bakered12d512014-11-04 23:50:45 -0800636 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
637 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800638 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700639 </table>
640 </form>
641</script>
642
643<!-- User -->
644
645<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800646 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800647 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700648 <table class="test-table">
649 <thead><tr>
650 <th>id</th>
651 <th>username</th>
652 <th>firstname</th>
653 <th>lastname</th>
654 <th>phone</th>
655 <th>user_url</th>
656 <th>site</th>
657 </tr></thead>
658 <tbody></tbody>
659 </table>
660</script>
661
662
663<script type="text/template" id="xosAdmin-user-listitem-template">
664 <td class="objectLink"><%= id %></td>
665 <td class="objectLink"><%= username %></td>
666 <td><%= firstname %></td>
667 <td><%= lastname %></td>
668 <td><%= phone %></td>
669 <td><%= user_url %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700670 <td><%= idToName(site,"sites","name") %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700671</script>
672
673<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800674 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700675 <form>
676 <table>
677 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
678 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
679 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
680 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
681 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800682 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800683 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700684 </table>
685 </form>
686</script>
687
Scott Baker84e01fe2014-10-31 00:18:24 -0700688<!-- UserDeployments -->
689
690<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800691 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800692 <%= xosInlineListButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700693 <table class="test-table">
694 <thead><tr>
695 <th>id</th>
696 <th>user</th>
697 <th>deployment</th>
698 <th>kuser_id</th>
699 </tr></thead>
700 <tbody></tbody>
701 </table>
702</script>
703
Scott Baker84e01fe2014-10-31 00:18:24 -0700704<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
705 <td class="objectLink"><%= id %></td>
706 <td><%= idToName(user,"users","username") %></td>
707 <td><%= idToName(deployment,"deployments","name") %></td>
708 <td><%= kuser_id %></td>
709</script>
710
711<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800712 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker84e01fe2014-10-31 00:18:24 -0700713 <form>
714 <table>
715 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
716 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
717 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800718 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700719 </table>
720 </form>
721</script>
Scott Baker09ed3e02014-11-07 13:01:43 -0800722
723<script>
724xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Bakerc9d0dcb2014-11-07 16:40:30 -0800725xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
Scott Baker09ed3e02014-11-07 13:01:43 -0800726</script>