1 <!-- Error and Success templates -->
3 <script type="text/template" id="xos-error-response">
6 <tr><td>error:</td><td><%= error %></td></tr>
7 <tr><td>check:</td><td><%= specific_error %></td></tr>
12 <% _.each(reasons, function(element, index) { %>
13 <tr><td><%= index %></td><td><%= element %></td></tr>
19 <script type="text/template" id="xos-error-rawresponse">
21 <pre>The server returned:
22 "<%= responseText %>"</pre>
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>
34 <script type="text/template" id="xos-success-template">
35 <button id="close-success-box">Close Success Message</button>
37 <table class="test-success-table">
38 <tr><td>Code:</td><td><%= status %></td></tr>
39 <tr><td>Message:</td><td><%= statusText %></td></tr>
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>
47 <script type="text/template" id="xos-status-template">
48 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
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>
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>
63 <script type="text/template" id="xos-title-detail">
67 <script type="text/template" id="xos-navbutton">
69 <a href="<%= routeUrl %>">
70 <i class="<%= iconClass %>"></i>
76 <script type="text/template" id="xos-inline-detail-buttons-template">
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>
86 <script type="text/template" id="xos-inline-list-buttons-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>
93 <script type="text/template" id="xos-delete-button-template">
94 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
97 <script type="text/template" id="xos-detail-link-template">
98 <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
103 <script type="text/template" id="xosAdmin-deployment-list-template">
104 <h3 class="xos-list-title"><%= title %></h3>
105 <%= xosInlineListButtonsTemplate() %>
106 <table class="test-table">
111 <th>admin_tenant</th>
120 <script type="text/template" id="xosAdmin-deployment-listitem-template">
121 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
122 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
123 <td><%= backend_type %></td>
124 <td><%= admin_tenant %></td>
125 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
126 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
129 <script type="text/template" id="xosAdmin-deployment-detail-template">
130 <h3 class="xos-detail-title">Detail View: Deployment</h3>
133 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
134 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
\r
135 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
\r
136 <%= xosInlineDetailButtonsTemplate() %>
\r
143 <script type="text/template" id="xosAdmin-image-list-template">
144 <h3 class="xos-list-title"><%= title %></h3>
145 <%= xosInlineListButtonsTemplate() %>
146 <table class="test-table">
151 <th>container_format</th>
159 <script type="text/template" id="xosAdmin-image-listitem-template">
160 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
161 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
162 <td><%= disk_format %></td>
163 <td><%= container_format %></td>
165 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
168 <script type="text/template" id="xosAdmin-image-detail-template">
169 <h3 class="xos-detail-title">Detail View: Image</h3>
172 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
173 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
\r
174 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
\r
175 <%= xosInlineDetailButtonsTemplate() %>
\r
180 <!-- NetworkTemplate -->
182 <script type="text/template" id="xosAdmin-networkTemplate-list-template">
183 <h3 class="xos-list-title"><%= title %></h3>
184 <%= xosInlineListButtonsTemplate() %>
185 <table class="test-table">
192 <th>sharedNetworkName</th>
193 <th>sharedNetworkId</th>
201 <script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
202 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
203 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
204 <td><%= description %></td>
205 <td><%= visibility %></td>
206 <td><%= translation %></td>
207 <td><%= sharedNetworkName %></td>
208 <td><%= sharedNetworkId %></td>
209 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
212 <script type="text/template" id="xosAdmin-networkTemplate-detail-template">
213 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
216 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
217 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
\r
218 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
\r
219 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
\r
220 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
\r
221 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
\r
222 <%= xosInlineDetailButtonsTemplate() %>
\r
229 <script type="text/template" id="xosAdmin-network-list-template">
230 <h3 class="xos-list-title"><%= title %></h3>
231 <%= xosInlineListButtonsTemplate() %>
232 <table class="test-table">
246 <script type="text/template" id="xosAdmin-network-listitem-template">
247 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
248 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
249 <td><%= idToName(template,"networkTemplates","name") %></td>
250 <td><%= ports %></td>
251 <td><%= labels %></td>
252 <td><%= idToName(owner,"slices","name") %></td>
253 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
256 <script type="text/template" id="xosAdmin-network-detail-template">
257 <h3 class="xos-detail-title">Detail View: Network</h3>
260 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
261 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
\r
262 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
\r
263 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
\r
264 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
\r
265 <%= xosInlineDetailButtonsTemplate() %>
\r
270 <!-- NetworkSliver -->
272 <script type="text/template" id="xosAdmin-networkSliver-list-template">
273 <h3 class="xos-list-title"><%= title %></h3>
274 <%= xosInlineListButtonsTemplate() %>
275 <table class="test-table">
288 <script type="text/template" id="xosAdmin-networkSliver-listitem-template">
289 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
290 <td><%= idToName(network,"networks","name") %></td>
291 <td><%= idToName(sliver,"slivers","name") %></td>
293 <td><%= port_id %></td>
294 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
297 <script type="text/template" id="xosAdmin-networkSliver-detail-template">
298 <h3 class="xos-detail-title">Detail View: Network</h3>
301 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
\r
302 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
\r
303 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
\r
304 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
\r
305 <%= xosInlineDetailButtonsTemplate() %>
\r
310 <!-- NetworkDeployment -->
312 <script type="text/template" id="xosAdmin-networkDeployment-list-template">
313 <h3 class="xos-list-title"><%= title %></h3>
314 <%= xosInlineListButtonsTemplate() %>
315 <table class="test-table">
327 <script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
328 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
329 <td><%= idToName(network,"networks","name") %></td>
330 <td><%= idToName(deployment,"deployments","name") %></td>
331 <td><%= net_id %></td>
332 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
335 <script type="text/template" id="xosAdmin-networkDeployment-detail-template">
336 <h3 class="xos-detail-title">Detail View: Network</h3>
339 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
\r
340 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
\r
341 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
\r
342 <%= xosInlineDetailButtonsTemplate() %>
\r
349 <script type="text/template" id="xosAdmin-node-list-template">
350 <h3 class="xos-list-title"><%= title %></h3>
351 <%= xosInlineListButtonsTemplate() %>
352 <table class="test-table">
365 <script type="text/template" id="xosAdmin-node-listitem-template">
366 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
367 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
368 <td><%= idToName(site,"sites","name") %></td>
369 <td><%= idToName(deployment,"deployments","name") %></td>
370 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
373 <script type="text/template" id="xosAdmin-node-detail-template">
374 <h3 class="xos-detail-title">Detail View: Node</h3>
377 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
378 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
\r
379 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
\r
380 <%= xosInlineDetailButtonsTemplate() %>
\r
387 <script type="text/template" id="xosAdmin-sliceRole-list-template">
388 <h3 class="xos-list-title"><%= title %></h3>
389 <%= xosInlineListButtonsTemplate() %>
390 <table class="test-table">
401 <script type="text/template" id="xosAdmin-sliceRole-listitem-template">
402 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
404 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
407 <script type="text/template" id="xosAdmin-sliceRole-detail-template">
408 <h3 class="xos-detail-title">Detail View: Service</h3>
411 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
\r
412 <%= xosInlineDetailButtonsTemplate() %>
\r
419 <script type="text/template" id="xosAdmin-service-list-template">
420 <h3 class="xos-list-title"><%= title %></h3>
421 <%= xosInlineListButtonsTemplate() %>
422 <table class="test-table">
428 <th>versionNumber</th>
437 <script type="text/template" id="xosAdmin-service-listitem-template">
438 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
439 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
440 <td><%= description %></td>
441 <td><%= enabled %></td>
442 <td><%= versionNumber %></td>
443 <td><%= published %></td>
444 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
447 <script type="text/template" id="xosAdmin-service-detail-template">
448 <h3 class="xos-detail-title">Detail View: Service</h3>
451 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
452 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
\r
453 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
\r
454 <%= xosInlineDetailButtonsTemplate() %>
\r
461 <script type="text/template" id="xosAdmin-site-list-template">
462 <h3 class="xos-list-title"><%= title %></h3>
463 <%= xosInlineListButtonsTemplate() %>
464 <table class="test-table">
472 <th>abbreviated_name</th>
479 <script type="text/template" id="xosAdmin-site-listitem-template">
480 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
481 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
482 <td><%= site_url %></td>
483 <td><%= enabled %></td>
484 <td><%= login_base %></td>
485 <td><%= is_public %></td>
486 <td><%= abbreviated_name %></td>
487 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
490 <script type="text/template" id="xosAdmin-site-detail-template">
491 <h3 class="xos-detail-title">Detail View: Site</h3>
494 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
495 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
\r
496 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
\r
497 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
\r
498 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
\r
499 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
\r
500 <%= xosInlineDetailButtonsTemplate() %>
\r
507 <script type="text/template" id="xosAdmin-slice-list-template">
508 <h3 class="xos-list-title"><%= title %></h3>
509 <%= xosInlineListButtonsTemplate() %>
510 <table class="test-table">
515 <th>omf_friendly</th>
527 <script type="text/template" id="xosAdmin-slice-listitem-template">
528 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
529 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
530 <td><%= enabled %></td>
531 <td><%= omf_friendly %></td>
532 <td><%= description %></td>
533 <td><%= slice_url %></td>
534 <td><%= idToName(site,"sites","name") %></td>
535 <td><%= max_slivers %></td>
536 <td><%= idToName(service,"services","name") %></td>
537 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
540 <script type="text/template" id="xosAdmin-slice-detail-template">
541 <h3 class="xos-detail-title">Detail View: Slice</h3>
544 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
545 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
\r
546 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
\r
547 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
\r
548 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
\r
549 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
\r
550 <%= xosInlineDetailButtonsTemplate() %>
\r
555 <!-- SliceDeployment -->
557 <script type="text/template" id="xosAdmin-sliceDeployment-list-template">
558 <h3 class="xos-list-title"><%= title %></h3>
559 <%= xosInlineListButtonsTemplate() %>
560 <table class="test-table">
572 <script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
573 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
574 <td><%= idToName(slice,"slices","name") %></td>
575 <td><%= idToName(deployment,"deployments","name") %></td>
576 <td><%= tenant_id %></td>
577 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
580 <script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
581 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
584 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
\r
585 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
\r
586 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
\r
587 <%= xosInlineDetailButtonsTemplate() %>
\r
592 <!-- SlicePrivilege -->
594 <script type="text/template" id="xosAdmin-slicePrivilege-list-template">
595 <h3 class="xos-list-title"><%= title %></h3>
596 <%= xosInlineListButtonsTemplate() %>
597 <table class="test-table">
609 <script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
610 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
611 <td><%= idToName(user,"users","username") %></td>
612 <td><%= idToName(slice,"slices","name") %></td>
613 <td><%= idToName(role,"sliceRoles","role") %></td>
614 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
617 <script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
618 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
621 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
\r
622 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
\r
623 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
\r
624 <%= xosInlineDetailButtonsTemplate() %>
\r
631 <script type="text/template" id="xosAdmin-sliver-list-template">
632 <h3 class="xos-list-title"><%= title %></h3>
633 <%= xosInlineListButtonsTemplate() %>
634 <table class="test-table">
639 <th>instance_name</th>
644 <th>deploymentNetwork</th>
654 <script type="text/template" id="xosAdmin-sliver-listitem-template">
655 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
656 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
657 <td><%= instance_id %></td>
658 <td><%= instance_name %></td>
659 <td><%= idToName(image,"images","name") %></td>
660 <td><%= idToName(creator,"users","name") %></td>
661 <td><%= idToName(slice,"slices","name") %></td>
662 <td><%= idToName(node,"nodes","name") %></td>
663 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
664 <td><%= flavor %></td>
665 <td><%= userData %></td>
666 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
669 <script type="text/template" id="xosAdmin-sliver-detail-template">
670 <h3 class="xos-detail-title">Detail View: Sliver</h3>
673 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
\r
674 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
\r
675 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
\r
676 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
\r
677 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
\r
678 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
\r
679 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
\r
680 <%= xosInlineDetailButtonsTemplate() %>
\r
687 <script type="text/template" id="xosAdmin-user-list-template">
688 <h3 class="xos-list-title"><%= title %></h3>
689 <%= xosInlineListButtonsTemplate() %>
690 <table class="test-table">
706 <script type="text/template" id="xosAdmin-user-listitem-template">
707 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
708 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
709 <td><%= firstname %></td>
710 <td><%= lastname %></td>
711 <td><%= phone %></td>
712 <td><%= user_url %></td>
713 <td><%= idToName(site,"sites","name") %></td>
714 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
717 <script type="text/template" id="xosAdmin-user-detail-template">
718 <h3 class="xos-detail-title">Detail View: User</h3>
721 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
\r
722 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
\r
723 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
\r
724 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
\r
725 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
\r
726 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
\r
727 <%= xosInlineDetailButtonsTemplate() %>
\r
732 <!-- UserDeployments -->
734 <script type="text/template" id="xosAdmin-userDeployment-list-template">
735 <h3 class="xos-list-title"><%= title %></h3>
736 <%= xosInlineListButtonsTemplate() %>
737 <table class="test-table">
749 <script type="text/template" id="xosAdmin-userDeployment-listitem-template">
750 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
751 <td><%= idToName(user,"users","username") %></td>
752 <td><%= idToName(deployment,"deployments","name") %></td>
753 <td><%= kuser_id %></td>
754 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
757 <script type="text/template" id="xosAdmin-userDeployment-detail-template">
758 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
761 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
\r
762 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
\r
763 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
\r
764 <%= xosInlineDetailButtonsTemplate() %>
\r
770 xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
771 xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
772 xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
773 xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());