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