readonly fields, wip
[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-rawresponse">
20   <h5>Error</h5>
21   <pre>The server returned:
22 "<%= responseText %>"</pre>
23 </script>
24
25 <script type="text/template" id="xos-error-template">
26   <button id="close-error-box">Close Error Message</button>
27   <h3>An error has occurred.</h3>
28   <table class="test-error-table">
29   <tr><td>Code:</td><td><%= status %></td></tr>
30   <tr><td>Message:</td><td><%= statusText %></td></tr>
31   </table>
32 </script>
33
34 <script type="text/template" id="xos-success-template">
35   <button id="close-success-box">Close Success Message</button>
36   <h3>Success!</h3>
37   <table class="test-success-table">
38   <tr><td>Code:</td><td><%= status %></td></tr>
39   <tr><td>Message:</td><td><%= statusText %></td></tr>
40   </table>
41 </script>
42
43 <script type="text/template" id="xos-navbutton-old">
44   <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
45 </script>
46
47 <script type="text/template" id="xos-status-template">
48   <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
49 </script>
50
51 <script type="text/template" id="xos-tabs-template">
52   <ul class="xos-nav-list">
53   <% _.each(tabs, function(tab) { %>
54       <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
55   <% }); %>
56   </ul>
57 </script>
58
59 <script type="text/template" id="xos-title-list">
60   <h3><img src="/static/img/brokencircle.gif" height=16 width=16 id="xos-list-title-spinner"> <%= title %></h3>
61 </script>
62
63 <script type="text/template" id="xos-title-detail">
64   <h3><%= title %></h3>
65 </script>
66
67 <script type="text/template" id="xos-navbutton">
68   <li>
69       <a href="<%= routeUrl %>">
70           <i class="<%= iconClass %>"></i>
71           <%= name %>
72       </a>
73   </li>
74 </script>
75
76 <script type="text/template" id="xos-inline-detail-buttons-template">
77     <tr>
78        <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button>
79            <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button>
80            <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button>
81            <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button>
82        </td>
83     </tr>
84 </script>
85
86 <script type="text/template" id="xos-list-header-template">
87     <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
88     <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button>
89 </script>
90
91 <script type="text/template" id="xos-list-footer-template">
92     <% if (addChildHash) { %>
93         <a href="<%= addChildHash %>">Add...</a>
94     <% } %>
95 </script>
96
97 <script type="text/template" id="xos-delete-button-template">
98     <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
99 </script>
100
101 <script type="text/template" id="xos-detail-link-template">
102     <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
103 </script>
104
105 <script type="text/template" id="xos-add-template">
106   <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
107   <form>
108   <table>\r
109   <% _.each(addFields, function(fieldName) { %>\r
110      <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>\r
111         <% readOnly = $.inArray(fieldName, model.readOnlyFields)>=0 ? " readonly" : "";  console.log(fieldName + " " + readOnly); console.log(model.readOnlyFields); %>\r
112         <% if (fieldName in foreignFields) { %>\r
113             <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName", readOnly) %></td>\r
114         <% } else if (inputType[fieldName] == "checkbox") { %>\r
115             <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %><%= readOnly %>></td>\r
116         <% } else { %>\r
117             <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"<%= readOnly %>></td>\r
118         <% } %>\r
119      </tr>\r
120   <% }); %>\r
121   <%= xosInlineDetailButtonsTemplate() %>\r
122   </table>\r
123   </form>\r
124 </script>
125
126 <script type="text/template" id="xos-detail-template">
127   <h3 class="xos-detail-title">Edit Object: <%= modelName %></h3>
128   <form>
129   <table>\r
130   <% console.log(model); _.each(detailFields, function(fieldName) { %>\r
131      <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>\r
132         <% if (fieldName in foreignFields) { %>\r
133             <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName") %></td>\r
134         <% } else if (inputType[fieldName] == "checkbox") { %>\r
135             <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>\r
136         <% } else { %>\r
137             <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>\r
138         <% } %>\r
139      </tr>\r
140   <% }); %>\r
141   <%= xosInlineDetailButtonsTemplate() %>\r
142   </table>\r
143   </form>\r
144 </script>
145
146 <!-- Deployment -->
147
148 <script type="text/template" id="xosAdmin-deployment-list-template">
149   <h3 class="xos-list-title"><%= title %></h3>
150   <%= xosListHeaderTemplate() %>
151   <table class="test-table">
152   <thead><tr>
153      <th>id</th>
154      <th>name</th>
155      <th>backend</th>
156      <th>admin_tenant</th>
157      <th># sites</th>
158      <th>delete</th>
159   </tr></thead>
160   <tbody></tbody>
161   </table>
162   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
163 </script>
164
165
166 <script type="text/template" id="xosAdmin-deployment-listitem-template">
167   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
168   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
169   <td><%= backend_type %></td>
170   <td><%= admin_tenant %></td>
171   <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
172   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
173 </script>
174
175 <!-- Image -->
176
177 <script type="text/template" id="xosAdmin-image-list-template">
178   <h3 class="xos-list-title"><%= title %></h3>
179   <%= xosListHeaderTemplate() %>
180   <table class="test-table">
181   <thead><tr>
182      <th>id</th>
183      <th>name</th>
184      <th>disk_format</th>
185      <th>container_format</th>
186      <th>path</th>
187      <th>delete</th>
188   </tr></thead>
189   <tbody></tbody>
190   </table>
191   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
192 </script>
193
194 <script type="text/template" id="xosAdmin-image-listitem-template">
195   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
196   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
197   <td><%= disk_format %></td>
198   <td><%= container_format %></td>
199   <td><%= path %></td>
200   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
201 </script>
202
203 <!-- NetworkTemplate -->
204
205 <script type="text/template" id="xosAdmin-networkTemplate-list-template">
206   <h3 class="xos-list-title"><%= title %></h3>
207   <%= xosListHeaderTemplate() %>
208   <table class="test-table">
209   <thead><tr>
210      <th>id</th>
211      <th>name</th>
212      <th>description</th>
213      <th>visibility</th>
214      <th>translation</th>
215      <th>sharedNetworkName</th>
216      <th>sharedNetworkId</th>
217      <th>delete</th>
218   </tr></thead>
219   <tbody></tbody>
220   </table>
221   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
222 </script>
223
224
225 <script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
226   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
227   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
228   <td><%= description %></td>
229   <td><%= visibility %></td>
230   <td><%= translation %></td>
231   <td><%= sharedNetworkName %></td>
232   <td><%= sharedNetworkId %></td>
233   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
234 </script>
235
236 <!-- Network -->
237
238 <script type="text/template" id="xosAdmin-network-list-template">
239   <h3 class="xos-list-title"><%= title %></h3>
240   <%= xosListHeaderTemplate() %>
241   <table class="test-table">
242   <thead><tr>
243      <th>id</th>
244      <th>name</th>
245      <th>template</th>
246      <th>ports</th>
247      <th>labels</th>
248      <th>owner</th>
249      <th>delete</th>
250   </tr></thead>
251   <tbody></tbody>
252   </table>
253   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
254 </script>
255
256 <script type="text/template" id="xosAdmin-network-listitem-template">
257   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
258   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
259   <td><%= idToName(template,"networkTemplates","name") %></td>
260   <td><%= ports %></td>
261   <td><%= labels %></td>
262   <td><%= idToName(owner,"slices","name") %></td>
263   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
264 </script>
265
266 <!-- NetworkSliver -->
267
268 <script type="text/template" id="xosAdmin-networkSliver-list-template">
269   <h3 class="xos-list-title"><%= title %></h3>
270   <%= xosListHeaderTemplate() %>
271   <table class="test-table">
272   <thead><tr>
273      <th>id</th>
274      <th>network</th>
275      <th>sliver</th>
276      <th>ip</th>
277      <th>port_id</th>
278      <th>delete</th>
279   </tr></thead>
280   <tbody></tbody>
281   </table>
282   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
283 </script>
284
285 <script type="text/template" id="xosAdmin-networkSliver-listitem-template">
286   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
287   <td><%= idToName(network,"networks","name") %></td>
288   <td><%= idToName(sliver,"slivers","name") %></td>
289   <td><%= ip %></td>
290   <td><%= port_id %></td>
291   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
292 </script>
293
294 <!-- NetworkDeployment -->
295
296 <script type="text/template" id="xosAdmin-networkDeployment-list-template">
297   <h3 class="xos-list-title"><%= title %></h3>
298   <%= xosListHeaderTemplate() %>
299   <table class="test-table">
300   <thead><tr>
301      <th>id</th>
302      <th>network</th>
303      <th>deployment</th>
304      <th>net_id</th>
305      <th>delete</th>
306   </tr></thead>
307   <tbody></tbody>
308   </table>
309   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
310 </script>
311
312 <script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
313   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
314   <td><%= idToName(network,"networks","name") %></td>
315   <td><%= idToName(deployment,"deployments","name") %></td>
316   <td><%= net_id %></td>
317   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
318 </script>
319
320 <!-- Node -->
321
322 <script type="text/template" id="xosAdmin-node-list-template">
323   <h3 class="xos-list-title"><%= title %></h3>
324   <%= xosListHeaderTemplate() %>
325   <table class="test-table">
326   <thead><tr>
327      <th>id</th>
328      <th>name</th>
329      <th>site</th>
330      <th>deployment</th>
331      <th>delete</th>
332   </tr></thead>
333   <tbody></tbody>
334   </table>
335   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
336 </script>
337
338
339 <script type="text/template" id="xosAdmin-node-listitem-template">
340   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
341   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
342   <td><%= idToName(site,"sites","name") %></td>
343   <td><%= idToName(deployment,"deployments","name") %></td>
344   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
345 </script>
346
347 <!-- SliceRole -->
348
349 <script type="text/template" id="xosAdmin-sliceRole-list-template">
350   <h3 class="xos-list-title"><%= title %></h3>
351   <%= xosListHeaderTemplate() %>
352   <table class="test-table">
353   <thead><tr>
354      <th>id</th>
355      <th>role</th>
356      <th>delete</th>
357   </tr></thead>
358   <tbody></tbody>
359   </table>
360   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
361 </script>
362
363 <script type="text/template" id="xosAdmin-sliceRole-listitem-template">
364   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
365   <td><%= role %></td>
366   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
367 </script>
368
369 <!-- Service -->
370
371 <script type="text/template" id="xosAdmin-service-list-template">
372   <h3 class="xos-list-title"><%= title %></h3>
373   <%= xosListHeaderTemplate() %>
374   <table class="test-table">
375   <thead><tr>
376      <th>id</th>
377      <th>name</th>
378      <th>description</th>
379      <th>enabled</th>
380      <th>versionNumber</th>
381      <th>published</th>
382      <th>delete</th>
383   </tr></thead>
384   <tbody></tbody>
385   </table>
386   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
387 </script>
388
389
390 <script type="text/template" id="xosAdmin-service-listitem-template">
391   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
392   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
393   <td><%= description %></td>
394   <td><%= enabled %></td>
395   <td><%= versionNumber %></td>
396   <td><%= published %></td>
397   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
398 </script>
399
400 <!-- Site -->
401
402 <script type="text/template" id="xosAdmin-site-list-template">
403   <h3 class="xos-list-title"><%= title %></h3>
404   <%= xosListHeaderTemplate() %>
405   <table class="test-table">
406   <thead><tr>
407      <th>id</th>
408      <th>name</th>
409      <th>url</th>
410      <th>enabled</th>
411      <th>login_base</th>
412      <th>is_public</th>
413      <th>abbreviated_name</th>
414      <th>delete</th>
415   </tr></thead>
416   <tbody></tbody>
417   </table>
418   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
419 </script>
420
421 <script type="text/template" id="xosAdmin-site-listitem-template">
422   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
423   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
424   <td><%= site_url %></td>
425   <td><%= enabled %></td>
426   <td><%= login_base %></td>
427   <td><%= is_public %></td>
428   <td><%= abbreviated_name %></td>
429   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
430 </script>
431
432 <!-- Slice -->
433
434 <script type="text/template" id="xosAdmin-slice-list-template">
435   <h3 class="xos-list-title"><%= title %></h3>
436   <%= xosListHeaderTemplate() %>
437   <table class="test-table">
438   <thead><tr>
439      <th>id</th>
440      <th>name</th>
441      <th>enabled</th>
442      <th>omf_friendly</th>
443      <th>description</th>
444      <th>slice_url</th>
445      <th>site</th>
446      <th>max_slivers</th>
447      <th>service</th>
448      <th>delete</th>
449   </tr></thead>
450   <tbody></tbody>
451   </table>
452   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
453 </script>
454
455 <script type="text/template" id="xosAdmin-slice-listitem-template">
456   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
457   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
458   <td><%= enabled %></td>
459   <td><%= omf_friendly %></td>
460   <td><%= description %></td>
461   <td><%= slice_url %></td>
462   <td><%= idToName(site,"sites","name") %></td>
463   <td><%= max_slivers %></td>
464   <td><%= idToName(service,"services","name") %></td>
465   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
466 </script>
467
468 <!-- SliceDeployment -->
469
470 <script type="text/template" id="xosAdmin-sliceDeployment-list-template">
471   <h3 class="xos-list-title"><%= title %></h3>
472   <%= xosListHeaderTemplate() %>
473   <table class="test-table">
474   <thead><tr>
475      <th>id</th>
476      <th>slice</th>
477      <th>deployment</th>
478      <th>tenant_id</th>
479      <th>delete</th>
480   </tr></thead>
481   <tbody></tbody>
482   </table>
483   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
484 </script>
485
486 <script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
487   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
488   <td><%= idToName(slice,"slices","name") %></td>
489   <td><%= idToName(deployment,"deployments","name") %></td>
490   <td><%= tenant_id %></td>
491   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
492 </script>
493
494 <!-- SlicePrivilege -->
495
496 <script type="text/template" id="xosAdmin-slicePrivilege-list-template">
497   <h3 class="xos-list-title"><%= title %></h3>
498   <%= xosListHeaderTemplate() %>
499   <table class="test-table">
500   <thead><tr>
501      <th>id</th>
502      <th>user</th>
503      <th>slice</th>
504      <th>role</th>
505      <th>delete</th>
506   </tr></thead>
507   <tbody></tbody>
508   </table>
509   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
510 </script>
511
512 <script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
513   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
514   <td><%= idToName(user,"users","username") %></td>
515   <td><%= idToName(slice,"slices","name") %></td>
516   <td><%= idToName(role,"sliceRoles","role") %></td>
517   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
518 </script>
519
520
521 <!-- Sliver -->
522
523 <script type="text/template" id="xosAdmin-sliver-list-template">
524   <h3 class="xos-list-title"><%= title %></h3>
525   <%= xosListHeaderTemplate() %>
526   <table class="test-table">
527   <thead><tr>
528      <th>id</th>
529      <th>name</th>
530      <th>instance_id</th>
531      <th>instance_name</th>
532      <th>image</th>
533      <th>creator</th>
534      <th>slice</th>
535      <th>node</th>
536      <th>deploymentNetwork</th>
537      <th>flavor</th>
538      <th>userData</th>
539      <th>delete</th>
540   </tr></thead>
541   <tbody></tbody>
542   </table>
543   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
544 </script>
545
546
547 <script type="text/template" id="xosAdmin-sliver-listitem-template">
548   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
549   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
550   <td><%= instance_id %></td>
551   <td><%= instance_name %></td>
552   <td><%= idToName(image,"images","name") %></td>
553   <td><%= idToName(creator,"users","name") %></td>
554   <td><%= idToName(slice,"slices","name") %></td>
555   <td><%= idToName(node,"nodes","name") %></td>
556   <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
557   <td><%= flavor %></td>
558   <td><%= userData %></td>
559   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
560 </script>
561
562 <!-- User -->
563
564 <script type="text/template" id="xosAdmin-user-list-template">
565   <h3 class="xos-list-title"><%= title %></h3>
566   <%= xosListHeaderTemplate() %>
567   <table class="test-table">
568   <thead><tr>
569      <th>id</th>
570      <th>username</th>
571      <th>firstname</th>
572      <th>lastname</th>
573      <th>phone</th>
574      <th>user_url</th>
575      <th>site</th>
576      <th>delete</th>
577   </tr></thead>
578   <tbody></tbody>
579   </table>
580   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
581 </script>
582
583
584 <script type="text/template" id="xosAdmin-user-listitem-template">
585   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
586   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
587   <td><%= firstname %></td>
588   <td><%= lastname %></td>
589   <td><%= phone %></td>
590   <td><%= user_url %></td>
591   <td><%= idToName(site,"sites","name") %></td>
592   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
593 </script>
594
595 <!-- UserDeployments -->
596
597 <script type="text/template" id="xosAdmin-userDeployment-list-template">
598   <h3 class="xos-list-title"><%= title %></h3>
599   <%= xosListHeaderTemplate() %>
600   <table class="test-table">
601   <thead><tr>
602      <th>id</th>
603      <th>user</th>
604      <th>deployment</th>
605      <th>kuser_id</th>
606      <th>delete</th>
607   </tr></thead>
608   <tbody></tbody>
609   </table>
610   <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
611 </script>
612
613 <script type="text/template" id="xosAdmin-userDeployment-listitem-template">
614   <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
615   <td><%= idToName(user,"users","username") %></td>
616   <td><%= idToName(deployment,"deployments","name") %></td>
617   <td><%= kuser_id %></td>
618   <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
619 </script>
620
621 <script>
622 xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
623 xosListHeaderTemplate = _.template($("#xos-list-header-template").html());
624 xosListFooterTemplate = _.template($("#xos-list-footer-template").html());
625 xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
626 xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
627 </script>
628