blob: 57c024ed0c2bdd6cab6cf7fd745fab06d45c238e [file] [log] [blame]
Scott Bakerfdaee922014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker416f0872014-11-03 23:54:59 -08003<script type="text/template" id="xos-error-template">
Scott Bakerfdaee922014-11-03 09:43:23 -08004 <button id="close-error-box">Close Error Message</button>
5 <h3>An error has occurred.</h3>
6 <table class="test-error-table">
7 <tr><td>Code:</td><td><%= status %></td></tr>
8 <tr><td>Message:</td><td><%= statusText %></td></tr>
9 </table>
10</script>
11
Scott Baker416f0872014-11-03 23:54:59 -080012<script type="text/template" id="xos-success-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080013 <button id="close-success-box">Close Success Message</button>
14 <h3>Success!</h3>
15 <table class="test-success-table">
16 <tr><td>Code:</td><td><%= status %></td></tr>
17 <tr><td>Message:</td><td><%= statusText %></td></tr>
18 </table>
19</script>
20
Scott Baker90004d52014-11-04 09:34:17 -080021<script type="text/template" id="xos-navbutton-old">
Scott Baker416f0872014-11-03 23:54:59 -080022 <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
23</script>
24
Scott Baker0bf96b22014-11-04 15:41:47 -080025<script type="text/template" id="xos-log-template">
26 <tr id="<%= logMessageId %>">
27 <td><%= success %></td>
28 <td><%= what %></td>
29 <td><%= status %></td>
30 <td><%= statusText %></td>
31 </tr>
32</script>
33
Scott Baker9d37d562014-11-04 23:20:48 -080034<script type="text/template" id="xos-tabs-template">
35 <ul class="xos-nav-list">
36 <% _.each(tabs, function(tab) { %>
37 <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
38 <% }); %>
39 </ul>
40</script>
41
42<script type="text/template" id="xos-title-list">
43 <h3><%= title %></h3>
44</script>
45
46<script type="text/template" id="xos-title-detail">
47 <h3><%= title %></h3>
48</script>
49
50
Scott Baker90004d52014-11-04 09:34:17 -080051<script type="text/template" id="xos-navbutton">
52 <li>
53 <a href="<%= routeUrl %>">
54 <i class="<%= iconClass %>"></i>
55 <%= name %>
56 </a>
Scott Baker0bf96b22014-11-04 15:41:47 -080057 </li>
Scott Baker90004d52014-11-04 09:34:17 -080058</script>
59
Scott Bakerfc61b012014-10-30 16:10:16 -070060<!-- Deployment -->
61
62<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -080063 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -070064 <table class="test-table">
65 <thead><tr>
66 <th>id</th>
67 <th>name</th>
68 <th>backend</th>
69 <th>admin_tenant</th>
70 <th># sites</th>
71 </tr></thead>
72 <tbody></tbody>
73 </table>
74</script>
75
76
77<script type="text/template" id="xosAdmin-deployment-listitem-template">
78 <td class="objectLink"><%= id %></td>
79 <td class="objectLink"><%= name %></td>
80 <td><%= backend_type %></td>
81 <td><%= admin_tenant %></td>
82 <td><%= sites.length %></td>
83</script>
84
85<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -080086 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -070087 <form>
88 <table>
89 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
90 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
91 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
92 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
93 </table>
94 </form>
95</script>
96
97<!-- Image -->
98
99<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800100 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700101 <table class="test-table">
102 <thead><tr>
103 <th>id</th>
104 <th>name</th>
105 <th>disk_format</th>
106 <th>container_format</th>
107 <th>path</th>
108 </tr></thead>
109 <tbody></tbody>
110 </table>
111</script>
112
113<script type="text/template" id="xosAdmin-image-listitem-template">
114 <td class="objectLink"><%= id %></td>
115 <td class="objectLink"><%= name %></td>
116 <td><%= disk_format %></td>
117 <td><%= container_format %></td>
118 <td><%= path %></td>
119</script>
120
121<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800122 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700123 <form>
124 <table>
125 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
126 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
127 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
128 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
129 </table>
130 </form>
131</script>
132
133<!-- NetworkTemplate -->
134
135<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800136 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700137 <table class="test-table">
138 <thead><tr>
139 <th>id</th>
140 <th>name</th>
141 <th>description</th>
142 <th>visibility</th>
143 <th>translation</th>
144 <th>sharedNetworkName</th>
145 <th>sharedNetworkId</th>
146 </tr></thead>
147 <tbody></tbody>
148 </table>
149</script>
150
151
152<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
153 <td class="objectLink"><%= id %></td>
154 <td class="objectLink"><%= name %></td>
155 <td><%= description %></td>
156 <td><%= visibility %></td>
157 <td><%= translation %></td>
158 <td><%= sharedNetworkName %></td>
159 <td><%= sharedNetworkId %></td>
160</script>
161
162<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800163 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700164 <form>
165 <table>
166 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
167 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
168 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
169 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
170 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
171 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
172 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
173 </table>
174 </form>
175</script>
176
177<!-- Network -->
178
179<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800180 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700181 <table class="test-table">
182 <thead><tr>
183 <th>id</th>
184 <th>name</th>
185 <th>template</th>
186 <th>ports</th>
187 <th>labels</th>
188 <th>owner</th>
189 </tr></thead>
190 <tbody></tbody>
191 </table>
192</script>
193
194<script type="text/template" id="xosAdmin-network-listitem-template">
195 <td class="objectLink"><%= id %></td>
196 <td class="objectLink"><%= name %></td>
197 <td><%= idToName(template,"networkTemplates","name") %></td>
198 <td><%= ports %></td>
199 <td><%= labels %></td>
200 <td><%= idToName(owner,"slices","name") %></td>
201</script>
202
203<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800204 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700205 <form>
206 <table>
207 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800208 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700209 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
210 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800211 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700212 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
213 </table>
214 </form>
215</script>
216
217<!-- NetworkSliver -->
218
219<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800220 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700221 <table class="test-table">
222 <thead><tr>
223 <th>id</th>
224 <th>network</th>
225 <th>sliver</th>
226 <th>ip</th>
227 <th>port_id</th>
228 </tr></thead>
229 <tbody></tbody>
230 </table>
231</script>
232
233<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
234 <td class="objectLink"><%= id %></td>
235 <td><%= idToName(network,"networks","name") %></td>
236 <td><%= idToName(sliver,"slivers","name") %></td>
237 <td><%= ip %></td>
238 <td><%= port_id %></td>
239</script>
240
241<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800242 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700243 <form>
244 <table>
245 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
246 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
247 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
248 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
249 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
250 </table>
251 </form>
252</script>
253
Scott Baker586878e2014-10-31 16:43:07 -0700254<!-- NetworkDeployment -->
255
256<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800257 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker586878e2014-10-31 16:43:07 -0700258 <table class="test-table">
259 <thead><tr>
260 <th>id</th>
261 <th>network</th>
262 <th>deployment</th>
263 <th>net_id</th>
264 </tr></thead>
265 <tbody></tbody>
266 </table>
267</script>
268
269<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
270 <td class="objectLink"><%= id %></td>
271 <td><%= idToName(network,"networks","name") %></td>
272 <td><%= idToName(deployment,"deployments","name") %></td>
273 <td><%= net_id %></td>
274</script>
275
276<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800277 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker586878e2014-10-31 16:43:07 -0700278 <form>
279 <table>
280 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
281 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
282 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
283 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
284 </table>
285 </form>
286</script>
287
Scott Bakerfc61b012014-10-30 16:10:16 -0700288<!-- Node -->
289
290<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800291 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700292 <table class="test-table">
293 <thead><tr>
294 <th>id</th>
295 <th>name</th>
296 <th>site</th>
297 <th>deployment</th>
298 </tr></thead>
299 <tbody></tbody>
300 </table>
301</script>
302
303
304<script type="text/template" id="xosAdmin-node-listitem-template">
305 <td class="objectLink"><%= id %></td>
306 <td class="objectLink"><%= name %></td>
307 <td><%= idToName(site,"sites","name") %></td>
308 <td><%= idToName(deployment,"deployments","name") %></td>
309</script>
310
311<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800312 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700313 <form>
314 <table>
315 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800316 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
317 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700318 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
319 </table>
320 </form>
321</script>
322
323<!-- SliceRole -->
324
325<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800326 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700327 <table class="test-table">
328 <thead><tr>
329 <th>id</th>
330 <th>role</th>
331 </tr></thead>
332 <tbody></tbody>
333 </table>
334</script>
335
336
337<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
338 <td class="objectLink"><%= id %></td>
339 <td><%= role %></td>
340</script>
341
342<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800343 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700344 <form>
345 <table>
346 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
347 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
348 </table>
349 </form>
350</script>
351
352<!-- Service -->
353
354<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800355 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700356 <table class="test-table">
357 <thead><tr>
358 <th>id</th>
359 <th>name</th>
360 <th>description</th>
361 <th>enabled</th>
362 <th>versionNumber</th>
363 <th>published</th>
364 </tr></thead>
365 <tbody></tbody>
366 </table>
367</script>
368
369
370<script type="text/template" id="xosAdmin-service-listitem-template">
371 <td class="objectLink"><%= id %></td>
372 <td class="objectLink"><%= name %></td>
373 <td><%= description %></td>
374 <td><%= enabled %></td>
375 <td><%= versionNumber %></td>
376 <td><%= published %></td>
377</script>
378
379<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800380 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700381 <form>
382 <table>
383 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
384 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
385 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
386 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
387 </table>
388 </form>
389</script>
390
391<!-- Site -->
392
393<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800394 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700395 <table class="test-table">
396 <thead><tr>
397 <th>id</th>
398 <th>name</th>
399 <th>url</th>
400 <th>enabled</th>
401 <th>login_base</th>
402 <th>is_public</th>
403 <th>abbreviated_name</th>
404 </tr></thead>
405 <tbody></tbody>
406 </table>
407</script>
408
409<script type="text/template" id="xosAdmin-site-listitem-template">
410 <td class="objectLink"><%= id %></td>
411 <td class="objectLink"><%= name %></td>
412 <td><%= site_url %></td>
413 <td><%= enabled %></td>
414 <td><%= login_base %></td>
415 <td><%= is_public %></td>
416 <td><%= abbreviated_name %></td>
417</script>
418
419<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800420 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700421 <form>
422 <table>
423 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
424 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
425 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
426 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
427 </table>
428 </form>
429</script>
430
431<!-- Slice -->
432
433<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800434 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700435 <table class="test-table">
436 <thead><tr>
437 <th>id</th>
438 <th>name</th>
439 <th>enabled</th>
440 <th>omf_friendly</th>
441 <th>description</th>
442 <th>slice_url</th>
443 <th>site</th>
444 <th>max_slivers</th>
445 <th>service</th>
446 </tr></thead>
447 <tbody></tbody>
448 </table>
449</script>
450
451<script type="text/template" id="xosAdmin-slice-listitem-template">
452 <td class="objectLink"><%= id %></td>
453 <td class="objectLink"><%= name %></td>
454 <td><%= enabled %></td>
455 <td><%= omf_friendly %></td>
456 <td><%= description %></td>
457 <td><%= slice_url %></td>
458 <td><%= idToName(site,"sites","name") %></td>
459 <td><%= max_slivers %></td>
460 <td><%= idToName(service,"services","name") %></td>
461</script>
462
463<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800464 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700465 <form>
466 <table>
467 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
468 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
469 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
470 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
471 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
472 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
473 </table>
474 </form>
475</script>
476
Scott Baker9b3cf842014-11-02 22:28:59 -0800477<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700478
479<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800480 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700481 <table class="test-table">
482 <thead><tr>
483 <th>id</th>
484 <th>slice</th>
485 <th>deployment</th>
486 <th>tenant_id</th>
487 </tr></thead>
488 <tbody></tbody>
489 </table>
490</script>
491
492<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
493 <td class="objectLink"><%= id %></td>
494 <td><%= idToName(slice,"slices","name") %></td>
495 <td><%= idToName(deployment,"deployments","name") %></td>
496 <td><%= tenant_id %></td>
497</script>
498
499<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800500 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700501 <form>
502 <table>
503 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
504 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
505 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
506 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
507 </table>
508 </form>
509</script>
510
511<!-- SlicePrivilege -->
512
513<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800514 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700515 <table class="test-table">
516 <thead><tr>
517 <th>id</th>
518 <th>user</th>
519 <th>slice</th>
520 <th>role</th>
521 </tr></thead>
522 <tbody></tbody>
523 </table>
524</script>
525
526<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
527 <td class="objectLink"><%= id %></td>
528 <td><%= idToName(user,"users","username") %></td>
529 <td><%= idToName(slice,"slices","name") %></td>
530 <td><%= idToName(role,"sliceRoles","role") %></td>
531</script>
532
533<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800534 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700535 <form>
536 <table>
537 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
538 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
539 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
540 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
541 </table>
542 </form>
543</script>
544
545<!-- Sliver -->
546
547<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800548 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700549 <table class="test-table">
550 <thead><tr>
551 <th>id</th>
552 <th>name</th>
553 <th>instance_id</th>
554 <th>instance_name</th>
555 <th>image</th>
556 <th>creator</th>
557 <th>slice</th>
558 <th>node</th>
559 <th>deploymentNetwork</th>
560 <th>flavor</th>
561 <th>userData</th>
562 </tr></thead>
563 <tbody></tbody>
564 </table>
565</script>
566
567
568<script type="text/template" id="xosAdmin-sliver-listitem-template">
569 <td class="objectLink"><%= id %></td>
570 <td class="objectLink"><%= name %></td>
571 <td><%= instance_id %></td>
572 <td><%= instance_name %></td>
573 <td><%= idToName(image,"images","name") %></td>
574 <td><%= idToName(creator,"users","name") %></td>
575 <td><%= idToName(slice,"slices","name") %></td>
576 <td><%= idToName(node,"nodes","name") %></td>
577 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
578 <td><%= flavor %></td>
579 <td><%= userData %></td>
580</script>
581
582<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800583 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700584 <form>
585 <table>
586 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
587 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
588 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800589 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
590 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
591 <tr><td>Slice:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700592 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
593 </table>
594 </form>
595</script>
596
597<!-- User -->
598
599<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800600 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700601 <table class="test-table">
602 <thead><tr>
603 <th>id</th>
604 <th>username</th>
605 <th>firstname</th>
606 <th>lastname</th>
607 <th>phone</th>
608 <th>user_url</th>
609 <th>site</th>
610 </tr></thead>
611 <tbody></tbody>
612 </table>
613</script>
614
615
616<script type="text/template" id="xosAdmin-user-listitem-template">
617 <td class="objectLink"><%= id %></td>
618 <td class="objectLink"><%= username %></td>
619 <td><%= firstname %></td>
620 <td><%= lastname %></td>
621 <td><%= phone %></td>
622 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700623 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700624</script>
625
626<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800627 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700628 <form>
629 <table>
630 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
631 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
632 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
633 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
634 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800635 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700636 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
637 </table>
638 </form>
639</script>
640
Scott Baker10badd32014-10-31 00:18:24 -0700641<!-- UserDeployments -->
642
643<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800644 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker10badd32014-10-31 00:18:24 -0700645 <table class="test-table">
646 <thead><tr>
647 <th>id</th>
648 <th>user</th>
649 <th>deployment</th>
650 <th>kuser_id</th>
651 </tr></thead>
652 <tbody></tbody>
653 </table>
654</script>
655
656
657<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
658 <td class="objectLink"><%= id %></td>
659 <td><%= idToName(user,"users","username") %></td>
660 <td><%= idToName(deployment,"deployments","name") %></td>
661 <td><%= kuser_id %></td>
662</script>
663
664<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800665 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker10badd32014-10-31 00:18:24 -0700666 <form>
667 <table>
668 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
669 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
670 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
671 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
672 </table>
673 </form>
674</script>