1 <!-- Error and Success templates -->
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>
12 <script type="text/template" id="xos-success-template">
13 <button id="close-success-box">Close Success Message</button>
15 <table class="test-success-table">
16 <tr><td>Code:</td><td><%= status %></td></tr>
17 <tr><td>Message:</td><td><%= statusText %></td></tr>
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>
25 <script type="text/template" id="xos-log-template">
26 <tr id="<%= logMessageId %>">
27 <td><%= success %></td>
29 <td><%= status %></td>
30 <td><%= statusText %></td>
34 <script type="text/template" id="xos-status-template">
35 <%= what %>: [<%= success %>] <%= statusText %> (<%= status %>)
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>
46 <script type="text/template" id="xos-title-list">
50 <script type="text/template" id="xos-title-detail">
54 <script type="text/template" id="xos-navbutton">
56 <a href="<%= routeUrl %>">
57 <i class="<%= iconClass %>"></i>
63 <script type="text/template" id="xos-inline-detail-buttons-template">
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>
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>
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">
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>
104 <script type="text/template" id="xosAdmin-deployment-detail-template">
105 <h3 class="xos-detail-title">Detail View: Deployment</h3>
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
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">
126 <th>container_format</th>
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>
141 <script type="text/template" id="xosAdmin-image-detail-template">
142 <h3 class="xos-detail-title">Detail View: Image</h3>
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
153 <!-- NetworkTemplate -->
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">
165 <th>sharedNetworkName</th>
166 <th>sharedNetworkId</th>
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>
183 <script type="text/template" id="xosAdmin-networkTemplate-detail-template">
184 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
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
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">
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>
225 <script type="text/template" id="xosAdmin-network-detail-template">
226 <h3 class="xos-detail-title">Detail View: Network</h3>
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
239 <!-- NetworkSliver -->
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">
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>
261 <td><%= port_id %></td>
264 <script type="text/template" id="xosAdmin-networkSliver-detail-template">
265 <h3 class="xos-detail-title">Detail View: Network</h3>
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
277 <!-- NetworkDeployment -->
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">
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>
300 <script type="text/template" id="xosAdmin-networkDeployment-detail-template">
301 <h3 class="xos-detail-title">Detail View: Network</h3>
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
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">
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>
336 <script type="text/template" id="xosAdmin-node-detail-template">
337 <h3 class="xos-detail-title">Detail View: Node</h3>
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
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">
363 <script type="text/template" id="xosAdmin-sliceRole-listitem-template">
364 <td class="objectLink"><%= id %></td>
368 <script type="text/template" id="xosAdmin-sliceRole-detail-template">
369 <h3 class="xos-detail-title">Detail View: Service</h3>
372 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
\r
373 <%= xosInlineDetailButtonsTemplate() %>
\r
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">
389 <th>versionNumber</th>
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>
406 <script type="text/template" id="xosAdmin-service-detail-template">
407 <h3 class="xos-detail-title">Detail View: Service</h3>
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
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">
431 <th>abbreviated_name</th>
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>
447 <script type="text/template" id="xosAdmin-site-detail-template">
448 <h3 class="xos-detail-title">Detail View: Site</h3>
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
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">
472 <th>omf_friendly</th>
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>
495 <script type="text/template" id="xosAdmin-slice-detail-template">
496 <h3 class="xos-detail-title">Detail View: Slice</h3>
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
510 <!-- SliceDeployment -->
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">
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>
533 <script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
534 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
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
545 <!-- SlicePrivilege -->
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">
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>
568 <script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
569 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
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
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">
590 <th>instance_name</th>
595 <th>deploymentNetwork</th>
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>
618 <script type="text/template" id="xosAdmin-sliver-detail-template">
619 <h3 class="xos-detail-title">Detail View: Sliver</h3>
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
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">
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>
664 <script type="text/template" id="xosAdmin-user-detail-template">
665 <h3 class="xos-detail-title">Detail View: User</h3>
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
679 <!-- UserDeployments -->
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">
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>
702 <script type="text/template" id="xosAdmin-userDeployment-detail-template">
703 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
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
715 xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
716 xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());