blob: b032e0080265fe2b1a97a6e4769b6dc3590f268a [file] [log] [blame]
Scott Bakerfdaee922014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker562d5952014-11-24 23:26:12 -08003<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
Scott Baker92152752014-12-01 17:06:31 -080019<script type="text/template" id="xos-error-rawresponse">
20 <h5>Error</h5>
21 <pre>The server returned:
22"<%= responseText %>"</pre>
23</script>
24
Scott Baker416f0872014-11-03 23:54:59 -080025<script type="text/template" id="xos-error-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080026 <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
Scott Baker416f0872014-11-03 23:54:59 -080034<script type="text/template" id="xos-success-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080035 <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
Scott Baker90004d52014-11-04 09:34:17 -080043<script type="text/template" id="xos-navbutton-old">
Scott Baker416f0872014-11-03 23:54:59 -080044 <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
45</script>
46
Scott Bakere2e47fb2014-11-05 21:11:50 -080047<script type="text/template" id="xos-status-template">
Scott Baker01c9d612014-11-14 16:13:43 -080048 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
Scott Bakere2e47fb2014-11-05 21:11:50 -080049</script>
50
Scott Baker9d37d562014-11-04 23:20:48 -080051<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">
Scott Baker13e6f0d2014-11-18 17:02:07 -080060 <h3><img src="/static/img/brokencircle.gif" height=16 width=16 id="xos-list-title-spinner"> <%= title %></h3>
Scott Baker9d37d562014-11-04 23:20:48 -080061</script>
62
63<script type="text/template" id="xos-title-detail">
64 <h3><%= title %></h3>
65</script>
66
Scott Baker90004d52014-11-04 09:34:17 -080067<script type="text/template" id="xos-navbutton">
68 <li>
69 <a href="<%= routeUrl %>">
70 <i class="<%= iconClass %>"></i>
71 <%= name %>
72 </a>
Scott Baker0bf96b22014-11-04 15:41:47 -080073 </li>
Scott Baker90004d52014-11-04 09:34:17 -080074</script>
75
Scott Bakere49f08c2014-11-07 13:01:43 -080076<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>
Scott Baker13e6f0d2014-11-18 17:02:07 -080081 <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button>
Scott Bakere49f08c2014-11-07 13:01:43 -080082 </td>
83 </tr>
84</script>
85
Scott Baker7ce23652014-11-07 16:40:30 -080086<script type="text/template" id="xos-inline-list-buttons-template">
87 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
Scott Baker13e6f0d2014-11-18 17:02:07 -080088 <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button>
Scott Baker7ce23652014-11-07 16:40:30 -080089 </td>
90 </tr>
91</script>
92
Scott Bakerc91396e2014-12-02 10:49:04 -080093<script type="text/template" id="xos-delete-button-template">
94 <a href="#delete?model=<%= modelName %>&id=<%= id %>">delete</a>
95</script>
96
97<script type="text/template" id="xos-delete-button-template">
98 <a href="#delete?model=<%= modelName %>&id=<%= 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
Scott Bakerfc61b012014-10-30 16:10:16 -0700105<!-- Deployment -->
106
107<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800108 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7ce23652014-11-07 16:40:30 -0800109 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700110 <table class="test-table">
111 <thead><tr>
112 <th>id</th>
113 <th>name</th>
114 <th>backend</th>
115 <th>admin_tenant</th>
116 <th># sites</th>
Scott Bakerc91396e2014-12-02 10:49:04 -0800117 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700118 </tr></thead>
119 <tbody></tbody>
120 </table>
121</script>
122
123
124<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800125 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
126 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700127 <td><%= backend_type %></td>
128 <td><%= admin_tenant %></td>
Scott Baker13e6f0d2014-11-18 17:02:07 -0800129 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerc91396e2014-12-02 10:49:04 -0800130 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700131</script>
132
133<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800134 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800135 <form>
Scott Bakerfc61b012014-10-30 16:10:16 -0700136 <table>
137 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
138 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
139 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800140 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700141 </table>
142 </form>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800143</script>
Scott Bakerfc61b012014-10-30 16:10:16 -0700144
145<!-- Image -->
146
147<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800148 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800149 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700150 <table class="test-table">
151 <thead><tr>
152 <th>id</th>
153 <th>name</th>
154 <th>disk_format</th>
155 <th>container_format</th>
156 <th>path</th>
157 </tr></thead>
158 <tbody></tbody>
159 </table>
160</script>
161
162<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800163 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
164 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700165 <td><%= disk_format %></td>
166 <td><%= container_format %></td>
167 <td><%= path %></td>
168</script>
169
170<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800171 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700172 <form>
173 <table>
174 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
175 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
176 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800177 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700178 </table>
179 </form>
180</script>
181
182<!-- NetworkTemplate -->
183
184<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800185 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800186 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700187 <table class="test-table">
188 <thead><tr>
189 <th>id</th>
190 <th>name</th>
191 <th>description</th>
192 <th>visibility</th>
193 <th>translation</th>
194 <th>sharedNetworkName</th>
195 <th>sharedNetworkId</th>
196 </tr></thead>
197 <tbody></tbody>
198 </table>
199</script>
200
201
202<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800203 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
204 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700205 <td><%= description %></td>
206 <td><%= visibility %></td>
207 <td><%= translation %></td>
208 <td><%= sharedNetworkName %></td>
209 <td><%= sharedNetworkId %></td>
210</script>
211
212<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800213 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700214 <form>
215 <table>
216 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
217 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
218 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
219 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
220 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
221 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800222 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700223 </table>
224 </form>
225</script>
226
227<!-- Network -->
228
229<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800230 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800231 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700232 <table class="test-table">
233 <thead><tr>
234 <th>id</th>
235 <th>name</th>
236 <th>template</th>
237 <th>ports</th>
238 <th>labels</th>
239 <th>owner</th>
240 </tr></thead>
241 <tbody></tbody>
242 </table>
243</script>
244
245<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800246 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
247 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700248 <td><%= idToName(template,"networkTemplates","name") %></td>
249 <td><%= ports %></td>
250 <td><%= labels %></td>
251 <td><%= idToName(owner,"slices","name") %></td>
252</script>
253
254<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800255 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700256 <form>
257 <table>
258 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800259 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700260 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
261 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800262 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800263 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700264 </table>
265 </form>
266</script>
267
268<!-- NetworkSliver -->
269
270<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800271 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800272 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700273 <table class="test-table">
274 <thead><tr>
275 <th>id</th>
276 <th>network</th>
277 <th>sliver</th>
278 <th>ip</th>
279 <th>port_id</th>
280 </tr></thead>
281 <tbody></tbody>
282 </table>
283</script>
284
285<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800286 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700287 <td><%= idToName(network,"networks","name") %></td>
288 <td><%= idToName(sliver,"slivers","name") %></td>
289 <td><%= ip %></td>
290 <td><%= port_id %></td>
291</script>
292
293<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800294 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700295 <form>
296 <table>
297 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
298 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
299 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
300 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800301 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700302 </table>
303 </form>
304</script>
305
Scott Baker586878e2014-10-31 16:43:07 -0700306<!-- NetworkDeployment -->
307
308<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800309 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800310 <%= xosInlineListButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700311 <table class="test-table">
312 <thead><tr>
313 <th>id</th>
314 <th>network</th>
315 <th>deployment</th>
316 <th>net_id</th>
317 </tr></thead>
318 <tbody></tbody>
319 </table>
320</script>
321
322<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800323 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700324 <td><%= idToName(network,"networks","name") %></td>
325 <td><%= idToName(deployment,"deployments","name") %></td>
326 <td><%= net_id %></td>
327</script>
328
329<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800330 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker586878e2014-10-31 16:43:07 -0700331 <form>
332 <table>
333 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
334 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
335 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800336 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700337 </table>
338 </form>
339</script>
340
Scott Bakerfc61b012014-10-30 16:10:16 -0700341<!-- Node -->
342
343<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800344 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800345 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700346 <table class="test-table">
347 <thead><tr>
348 <th>id</th>
349 <th>name</th>
350 <th>site</th>
351 <th>deployment</th>
352 </tr></thead>
353 <tbody></tbody>
354 </table>
355</script>
356
357
358<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800359 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
360 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700361 <td><%= idToName(site,"sites","name") %></td>
362 <td><%= idToName(deployment,"deployments","name") %></td>
363</script>
364
365<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800366 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700367 <form>
368 <table>
369 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800370 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
371 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800372 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700373 </table>
374 </form>
375</script>
376
377<!-- SliceRole -->
378
379<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800380 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800381 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700382 <table class="test-table">
383 <thead><tr>
384 <th>id</th>
385 <th>role</th>
386 </tr></thead>
387 <tbody></tbody>
388 </table>
389</script>
390
391
392<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800393 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700394 <td><%= role %></td>
395</script>
396
397<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800398 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700399 <form>
400 <table>
401 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800402 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700403 </table>
404 </form>
405</script>
406
407<!-- Service -->
408
409<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800410 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800411 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700412 <table class="test-table">
413 <thead><tr>
414 <th>id</th>
415 <th>name</th>
416 <th>description</th>
417 <th>enabled</th>
418 <th>versionNumber</th>
419 <th>published</th>
420 </tr></thead>
421 <tbody></tbody>
422 </table>
423</script>
424
425
426<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800427 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
428 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700429 <td><%= description %></td>
430 <td><%= enabled %></td>
431 <td><%= versionNumber %></td>
432 <td><%= published %></td>
433</script>
434
435<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800436 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700437 <form>
438 <table>
439 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
440 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
441 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800442 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700443 </table>
444 </form>
445</script>
446
447<!-- Site -->
448
449<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800450 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800451 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700452 <table class="test-table">
453 <thead><tr>
454 <th>id</th>
455 <th>name</th>
456 <th>url</th>
457 <th>enabled</th>
458 <th>login_base</th>
459 <th>is_public</th>
460 <th>abbreviated_name</th>
461 </tr></thead>
462 <tbody></tbody>
463 </table>
464</script>
465
466<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800467 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
468 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700469 <td><%= site_url %></td>
470 <td><%= enabled %></td>
471 <td><%= login_base %></td>
472 <td><%= is_public %></td>
473 <td><%= abbreviated_name %></td>
474</script>
475
476<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800477 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700478 <form>
479 <table>
480 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800481 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700482 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800483 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
484 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700485 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800486 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700487 </table>
488 </form>
489</script>
490
491<!-- Slice -->
492
493<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800494 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800495 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700496 <table class="test-table">
497 <thead><tr>
498 <th>id</th>
499 <th>name</th>
500 <th>enabled</th>
501 <th>omf_friendly</th>
502 <th>description</th>
503 <th>slice_url</th>
504 <th>site</th>
505 <th>max_slivers</th>
506 <th>service</th>
507 </tr></thead>
508 <tbody></tbody>
509 </table>
510</script>
511
512<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800513 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
514 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700515 <td><%= enabled %></td>
516 <td><%= omf_friendly %></td>
517 <td><%= description %></td>
518 <td><%= slice_url %></td>
519 <td><%= idToName(site,"sites","name") %></td>
520 <td><%= max_slivers %></td>
521 <td><%= idToName(service,"services","name") %></td>
522</script>
523
524<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800525 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700526 <form>
527 <table>
528 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800529 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700530 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
531 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
532 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
533 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800534 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700535 </table>
536 </form>
537</script>
538
Scott Baker9b3cf842014-11-02 22:28:59 -0800539<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700540
541<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800542 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800543 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700544 <table class="test-table">
545 <thead><tr>
546 <th>id</th>
547 <th>slice</th>
548 <th>deployment</th>
549 <th>tenant_id</th>
550 </tr></thead>
551 <tbody></tbody>
552 </table>
553</script>
554
555<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800556 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700557 <td><%= idToName(slice,"slices","name") %></td>
558 <td><%= idToName(deployment,"deployments","name") %></td>
559 <td><%= tenant_id %></td>
560</script>
561
562<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800563 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700564 <form>
565 <table>
566 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
567 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
568 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800569 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700570 </table>
571 </form>
572</script>
573
574<!-- SlicePrivilege -->
575
576<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800577 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800578 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700579 <table class="test-table">
580 <thead><tr>
581 <th>id</th>
582 <th>user</th>
583 <th>slice</th>
584 <th>role</th>
585 </tr></thead>
586 <tbody></tbody>
587 </table>
588</script>
589
590<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800591 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700592 <td><%= idToName(user,"users","username") %></td>
593 <td><%= idToName(slice,"slices","name") %></td>
594 <td><%= idToName(role,"sliceRoles","role") %></td>
595</script>
596
597<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800598 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700599 <form>
600 <table>
601 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
602 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
603 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800604 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700605 </table>
606 </form>
607</script>
608
609<!-- Sliver -->
610
611<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800612 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800613 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700614 <table class="test-table">
615 <thead><tr>
616 <th>id</th>
617 <th>name</th>
618 <th>instance_id</th>
619 <th>instance_name</th>
620 <th>image</th>
621 <th>creator</th>
622 <th>slice</th>
623 <th>node</th>
624 <th>deploymentNetwork</th>
625 <th>flavor</th>
626 <th>userData</th>
627 </tr></thead>
628 <tbody></tbody>
629 </table>
630</script>
631
632
633<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800634 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
635 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700636 <td><%= instance_id %></td>
637 <td><%= instance_name %></td>
638 <td><%= idToName(image,"images","name") %></td>
639 <td><%= idToName(creator,"users","name") %></td>
640 <td><%= idToName(slice,"slices","name") %></td>
641 <td><%= idToName(node,"nodes","name") %></td>
642 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
643 <td><%= flavor %></td>
644 <td><%= userData %></td>
645</script>
646
647<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800648 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700649 <form>
650 <table>
651 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
652 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
653 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800654 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
655 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Baker98e31772014-11-04 23:50:45 -0800656 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
657 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800658 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700659 </table>
660 </form>
661</script>
662
663<!-- User -->
664
665<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800666 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800667 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700668 <table class="test-table">
669 <thead><tr>
670 <th>id</th>
671 <th>username</th>
672 <th>firstname</th>
673 <th>lastname</th>
674 <th>phone</th>
675 <th>user_url</th>
676 <th>site</th>
677 </tr></thead>
678 <tbody></tbody>
679 </table>
680</script>
681
682
683<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800684 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
685 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700686 <td><%= firstname %></td>
687 <td><%= lastname %></td>
688 <td><%= phone %></td>
689 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700690 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700691</script>
692
693<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800694 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700695 <form>
696 <table>
697 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
698 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
699 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
700 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
701 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800702 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800703 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700704 </table>
705 </form>
706</script>
707
Scott Baker10badd32014-10-31 00:18:24 -0700708<!-- UserDeployments -->
709
710<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800711 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800712 <%= xosInlineListButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700713 <table class="test-table">
714 <thead><tr>
715 <th>id</th>
716 <th>user</th>
717 <th>deployment</th>
718 <th>kuser_id</th>
719 </tr></thead>
720 <tbody></tbody>
721 </table>
722</script>
723
Scott Baker10badd32014-10-31 00:18:24 -0700724<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800725 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700726 <td><%= idToName(user,"users","username") %></td>
727 <td><%= idToName(deployment,"deployments","name") %></td>
728 <td><%= kuser_id %></td>
729</script>
730
731<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800732 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker10badd32014-10-31 00:18:24 -0700733 <form>
734 <table>
735 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
736 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
737 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800738 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700739 </table>
740 </form>
741</script>
Scott Bakere49f08c2014-11-07 13:01:43 -0800742
743<script>
744xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker7ce23652014-11-07 16:40:30 -0800745xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
Scott Bakerc91396e2014-12-02 10:49:04 -0800746xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
747xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800748</script>