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