blob: ee974f6a78adb80e509d3be91aaad1fea59b6d12 [file] [log] [blame]
Scott Bakerfdaee922014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker416f0872014-11-03 23:54:59 -08003<script type="text/template" id="xos-error-template">
Scott Bakerfdaee922014-11-03 09:43:23 -08004 <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>
9 </table>
10</script>
11
Scott Baker416f0872014-11-03 23:54:59 -080012<script type="text/template" id="xos-success-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080013 <button id="close-success-box">Close Success Message</button>
14 <h3>Success!</h3>
15 <table class="test-success-table">
16 <tr><td>Code:</td><td><%= status %></td></tr>
17 <tr><td>Message:</td><td><%= statusText %></td></tr>
18 </table>
19</script>
20
Scott Baker90004d52014-11-04 09:34:17 -080021<script type="text/template" id="xos-navbutton-old">
Scott Baker416f0872014-11-03 23:54:59 -080022 <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
23</script>
24
Scott Baker0bf96b22014-11-04 15:41:47 -080025<script type="text/template" id="xos-log-template">
26 <tr id="<%= logMessageId %>">
27 <td><%= success %></td>
28 <td><%= what %></td>
29 <td><%= status %></td>
30 <td><%= statusText %></td>
31 </tr>
32</script>
33
Scott Bakere2e47fb2014-11-05 21:11:50 -080034<script type="text/template" id="xos-status-template">
35 <%= what %>: [<%= success %>] <%= statusText %> (<%= status %>)
36</script>
37
Scott Baker9d37d562014-11-04 23:20:48 -080038<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>
42 <% }); %>
43 </ul>
44</script>
45
46<script type="text/template" id="xos-title-list">
47 <h3><%= title %></h3>
48</script>
49
50<script type="text/template" id="xos-title-detail">
51 <h3><%= title %></h3>
52</script>
53
Scott Baker90004d52014-11-04 09:34:17 -080054<script type="text/template" id="xos-navbutton">
55 <li>
56 <a href="<%= routeUrl %>">
57 <i class="<%= iconClass %>"></i>
58 <%= name %>
59 </a>
Scott Baker0bf96b22014-11-04 15:41:47 -080060 </li>
Scott Baker90004d52014-11-04 09:34:17 -080061</script>
62
Scott Bakere49f08c2014-11-07 13:01:43 -080063<script type="text/template" id="xos-inline-detail-buttons-template">
64 <tr>
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>
68 </td>
69 </tr>
70</script>
71
Scott Baker7ce23652014-11-07 16:40:30 -080072<script type="text/template" id="xos-inline-list-buttons-template">
73 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
74 </td>
75 </tr>
76</script>
77
Scott Bakerfc61b012014-10-30 16:10:16 -070078<!-- Deployment -->
79
80<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -080081 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7ce23652014-11-07 16:40:30 -080082 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -070083 <table class="test-table">
84 <thead><tr>
85 <th>id</th>
86 <th>name</th>
87 <th>backend</th>
88 <th>admin_tenant</th>
89 <th># sites</th>
90 </tr></thead>
91 <tbody></tbody>
92 </table>
93</script>
94
95
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>
102</script>
103
104<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800105 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800106 <form>
Scott Bakerfc61b012014-10-30 16:10:16 -0700107 <table>
108 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
109 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
110 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800111 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700112 </table>
113 </form>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800114</script>
Scott Bakerfc61b012014-10-30 16:10:16 -0700115
116<!-- Image -->
117
118<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800119 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800120 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700121 <table class="test-table">
122 <thead><tr>
123 <th>id</th>
124 <th>name</th>
125 <th>disk_format</th>
126 <th>container_format</th>
127 <th>path</th>
128 </tr></thead>
129 <tbody></tbody>
130 </table>
131</script>
132
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>
138 <td><%= path %></td>
139</script>
140
141<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800142 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700143 <form>
144 <table>
145 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
146 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
147 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800148 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700149 </table>
150 </form>
151</script>
152
153<!-- NetworkTemplate -->
154
155<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800156 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800157 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700158 <table class="test-table">
159 <thead><tr>
160 <th>id</th>
161 <th>name</th>
162 <th>description</th>
163 <th>visibility</th>
164 <th>translation</th>
165 <th>sharedNetworkName</th>
166 <th>sharedNetworkId</th>
167 </tr></thead>
168 <tbody></tbody>
169 </table>
170</script>
171
172
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>
181</script>
182
183<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800184 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700185 <form>
186 <table>
187 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
188 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
189 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
190 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
191 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
192 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800193 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700194 </table>
195 </form>
196</script>
197
198<!-- Network -->
199
200<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800201 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800202 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700203 <table class="test-table">
204 <thead><tr>
205 <th>id</th>
206 <th>name</th>
207 <th>template</th>
208 <th>ports</th>
209 <th>labels</th>
210 <th>owner</th>
211 </tr></thead>
212 <tbody></tbody>
213 </table>
214</script>
215
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>
223</script>
224
225<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800226 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700227 <form>
228 <table>
229 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800230 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700231 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
232 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800233 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800234 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700235 </table>
236 </form>
237</script>
238
239<!-- NetworkSliver -->
240
241<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800242 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800243 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700244 <table class="test-table">
245 <thead><tr>
246 <th>id</th>
247 <th>network</th>
248 <th>sliver</th>
249 <th>ip</th>
250 <th>port_id</th>
251 </tr></thead>
252 <tbody></tbody>
253 </table>
254</script>
255
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>
260 <td><%= ip %></td>
261 <td><%= port_id %></td>
262</script>
263
264<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800265 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700266 <form>
267 <table>
268 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
269 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
270 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
271 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800272 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700273 </table>
274 </form>
275</script>
276
Scott Baker586878e2014-10-31 16:43:07 -0700277<!-- NetworkDeployment -->
278
279<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800280 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800281 <%= xosInlineListButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700282 <table class="test-table">
283 <thead><tr>
284 <th>id</th>
285 <th>network</th>
286 <th>deployment</th>
287 <th>net_id</th>
288 </tr></thead>
289 <tbody></tbody>
290 </table>
291</script>
292
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>
298</script>
299
300<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800301 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker586878e2014-10-31 16:43:07 -0700302 <form>
303 <table>
304 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
305 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
306 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800307 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700308 </table>
309 </form>
310</script>
311
Scott Bakerfc61b012014-10-30 16:10:16 -0700312<!-- Node -->
313
314<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800315 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800316 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700317 <table class="test-table">
318 <thead><tr>
319 <th>id</th>
320 <th>name</th>
321 <th>site</th>
322 <th>deployment</th>
323 </tr></thead>
324 <tbody></tbody>
325 </table>
326</script>
327
328
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>
334</script>
335
336<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800337 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700338 <form>
339 <table>
340 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800341 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
342 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800343 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700344 </table>
345 </form>
346</script>
347
348<!-- SliceRole -->
349
350<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800351 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800352 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700353 <table class="test-table">
354 <thead><tr>
355 <th>id</th>
356 <th>role</th>
357 </tr></thead>
358 <tbody></tbody>
359 </table>
360</script>
361
362
363<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
364 <td class="objectLink"><%= id %></td>
365 <td><%= role %></td>
366</script>
367
368<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800369 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700370 <form>
371 <table>
372 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800373 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700374 </table>
375 </form>
376</script>
377
378<!-- Service -->
379
380<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800381 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800382 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700383 <table class="test-table">
384 <thead><tr>
385 <th>id</th>
386 <th>name</th>
387 <th>description</th>
388 <th>enabled</th>
389 <th>versionNumber</th>
390 <th>published</th>
391 </tr></thead>
392 <tbody></tbody>
393 </table>
394</script>
395
396
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>
404</script>
405
406<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800407 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700408 <form>
409 <table>
410 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
411 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
412 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800413 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700414 </table>
415 </form>
416</script>
417
418<!-- Site -->
419
420<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800421 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800422 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700423 <table class="test-table">
424 <thead><tr>
425 <th>id</th>
426 <th>name</th>
427 <th>url</th>
428 <th>enabled</th>
429 <th>login_base</th>
430 <th>is_public</th>
431 <th>abbreviated_name</th>
432 </tr></thead>
433 <tbody></tbody>
434 </table>
435</script>
436
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>
445</script>
446
447<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800448 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700449 <form>
450 <table>
451 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800452 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700453 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800454 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
455 <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 -0700456 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800457 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700458 </table>
459 </form>
460</script>
461
462<!-- Slice -->
463
464<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800465 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800466 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700467 <table class="test-table">
468 <thead><tr>
469 <th>id</th>
470 <th>name</th>
471 <th>enabled</th>
472 <th>omf_friendly</th>
473 <th>description</th>
474 <th>slice_url</th>
475 <th>site</th>
476 <th>max_slivers</th>
477 <th>service</th>
478 </tr></thead>
479 <tbody></tbody>
480 </table>
481</script>
482
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>
493</script>
494
495<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800496 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700497 <form>
498 <table>
499 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800500 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700501 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
502 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
503 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
504 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800505 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700506 </table>
507 </form>
508</script>
509
Scott Baker9b3cf842014-11-02 22:28:59 -0800510<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700511
512<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800513 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800514 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700515 <table class="test-table">
516 <thead><tr>
517 <th>id</th>
518 <th>slice</th>
519 <th>deployment</th>
520 <th>tenant_id</th>
521 </tr></thead>
522 <tbody></tbody>
523 </table>
524</script>
525
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>
531</script>
532
533<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800534 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700535 <form>
536 <table>
537 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
538 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
539 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800540 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700541 </table>
542 </form>
543</script>
544
545<!-- SlicePrivilege -->
546
547<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800548 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800549 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700550 <table class="test-table">
551 <thead><tr>
552 <th>id</th>
553 <th>user</th>
554 <th>slice</th>
555 <th>role</th>
556 </tr></thead>
557 <tbody></tbody>
558 </table>
559</script>
560
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>
566</script>
567
568<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800569 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700570 <form>
571 <table>
572 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
573 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
574 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800575 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700576 </table>
577 </form>
578</script>
579
580<!-- Sliver -->
581
582<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800583 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800584 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700585 <table class="test-table">
586 <thead><tr>
587 <th>id</th>
588 <th>name</th>
589 <th>instance_id</th>
590 <th>instance_name</th>
591 <th>image</th>
592 <th>creator</th>
593 <th>slice</th>
594 <th>node</th>
595 <th>deploymentNetwork</th>
596 <th>flavor</th>
597 <th>userData</th>
598 </tr></thead>
599 <tbody></tbody>
600 </table>
601</script>
602
603
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>
616</script>
617
618<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800619 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700620 <form>
621 <table>
622 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
623 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
624 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800625 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
626 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Baker98e31772014-11-04 23:50:45 -0800627 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
628 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800629 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700630 </table>
631 </form>
632</script>
633
634<!-- User -->
635
636<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800637 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800638 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700639 <table class="test-table">
640 <thead><tr>
641 <th>id</th>
642 <th>username</th>
643 <th>firstname</th>
644 <th>lastname</th>
645 <th>phone</th>
646 <th>user_url</th>
647 <th>site</th>
648 </tr></thead>
649 <tbody></tbody>
650 </table>
651</script>
652
653
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>
Scott Baker10badd32014-10-31 00:18:24 -0700661 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700662</script>
663
664<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800665 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700666 <form>
667 <table>
668 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
669 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
670 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
671 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
672 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800673 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800674 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700675 </table>
676 </form>
677</script>
678
Scott Baker10badd32014-10-31 00:18:24 -0700679<!-- UserDeployments -->
680
681<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800682 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800683 <%= xosInlineListButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700684 <table class="test-table">
685 <thead><tr>
686 <th>id</th>
687 <th>user</th>
688 <th>deployment</th>
689 <th>kuser_id</th>
690 </tr></thead>
691 <tbody></tbody>
692 </table>
693</script>
694
Scott Baker10badd32014-10-31 00:18:24 -0700695<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>
700</script>
701
702<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800703 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker10badd32014-10-31 00:18:24 -0700704 <form>
705 <table>
706 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
707 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
708 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800709 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700710 </table>
711 </form>
712</script>
Scott Bakere49f08c2014-11-07 13:01:43 -0800713
714<script>
715xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker7ce23652014-11-07 16:40:30 -0800716xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800717</script>