Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi
[plstackapi.git] / planetstack / core / xoslib / templates / xosAdmin.html
1 <!-- Error and Success templates -->
2
3 <script type="text/template" id="xos-error-template">
4   <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
12 <script type="text/template" id="xos-success-template">
13   <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
21 <script type="text/template" id="xos-navbutton-old">
22   <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
23 </script>
24
25 <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
34 <script type="text/template" id="xos-status-template">
35   <%= what %>: [<%= success %>] <%= statusText %> (<%= status %>)
36 </script>
37
38 <script type="text/template" id="xos-tabs-template">
39   <ul class="xos-nav-list">
40   <% _.each(tabs, function(tab) { %>
41       <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
42   <% }); %>
43   </ul>
44 </script>
45
46 <script type="text/template" id="xos-title-list">
47   <h3><%= title %></h3>
48 </script>
49
50 <script type="text/template" id="xos-title-detail">
51   <h3><%= title %></h3>
52 </script>
53
54 <script type="text/template" id="xos-navbutton">
55   <li>
56       <a href="<%= routeUrl %>">
57           <i class="<%= iconClass %>"></i>
58           <%= name %>
59       </a>
60   </li>
61 </script>
62
63 <script type="text/template" id="xos-inline-detail-buttons-template">
64     <tr>
65        <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button>
66            <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button>
67            <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button>
68        </td>
69     </tr>
70 </script>
71
72 <script type="text/template" id="xos-inline-list-buttons-template">
73            <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
74        </td>
75     </tr>
76 </script>
77
78 <!-- Deployment -->
79
80 <script type="text/template" id="xosAdmin-deployment-list-template">
81   <h3 class="xos-list-title"><%= title %></h3>
82   <%= xosInlineListButtonsTemplate() %>
83   <table class="test-table">
84   <thead><tr>
85      <th>id</th>
86      <th>name</th>
87      <th>backend</th>
88      <th>admin_tenant</th>
89      <th># sites</th>
90   </tr></thead>
91   <tbody></tbody>
92   </table>
93 </script>
94
95
96 <script type="text/template" id="xosAdmin-deployment-listitem-template">
97   <td class="objectLink"><%= id %></td>
98   <td class="objectLink"><%= name %></td>
99   <td><%= backend_type %></td>
100   <td><%= admin_tenant %></td>
101   <td><%= sites.length %></td>
102 </script>
103
104 <script type="text/template" id="xosAdmin-deployment-detail-template">
105   <h3 class="xos-detail-title">Detail View: Deployment</h3>
106   <form>
107   <table>\r
108   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
109   <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>\r
110   <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>\r
111   <%= xosInlineDetailButtonsTemplate() %>\r
112   </table>\r
113   </form>\r
114 </script>\r
115
116 <!-- Image -->
117
118 <script type="text/template" id="xosAdmin-image-list-template">
119   <h3 class="xos-list-title"><%= title %></h3>
120   <%= xosInlineListButtonsTemplate() %>
121   <table class="test-table">
122   <thead><tr>
123      <th>id</th>
124      <th>name</th>
125      <th>disk_format</th>
126      <th>container_format</th>
127      <th>path</th>
128   </tr></thead>
129   <tbody></tbody>
130   </table>
131 </script>
132
133 <script type="text/template" id="xosAdmin-image-listitem-template">
134   <td class="objectLink"><%= id %></td>
135   <td class="objectLink"><%= name %></td>
136   <td><%= disk_format %></td>
137   <td><%= container_format %></td>
138   <td><%= path %></td>
139 </script>
140
141 <script type="text/template" id="xosAdmin-image-detail-template">
142   <h3 class="xos-detail-title">Detail View: Image</h3>
143   <form>\r
144   <table>\r
145   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
146   <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>\r
147   <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>\r
148   <%= xosInlineDetailButtonsTemplate() %>\r
149   </table>\r
150   </form>\r
151 </script>
152
153 <!-- NetworkTemplate -->
154
155 <script type="text/template" id="xosAdmin-networkTemplate-list-template">
156   <h3 class="xos-list-title"><%= title %></h3>
157   <%= xosInlineListButtonsTemplate() %>
158   <table class="test-table">
159   <thead><tr>
160      <th>id</th>
161      <th>name</th>
162      <th>description</th>
163      <th>visibility</th>
164      <th>translation</th>
165      <th>sharedNetworkName</th>
166      <th>sharedNetworkId</th>
167   </tr></thead>
168   <tbody></tbody>
169   </table>
170 </script>
171
172
173 <script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
174   <td class="objectLink"><%= id %></td>
175   <td class="objectLink"><%= name %></td>
176   <td><%= description %></td>
177   <td><%= visibility %></td>
178   <td><%= translation %></td>
179   <td><%= sharedNetworkName %></td>
180   <td><%= sharedNetworkId %></td>
181 </script>
182
183 <script type="text/template" id="xosAdmin-networkTemplate-detail-template">
184   <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
185   <form>\r
186   <table>\r
187   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
188   <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>\r
189   <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>\r
190   <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>\r
191   <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>\r
192   <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>\r
193   <%= xosInlineDetailButtonsTemplate() %>\r
194   </table>\r
195   </form>\r
196 </script>
197
198 <!-- Network -->
199
200 <script type="text/template" id="xosAdmin-network-list-template">
201   <h3 class="xos-list-title"><%= title %></h3>
202   <%= xosInlineListButtonsTemplate() %>
203   <table class="test-table">
204   <thead><tr>
205      <th>id</th>
206      <th>name</th>
207      <th>template</th>
208      <th>ports</th>
209      <th>labels</th>
210      <th>owner</th>
211   </tr></thead>
212   <tbody></tbody>
213   </table>
214 </script>
215
216 <script type="text/template" id="xosAdmin-network-listitem-template">
217   <td class="objectLink"><%= id %></td>
218   <td class="objectLink"><%= name %></td>
219   <td><%= idToName(template,"networkTemplates","name") %></td>
220   <td><%= ports %></td>
221   <td><%= labels %></td>
222   <td><%= idToName(owner,"slices","name") %></td>
223 </script>
224
225 <script type="text/template" id="xosAdmin-network-detail-template">
226   <h3 class="xos-detail-title">Detail View: Network</h3>
227   <form>\r
228   <table>\r
229   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
230   <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>\r
231   <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>\r
232   <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>\r
233   <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>\r
234   <%= xosInlineDetailButtonsTemplate() %>\r
235   </table>\r
236   </form>\r
237 </script>
238
239 <!-- NetworkSliver -->
240
241 <script type="text/template" id="xosAdmin-networkSliver-list-template">
242   <h3 class="xos-list-title"><%= title %></h3>
243   <%= xosInlineListButtonsTemplate() %>
244   <table class="test-table">
245   <thead><tr>
246      <th>id</th>
247      <th>network</th>
248      <th>sliver</th>
249      <th>ip</th>
250      <th>port_id</th>
251   </tr></thead>
252   <tbody></tbody>
253   </table>
254 </script>
255
256 <script type="text/template" id="xosAdmin-networkSliver-listitem-template">
257   <td class="objectLink"><%= id %></td>
258   <td><%= idToName(network,"networks","name") %></td>
259   <td><%= idToName(sliver,"slivers","name") %></td>
260   <td><%= ip %></td>
261   <td><%= port_id %></td>
262 </script>
263
264 <script type="text/template" id="xosAdmin-networkSliver-detail-template">
265   <h3 class="xos-detail-title">Detail View: Network</h3>
266   <form>\r
267   <table>\r
268   <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>\r
269   <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>\r
270   <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>\r
271   <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>\r
272   <%= xosInlineDetailButtonsTemplate() %>\r
273   </table>\r
274   </form>\r
275 </script>
276
277 <!-- NetworkDeployment -->
278
279 <script type="text/template" id="xosAdmin-networkDeployment-list-template">
280   <h3 class="xos-list-title"><%= title %></h3>
281   <%= xosInlineListButtonsTemplate() %>
282   <table class="test-table">
283   <thead><tr>
284      <th>id</th>
285      <th>network</th>
286      <th>deployment</th>
287      <th>net_id</th>
288   </tr></thead>
289   <tbody></tbody>
290   </table>
291 </script>
292
293 <script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
294   <td class="objectLink"><%= id %></td>
295   <td><%= idToName(network,"networks","name") %></td>
296   <td><%= idToName(deployment,"deployments","name") %></td>
297   <td><%= net_id %></td>
298 </script>
299
300 <script type="text/template" id="xosAdmin-networkDeployment-detail-template">
301   <h3 class="xos-detail-title">Detail View: Network</h3>
302   <form>\r
303   <table>\r
304   <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>\r
305   <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>\r
306   <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>\r
307   <%= xosInlineDetailButtonsTemplate() %>\r
308   </table>\r
309   </form>\r
310 </script>
311
312 <!-- Node -->
313
314 <script type="text/template" id="xosAdmin-node-list-template">
315   <h3 class="xos-list-title"><%= title %></h3>
316   <%= xosInlineListButtonsTemplate() %>
317   <table class="test-table">
318   <thead><tr>
319      <th>id</th>
320      <th>name</th>
321      <th>site</th>
322      <th>deployment</th>
323   </tr></thead>
324   <tbody></tbody>
325   </table>
326 </script>
327
328
329 <script type="text/template" id="xosAdmin-node-listitem-template">
330   <td class="objectLink"><%= id %></td>
331   <td class="objectLink"><%= name %></td>
332   <td><%= idToName(site,"sites","name") %></td>
333   <td><%= idToName(deployment,"deployments","name") %></td>
334 </script>
335
336 <script type="text/template" id="xosAdmin-node-detail-template">
337   <h3 class="xos-detail-title">Detail View: Node</h3>
338   <form>\r
339   <table>\r
340   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
341   <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>\r
342   <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>\r
343   <%= xosInlineDetailButtonsTemplate() %>\r
344   </table>\r
345   </form>\r
346 </script>
347
348 <!-- SliceRole -->
349
350 <script type="text/template" id="xosAdmin-sliceRole-list-template">
351   <h3 class="xos-list-title"><%= title %></h3>
352   <%= xosInlineListButtonsTemplate() %>
353   <table class="test-table">
354   <thead><tr>
355      <th>id</th>
356      <th>role</th>
357   </tr></thead>
358   <tbody></tbody>
359   </table>
360 </script>
361
362
363 <script type="text/template" id="xosAdmin-sliceRole-listitem-template">
364   <td class="objectLink"><%= id %></td>
365   <td><%= role %></td>
366 </script>
367
368 <script type="text/template" id="xosAdmin-sliceRole-detail-template">
369   <h3 class="xos-detail-title">Detail View: Service</h3>
370   <form>\r
371   <table>\r
372   <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>\r
373   <%= xosInlineDetailButtonsTemplate() %>\r
374   </table>\r
375   </form>\r
376 </script>
377
378 <!-- Service -->
379
380 <script type="text/template" id="xosAdmin-service-list-template">
381   <h3 class="xos-list-title"><%= title %></h3>
382   <%= xosInlineListButtonsTemplate() %>
383   <table class="test-table">
384   <thead><tr>
385      <th>id</th>
386      <th>name</th>
387      <th>description</th>
388      <th>enabled</th>
389      <th>versionNumber</th>
390      <th>published</th>
391   </tr></thead>
392   <tbody></tbody>
393   </table>
394 </script>
395
396
397 <script type="text/template" id="xosAdmin-service-listitem-template">
398   <td class="objectLink"><%= id %></td>
399   <td class="objectLink"><%= name %></td>
400   <td><%= description %></td>
401   <td><%= enabled %></td>
402   <td><%= versionNumber %></td>
403   <td><%= published %></td>
404 </script>
405
406 <script type="text/template" id="xosAdmin-service-detail-template">
407   <h3 class="xos-detail-title">Detail View: Service</h3>
408   <form>\r
409   <table>\r
410   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
411   <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>\r
412   <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>\r
413   <%= xosInlineDetailButtonsTemplate() %>\r
414   </table>\r
415   </form>\r
416 </script>
417
418 <!-- Site -->
419
420 <script type="text/template" id="xosAdmin-site-list-template">
421   <h3 class="xos-list-title"><%= title %></h3>
422   <%= xosInlineListButtonsTemplate() %>
423   <table class="test-table">
424   <thead><tr>
425      <th>id</th>
426      <th>name</th>
427      <th>url</th>
428      <th>enabled</th>
429      <th>login_base</th>
430      <th>is_public</th>
431      <th>abbreviated_name</th>
432   </tr></thead>
433   <tbody></tbody>
434   </table>
435 </script>
436
437 <script type="text/template" id="xosAdmin-site-listitem-template">
438   <td class="objectLink"><%= id %></td>
439   <td class="objectLink"><%= name %></td>
440   <td><%= site_url %></td>
441   <td><%= enabled %></td>
442   <td><%= login_base %></td>
443   <td><%= is_public %></td>
444   <td><%= abbreviated_name %></td>
445 </script>
446
447 <script type="text/template" id="xosAdmin-site-detail-template">
448   <h3 class="xos-detail-title">Detail View: Site</h3>
449   <form>\r
450   <table>\r
451   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
452   <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>\r
453   <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>\r
454   <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>\r
455   <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>\r
456   <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>\r
457   <%= xosInlineDetailButtonsTemplate() %>\r
458   </table>\r
459   </form>\r
460 </script>
461
462 <!-- Slice -->
463
464 <script type="text/template" id="xosAdmin-slice-list-template">
465   <h3 class="xos-list-title"><%= title %></h3>
466   <%= xosInlineListButtonsTemplate() %>
467   <table class="test-table">
468   <thead><tr>
469      <th>id</th>
470      <th>name</th>
471      <th>enabled</th>
472      <th>omf_friendly</th>
473      <th>description</th>
474      <th>slice_url</th>
475      <th>site</th>
476      <th>max_slivers</th>
477      <th>service</th>
478   </tr></thead>
479   <tbody></tbody>
480   </table>
481 </script>
482
483 <script type="text/template" id="xosAdmin-slice-listitem-template">
484   <td class="objectLink"><%= id %></td>
485   <td class="objectLink"><%= name %></td>
486   <td><%= enabled %></td>
487   <td><%= omf_friendly %></td>
488   <td><%= description %></td>
489   <td><%= slice_url %></td>
490   <td><%= idToName(site,"sites","name") %></td>
491   <td><%= max_slivers %></td>
492   <td><%= idToName(service,"services","name") %></td>
493 </script>
494
495 <script type="text/template" id="xosAdmin-slice-detail-template">
496   <h3 class="xos-detail-title">Detail View: Slice</h3>
497   <form>\r
498   <table>\r
499   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
500   <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>\r
501   <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>\r
502   <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>\r
503   <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>\r
504   <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>\r
505   <%= xosInlineDetailButtonsTemplate() %>\r
506   </table>\r
507   </form>\r
508 </script>
509
510 <!-- SliceDeployment -->
511
512 <script type="text/template" id="xosAdmin-sliceDeployment-list-template">
513   <h3 class="xos-list-title"><%= title %></h3>
514   <%= xosInlineListButtonsTemplate() %>
515   <table class="test-table">
516   <thead><tr>
517      <th>id</th>
518      <th>slice</th>
519      <th>deployment</th>
520      <th>tenant_id</th>
521   </tr></thead>
522   <tbody></tbody>
523   </table>
524 </script>
525
526 <script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
527   <td class="objectLink"><%= id %></td>
528   <td><%= idToName(slice,"slices","name") %></td>
529   <td><%= idToName(deployment,"deployments","name") %></td>
530   <td><%= tenant_id %></td>
531 </script>
532
533 <script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
534   <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
535   <form>\r
536   <table>\r
537   <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>\r
538   <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>\r
539   <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>\r
540   <%= xosInlineDetailButtonsTemplate() %>\r
541   </table>\r
542   </form>\r
543 </script>
544
545 <!-- SlicePrivilege -->
546
547 <script type="text/template" id="xosAdmin-slicePrivilege-list-template">
548   <h3 class="xos-list-title"><%= title %></h3>
549   <%= xosInlineListButtonsTemplate() %>
550   <table class="test-table">
551   <thead><tr>
552      <th>id</th>
553      <th>user</th>
554      <th>slice</th>
555      <th>role</th>
556   </tr></thead>
557   <tbody></tbody>
558   </table>
559 </script>
560
561 <script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
562   <td class="objectLink"><%= id %></td>
563   <td><%= idToName(user,"users","username") %></td>
564   <td><%= idToName(slice,"slices","name") %></td>
565   <td><%= idToName(role,"sliceRoles","role") %></td>
566 </script>
567
568 <script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
569   <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
570   <form>\r
571   <table>\r
572   <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>\r
573   <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>\r
574   <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>\r
575   <%= xosInlineDetailButtonsTemplate() %>\r
576   </table>\r
577   </form>\r
578 </script>
579
580 <!-- Sliver -->
581
582 <script type="text/template" id="xosAdmin-sliver-list-template">
583   <h3 class="xos-list-title"><%= title %></h3>
584   <%= xosInlineListButtonsTemplate() %>
585   <table class="test-table">
586   <thead><tr>
587      <th>id</th>
588      <th>name</th>
589      <th>instance_id</th>
590      <th>instance_name</th>
591      <th>image</th>
592      <th>creator</th>
593      <th>slice</th>
594      <th>node</th>
595      <th>deploymentNetwork</th>
596      <th>flavor</th>
597      <th>userData</th>
598   </tr></thead>
599   <tbody></tbody>
600   </table>
601 </script>
602
603
604 <script type="text/template" id="xosAdmin-sliver-listitem-template">
605   <td class="objectLink"><%= id %></td>
606   <td class="objectLink"><%= name %></td>
607   <td><%= instance_id %></td>
608   <td><%= instance_name %></td>
609   <td><%= idToName(image,"images","name") %></td>
610   <td><%= idToName(creator,"users","name") %></td>
611   <td><%= idToName(slice,"slices","name") %></td>
612   <td><%= idToName(node,"nodes","name") %></td>
613   <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
614   <td><%= flavor %></td>
615   <td><%= userData %></td>
616 </script>
617
618 <script type="text/template" id="xosAdmin-sliver-detail-template">
619   <h3 class="xos-detail-title">Detail View: Sliver</h3>
620   <form>\r
621   <table>\r
622   <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>\r
623   <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>\r
624   <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>\r
625   <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>\r
626   <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>\r
627   <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>\r
628   <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>\r
629   <%= xosInlineDetailButtonsTemplate() %>\r
630   </table>\r
631   </form>\r
632 </script>
633
634 <!-- User -->
635
636 <script type="text/template" id="xosAdmin-user-list-template">
637   <h3 class="xos-list-title"><%= title %></h3>
638   <%= xosInlineListButtonsTemplate() %>
639   <table class="test-table">
640   <thead><tr>
641      <th>id</th>
642      <th>username</th>
643      <th>firstname</th>
644      <th>lastname</th>
645      <th>phone</th>
646      <th>user_url</th>
647      <th>site</th>
648   </tr></thead>
649   <tbody></tbody>
650   </table>
651 </script>
652
653
654 <script type="text/template" id="xosAdmin-user-listitem-template">
655   <td class="objectLink"><%= id %></td>
656   <td class="objectLink"><%= username %></td>
657   <td><%= firstname %></td>
658   <td><%= lastname %></td>
659   <td><%= phone %></td>
660   <td><%= user_url %></td>
661   <td><%= idToName(site,"sites","name") %></td>
662 </script>
663
664 <script type="text/template" id="xosAdmin-user-detail-template">
665   <h3 class="xos-detail-title">Detail View: User</h3>
666   <form>\r
667   <table>\r
668   <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>\r
669   <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>\r
670   <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>\r
671   <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>\r
672   <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>\r
673   <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>\r
674   <%= xosInlineDetailButtonsTemplate() %>\r
675   </table>\r
676   </form>\r
677 </script>
678
679 <!-- UserDeployments -->
680
681 <script type="text/template" id="xosAdmin-userDeployment-list-template">
682   <h3 class="xos-list-title"><%= title %></h3>
683   <%= xosInlineListButtonsTemplate() %>
684   <table class="test-table">
685   <thead><tr>
686      <th>id</th>
687      <th>user</th>
688      <th>deployment</th>
689      <th>kuser_id</th>
690   </tr></thead>
691   <tbody></tbody>
692   </table>
693 </script>
694
695 <script type="text/template" id="xosAdmin-userDeployment-listitem-template">
696   <td class="objectLink"><%= id %></td>
697   <td><%= idToName(user,"users","username") %></td>
698   <td><%= idToName(deployment,"deployments","name") %></td>
699   <td><%= kuser_id %></td>
700 </script>
701
702 <script type="text/template" id="xosAdmin-userDeployment-detail-template">
703   <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
704   <form>\r
705   <table>\r
706   <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>\r
707   <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>\r
708   <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>\r
709   <%= xosInlineDetailButtonsTemplate() %>\r
710   </table>\r
711   </form>\r
712 </script>
713
714 <script>
715 xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
716 xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
717 </script>