blob: 3093b732a2ab977eae26d9654037a42aa7d9c656 [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 Baker90004d52014-11-04 09:34:17 -080025<script type="text/template" id="xos-navbutton">
26 <li>
27 <a href="<%= routeUrl %>">
28 <i class="<%= iconClass %>"></i>
29 <%= name %>
30 </a>
31 </lid>
32</script>
33
Scott Bakerfc61b012014-10-30 16:10:16 -070034<!-- Deployment -->
35
36<script type="text/template" id="xosAdmin-deployment-list-template">
37 <h3><%= title %></h3>
38 <table class="test-table">
39 <thead><tr>
40 <th>id</th>
41 <th>name</th>
42 <th>backend</th>
43 <th>admin_tenant</th>
44 <th># sites</th>
45 </tr></thead>
46 <tbody></tbody>
47 </table>
48</script>
49
50
51<script type="text/template" id="xosAdmin-deployment-listitem-template">
52 <td class="objectLink"><%= id %></td>
53 <td class="objectLink"><%= name %></td>
54 <td><%= backend_type %></td>
55 <td><%= admin_tenant %></td>
56 <td><%= sites.length %></td>
57</script>
58
59<script type="text/template" id="xosAdmin-deployment-detail-template">
60 <h3>Detail View: Deployment</h3>
61 <form>
62 <table>
63 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
64 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
65 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
66 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
67 </table>
68 </form>
69</script>
70
71<!-- Image -->
72
73<script type="text/template" id="xosAdmin-image-list-template">
74 <h3><%= title %></h3>
75 <table class="test-table">
76 <thead><tr>
77 <th>id</th>
78 <th>name</th>
79 <th>disk_format</th>
80 <th>container_format</th>
81 <th>path</th>
82 </tr></thead>
83 <tbody></tbody>
84 </table>
85</script>
86
87<script type="text/template" id="xosAdmin-image-listitem-template">
88 <td class="objectLink"><%= id %></td>
89 <td class="objectLink"><%= name %></td>
90 <td><%= disk_format %></td>
91 <td><%= container_format %></td>
92 <td><%= path %></td>
93</script>
94
95<script type="text/template" id="xosAdmin-image-detail-template">
96 <h3>Detail View: Image</h3>
97 <form>
98 <table>
99 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
100 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
101 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
102 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
103 </table>
104 </form>
105</script>
106
107<!-- NetworkTemplate -->
108
109<script type="text/template" id="xosAdmin-networkTemplate-list-template">
110 <h3><%= title %></h3>
111 <table class="test-table">
112 <thead><tr>
113 <th>id</th>
114 <th>name</th>
115 <th>description</th>
116 <th>visibility</th>
117 <th>translation</th>
118 <th>sharedNetworkName</th>
119 <th>sharedNetworkId</th>
120 </tr></thead>
121 <tbody></tbody>
122 </table>
123</script>
124
125
126<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
127 <td class="objectLink"><%= id %></td>
128 <td class="objectLink"><%= name %></td>
129 <td><%= description %></td>
130 <td><%= visibility %></td>
131 <td><%= translation %></td>
132 <td><%= sharedNetworkName %></td>
133 <td><%= sharedNetworkId %></td>
134</script>
135
136<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
137 <h3>Detail View: NetworkTemplate</h3>
138 <form>
139 <table>
140 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
141 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
142 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
143 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
144 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
145 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
146 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
147 </table>
148 </form>
149</script>
150
151<!-- Network -->
152
153<script type="text/template" id="xosAdmin-network-list-template">
154 <h3><%= title %></h3>
155 <table class="test-table">
156 <thead><tr>
157 <th>id</th>
158 <th>name</th>
159 <th>template</th>
160 <th>ports</th>
161 <th>labels</th>
162 <th>owner</th>
163 </tr></thead>
164 <tbody></tbody>
165 </table>
166</script>
167
168<script type="text/template" id="xosAdmin-network-listitem-template">
169 <td class="objectLink"><%= id %></td>
170 <td class="objectLink"><%= name %></td>
171 <td><%= idToName(template,"networkTemplates","name") %></td>
172 <td><%= ports %></td>
173 <td><%= labels %></td>
174 <td><%= idToName(owner,"slices","name") %></td>
175</script>
176
177<script type="text/template" id="xosAdmin-network-detail-template">
178 <h3>Detail View: Network</h3>
179 <form>
180 <table>
181 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800182 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700183 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
184 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800185 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700186 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
187 </table>
188 </form>
189</script>
190
191<!-- NetworkSliver -->
192
193<script type="text/template" id="xosAdmin-networkSliver-list-template">
194 <h3><%= title %></h3>
195 <table class="test-table">
196 <thead><tr>
197 <th>id</th>
198 <th>network</th>
199 <th>sliver</th>
200 <th>ip</th>
201 <th>port_id</th>
202 </tr></thead>
203 <tbody></tbody>
204 </table>
205</script>
206
207<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
208 <td class="objectLink"><%= id %></td>
209 <td><%= idToName(network,"networks","name") %></td>
210 <td><%= idToName(sliver,"slivers","name") %></td>
211 <td><%= ip %></td>
212 <td><%= port_id %></td>
213</script>
214
215<script type="text/template" id="xosAdmin-networkSliver-detail-template">
216 <h3>Detail View: Network</h3>
217 <form>
218 <table>
219 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
220 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
221 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
222 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
223 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
224 </table>
225 </form>
226</script>
227
Scott Baker586878e2014-10-31 16:43:07 -0700228<!-- NetworkDeployment -->
229
230<script type="text/template" id="xosAdmin-networkDeployment-list-template">
231 <h3><%= title %></h3>
232 <table class="test-table">
233 <thead><tr>
234 <th>id</th>
235 <th>network</th>
236 <th>deployment</th>
237 <th>net_id</th>
238 </tr></thead>
239 <tbody></tbody>
240 </table>
241</script>
242
243<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
244 <td class="objectLink"><%= id %></td>
245 <td><%= idToName(network,"networks","name") %></td>
246 <td><%= idToName(deployment,"deployments","name") %></td>
247 <td><%= net_id %></td>
248</script>
249
250<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
251 <h3>Detail View: Network</h3>
252 <form>
253 <table>
254 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
255 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
256 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
257 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
258 </table>
259 </form>
260</script>
261
Scott Bakerfc61b012014-10-30 16:10:16 -0700262<!-- Node -->
263
264<script type="text/template" id="xosAdmin-node-list-template">
265 <h3><%= title %></h3>
266 <table class="test-table">
267 <thead><tr>
268 <th>id</th>
269 <th>name</th>
270 <th>site</th>
271 <th>deployment</th>
272 </tr></thead>
273 <tbody></tbody>
274 </table>
275</script>
276
277
278<script type="text/template" id="xosAdmin-node-listitem-template">
279 <td class="objectLink"><%= id %></td>
280 <td class="objectLink"><%= name %></td>
281 <td><%= idToName(site,"sites","name") %></td>
282 <td><%= idToName(deployment,"deployments","name") %></td>
283</script>
284
285<script type="text/template" id="xosAdmin-node-detail-template">
286 <h3>Detail View: Node</h3>
287 <form>
288 <table>
289 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800290 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
291 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700292 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
293 </table>
294 </form>
295</script>
296
297<!-- SliceRole -->
298
299<script type="text/template" id="xosAdmin-sliceRole-list-template">
300 <h3><%= title %></h3>
301 <table class="test-table">
302 <thead><tr>
303 <th>id</th>
304 <th>role</th>
305 </tr></thead>
306 <tbody></tbody>
307 </table>
308</script>
309
310
311<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
312 <td class="objectLink"><%= id %></td>
313 <td><%= role %></td>
314</script>
315
316<script type="text/template" id="xosAdmin-sliceRole-detail-template">
317 <h3>Detail View: Service</h3>
318 <form>
319 <table>
320 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
321 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
322 </table>
323 </form>
324</script>
325
326<!-- Service -->
327
328<script type="text/template" id="xosAdmin-service-list-template">
329 <h3><%= title %></h3>
330 <table class="test-table">
331 <thead><tr>
332 <th>id</th>
333 <th>name</th>
334 <th>description</th>
335 <th>enabled</th>
336 <th>versionNumber</th>
337 <th>published</th>
338 </tr></thead>
339 <tbody></tbody>
340 </table>
341</script>
342
343
344<script type="text/template" id="xosAdmin-service-listitem-template">
345 <td class="objectLink"><%= id %></td>
346 <td class="objectLink"><%= name %></td>
347 <td><%= description %></td>
348 <td><%= enabled %></td>
349 <td><%= versionNumber %></td>
350 <td><%= published %></td>
351</script>
352
353<script type="text/template" id="xosAdmin-service-detail-template">
354 <h3>Detail View: Service</h3>
355 <form>
356 <table>
357 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
358 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
359 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
360 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
361 </table>
362 </form>
363</script>
364
365<!-- Site -->
366
367<script type="text/template" id="xosAdmin-site-list-template">
368 <h3><%= title %></h3>
369 <table class="test-table">
370 <thead><tr>
371 <th>id</th>
372 <th>name</th>
373 <th>url</th>
374 <th>enabled</th>
375 <th>login_base</th>
376 <th>is_public</th>
377 <th>abbreviated_name</th>
378 </tr></thead>
379 <tbody></tbody>
380 </table>
381</script>
382
383<script type="text/template" id="xosAdmin-site-listitem-template">
384 <td class="objectLink"><%= id %></td>
385 <td class="objectLink"><%= name %></td>
386 <td><%= site_url %></td>
387 <td><%= enabled %></td>
388 <td><%= login_base %></td>
389 <td><%= is_public %></td>
390 <td><%= abbreviated_name %></td>
391</script>
392
393<script type="text/template" id="xosAdmin-site-detail-template">
394 <h3>Detail View: Site</h3>
395 <form>
396 <table>
397 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
398 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
399 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
400 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
401 </table>
402 </form>
403</script>
404
405<!-- Slice -->
406
407<script type="text/template" id="xosAdmin-slice-list-template">
408 <h3><%= title %></h3>
409 <table class="test-table">
410 <thead><tr>
411 <th>id</th>
412 <th>name</th>
413 <th>enabled</th>
414 <th>omf_friendly</th>
415 <th>description</th>
416 <th>slice_url</th>
417 <th>site</th>
418 <th>max_slivers</th>
419 <th>service</th>
420 </tr></thead>
421 <tbody></tbody>
422 </table>
423</script>
424
425<script type="text/template" id="xosAdmin-slice-listitem-template">
426 <td class="objectLink"><%= id %></td>
427 <td class="objectLink"><%= name %></td>
428 <td><%= enabled %></td>
429 <td><%= omf_friendly %></td>
430 <td><%= description %></td>
431 <td><%= slice_url %></td>
432 <td><%= idToName(site,"sites","name") %></td>
433 <td><%= max_slivers %></td>
434 <td><%= idToName(service,"services","name") %></td>
435</script>
436
437<script type="text/template" id="xosAdmin-slice-detail-template">
438 <h3>Detail View: Slice</h3>
439 <form>
440 <table>
441 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
442 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
443 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
444 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
445 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
446 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
447 </table>
448 </form>
449</script>
450
Scott Baker9b3cf842014-11-02 22:28:59 -0800451<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700452
453<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
454 <h3><%= title %></h3>
455 <table class="test-table">
456 <thead><tr>
457 <th>id</th>
458 <th>slice</th>
459 <th>deployment</th>
460 <th>tenant_id</th>
461 </tr></thead>
462 <tbody></tbody>
463 </table>
464</script>
465
466<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
467 <td class="objectLink"><%= id %></td>
468 <td><%= idToName(slice,"slices","name") %></td>
469 <td><%= idToName(deployment,"deployments","name") %></td>
470 <td><%= tenant_id %></td>
471</script>
472
473<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
474 <h3>Detail View: Slice Deployment</h3>
475 <form>
476 <table>
477 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
478 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
479 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
480 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
481 </table>
482 </form>
483</script>
484
485<!-- SlicePrivilege -->
486
487<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
488 <h3><%= title %></h3>
489 <table class="test-table">
490 <thead><tr>
491 <th>id</th>
492 <th>user</th>
493 <th>slice</th>
494 <th>role</th>
495 </tr></thead>
496 <tbody></tbody>
497 </table>
498</script>
499
500<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
501 <td class="objectLink"><%= id %></td>
502 <td><%= idToName(user,"users","username") %></td>
503 <td><%= idToName(slice,"slices","name") %></td>
504 <td><%= idToName(role,"sliceRoles","role") %></td>
505</script>
506
507<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
508 <h3>Detail View: Slice Privilege</h3>
509 <form>
510 <table>
511 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
512 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
513 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
514 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
515 </table>
516 </form>
517</script>
518
519<!-- Sliver -->
520
521<script type="text/template" id="xosAdmin-sliver-list-template">
522 <h3><%= title %></h3>
523 <table class="test-table">
524 <thead><tr>
525 <th>id</th>
526 <th>name</th>
527 <th>instance_id</th>
528 <th>instance_name</th>
529 <th>image</th>
530 <th>creator</th>
531 <th>slice</th>
532 <th>node</th>
533 <th>deploymentNetwork</th>
534 <th>flavor</th>
535 <th>userData</th>
536 </tr></thead>
537 <tbody></tbody>
538 </table>
539</script>
540
541
542<script type="text/template" id="xosAdmin-sliver-listitem-template">
543 <td class="objectLink"><%= id %></td>
544 <td class="objectLink"><%= name %></td>
545 <td><%= instance_id %></td>
546 <td><%= instance_name %></td>
547 <td><%= idToName(image,"images","name") %></td>
548 <td><%= idToName(creator,"users","name") %></td>
549 <td><%= idToName(slice,"slices","name") %></td>
550 <td><%= idToName(node,"nodes","name") %></td>
551 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
552 <td><%= flavor %></td>
553 <td><%= userData %></td>
554</script>
555
556<script type="text/template" id="xosAdmin-sliver-detail-template">
557 <h3>Detail View: Sliver</h3>
558 <form>
559 <table>
560 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
561 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
562 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800563 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
564 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
565 <tr><td>Slice:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700566 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
567 </table>
568 </form>
569</script>
570
571<!-- User -->
572
573<script type="text/template" id="xosAdmin-user-list-template">
574 <h3><%= title %></h3>
575 <table class="test-table">
576 <thead><tr>
577 <th>id</th>
578 <th>username</th>
579 <th>firstname</th>
580 <th>lastname</th>
581 <th>phone</th>
582 <th>user_url</th>
583 <th>site</th>
584 </tr></thead>
585 <tbody></tbody>
586 </table>
587</script>
588
589
590<script type="text/template" id="xosAdmin-user-listitem-template">
591 <td class="objectLink"><%= id %></td>
592 <td class="objectLink"><%= username %></td>
593 <td><%= firstname %></td>
594 <td><%= lastname %></td>
595 <td><%= phone %></td>
596 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700597 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700598</script>
599
600<script type="text/template" id="xosAdmin-user-detail-template">
601 <h3>Detail View: User</h3>
602 <form>
603 <table>
604 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
605 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
606 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
607 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
608 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800609 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700610 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
611 </table>
612 </form>
613</script>
614
Scott Baker10badd32014-10-31 00:18:24 -0700615<!-- UserDeployments -->
616
617<script type="text/template" id="xosAdmin-userDeployment-list-template">
618 <h3><%= title %></h3>
619 <table class="test-table">
620 <thead><tr>
621 <th>id</th>
622 <th>user</th>
623 <th>deployment</th>
624 <th>kuser_id</th>
625 </tr></thead>
626 <tbody></tbody>
627 </table>
628</script>
629
630
631<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
632 <td class="objectLink"><%= id %></td>
633 <td><%= idToName(user,"users","username") %></td>
634 <td><%= idToName(deployment,"deployments","name") %></td>
635 <td><%= kuser_id %></td>
636</script>
637
638<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker416f0872014-11-03 23:54:59 -0800639 <h3>Detail View: UserDeployment</h3>
Scott Baker10badd32014-10-31 00:18:24 -0700640 <form>
641 <table>
642 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
643 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
644 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
645 <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
646 </table>
647 </form>
648</script>