blob: 94fb0f8e27a3438aff1e77e813f7d938ca92a3c2 [file] [log] [blame]
Scott Bakerc1e681e2014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker28a65442014-11-03 23:54:59 -08003<script type="text/template" id="xos-error-template">
Scott Bakerc1e681e2014-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 Baker28a65442014-11-03 23:54:59 -080012<script type="text/template" id="xos-success-template">
Scott Bakerc1e681e2014-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 Baker100b0a32014-11-04 09:34:17 -080021<script type="text/template" id="xos-navbutton-old">
Scott Baker28a65442014-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 Baker50282372014-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 Baker17390d22014-11-05 21:11:50 -080034<script type="text/template" id="xos-status-template">
35 <%= what %>: [<%= success %>] <%= statusText %> (<%= status %>)
36</script>
37
Scott Baker76d7b622014-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 Baker100b0a32014-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 Baker50282372014-11-04 15:41:47 -080060 </li>
Scott Baker100b0a32014-11-04 09:34:17 -080061</script>
62
Scott Baker09ed3e02014-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 Baker7e0e6b92014-10-30 16:10:16 -070072<!-- Deployment -->
73
74<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -080075 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -070076 <table class="test-table">
77 <thead><tr>
78 <th>id</th>
79 <th>name</th>
80 <th>backend</th>
81 <th>admin_tenant</th>
82 <th># sites</th>
83 </tr></thead>
84 <tbody></tbody>
85 </table>
86</script>
87
88
89<script type="text/template" id="xosAdmin-deployment-listitem-template">
90 <td class="objectLink"><%= id %></td>
91 <td class="objectLink"><%= name %></td>
92 <td><%= backend_type %></td>
93 <td><%= admin_tenant %></td>
94 <td><%= sites.length %></td>
95</script>
96
97<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -080098 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Baker17390d22014-11-05 21:11:50 -080099 <form>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700100 <table>
101 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
102 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
103 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800104 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700105 </table>
106 </form>
Scott Baker17390d22014-11-05 21:11:50 -0800107</script>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700108
109<!-- Image -->
110
111<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800112 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700113 <table class="test-table">
114 <thead><tr>
115 <th>id</th>
116 <th>name</th>
117 <th>disk_format</th>
118 <th>container_format</th>
119 <th>path</th>
120 </tr></thead>
121 <tbody></tbody>
122 </table>
123</script>
124
125<script type="text/template" id="xosAdmin-image-listitem-template">
126 <td class="objectLink"><%= id %></td>
127 <td class="objectLink"><%= name %></td>
128 <td><%= disk_format %></td>
129 <td><%= container_format %></td>
130 <td><%= path %></td>
131</script>
132
133<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800134 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700135 <form>
136 <table>
137 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
138 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
139 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800140 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700141 </table>
142 </form>
143</script>
144
145<!-- NetworkTemplate -->
146
147<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800148 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700149 <table class="test-table">
150 <thead><tr>
151 <th>id</th>
152 <th>name</th>
153 <th>description</th>
154 <th>visibility</th>
155 <th>translation</th>
156 <th>sharedNetworkName</th>
157 <th>sharedNetworkId</th>
158 </tr></thead>
159 <tbody></tbody>
160 </table>
161</script>
162
163
164<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
165 <td class="objectLink"><%= id %></td>
166 <td class="objectLink"><%= name %></td>
167 <td><%= description %></td>
168 <td><%= visibility %></td>
169 <td><%= translation %></td>
170 <td><%= sharedNetworkName %></td>
171 <td><%= sharedNetworkId %></td>
172</script>
173
174<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800175 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700176 <form>
177 <table>
178 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
179 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
180 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
181 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
182 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
183 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800184 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700185 </table>
186 </form>
187</script>
188
189<!-- Network -->
190
191<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800192 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700193 <table class="test-table">
194 <thead><tr>
195 <th>id</th>
196 <th>name</th>
197 <th>template</th>
198 <th>ports</th>
199 <th>labels</th>
200 <th>owner</th>
201 </tr></thead>
202 <tbody></tbody>
203 </table>
204</script>
205
206<script type="text/template" id="xosAdmin-network-listitem-template">
207 <td class="objectLink"><%= id %></td>
208 <td class="objectLink"><%= name %></td>
209 <td><%= idToName(template,"networkTemplates","name") %></td>
210 <td><%= ports %></td>
211 <td><%= labels %></td>
212 <td><%= idToName(owner,"slices","name") %></td>
213</script>
214
215<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800216 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700217 <form>
218 <table>
219 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800220 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700221 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
222 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800223 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800224 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700225 </table>
226 </form>
227</script>
228
229<!-- NetworkSliver -->
230
231<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800232 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700233 <table class="test-table">
234 <thead><tr>
235 <th>id</th>
236 <th>network</th>
237 <th>sliver</th>
238 <th>ip</th>
239 <th>port_id</th>
240 </tr></thead>
241 <tbody></tbody>
242 </table>
243</script>
244
245<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
246 <td class="objectLink"><%= id %></td>
247 <td><%= idToName(network,"networks","name") %></td>
248 <td><%= idToName(sliver,"slivers","name") %></td>
249 <td><%= ip %></td>
250 <td><%= port_id %></td>
251</script>
252
253<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800254 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700255 <form>
256 <table>
257 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
258 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
259 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
260 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800261 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700262 </table>
263 </form>
264</script>
265
Scott Bakercefee292014-10-31 16:43:07 -0700266<!-- NetworkDeployment -->
267
268<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800269 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakercefee292014-10-31 16:43:07 -0700270 <table class="test-table">
271 <thead><tr>
272 <th>id</th>
273 <th>network</th>
274 <th>deployment</th>
275 <th>net_id</th>
276 </tr></thead>
277 <tbody></tbody>
278 </table>
279</script>
280
281<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
282 <td class="objectLink"><%= id %></td>
283 <td><%= idToName(network,"networks","name") %></td>
284 <td><%= idToName(deployment,"deployments","name") %></td>
285 <td><%= net_id %></td>
286</script>
287
288<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800289 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakercefee292014-10-31 16:43:07 -0700290 <form>
291 <table>
292 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
293 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
294 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800295 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700296 </table>
297 </form>
298</script>
299
Scott Baker7e0e6b92014-10-30 16:10:16 -0700300<!-- Node -->
301
302<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800303 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700304 <table class="test-table">
305 <thead><tr>
306 <th>id</th>
307 <th>name</th>
308 <th>site</th>
309 <th>deployment</th>
310 </tr></thead>
311 <tbody></tbody>
312 </table>
313</script>
314
315
316<script type="text/template" id="xosAdmin-node-listitem-template">
317 <td class="objectLink"><%= id %></td>
318 <td class="objectLink"><%= name %></td>
319 <td><%= idToName(site,"sites","name") %></td>
320 <td><%= idToName(deployment,"deployments","name") %></td>
321</script>
322
323<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800324 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700325 <form>
326 <table>
327 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800328 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
329 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800330 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700331 </table>
332 </form>
333</script>
334
335<!-- SliceRole -->
336
337<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800338 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700339 <table class="test-table">
340 <thead><tr>
341 <th>id</th>
342 <th>role</th>
343 </tr></thead>
344 <tbody></tbody>
345 </table>
346</script>
347
348
349<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
350 <td class="objectLink"><%= id %></td>
351 <td><%= role %></td>
352</script>
353
354<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800355 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700356 <form>
357 <table>
358 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800359 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700360 </table>
361 </form>
362</script>
363
364<!-- Service -->
365
366<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800367 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700368 <table class="test-table">
369 <thead><tr>
370 <th>id</th>
371 <th>name</th>
372 <th>description</th>
373 <th>enabled</th>
374 <th>versionNumber</th>
375 <th>published</th>
376 </tr></thead>
377 <tbody></tbody>
378 </table>
379</script>
380
381
382<script type="text/template" id="xosAdmin-service-listitem-template">
383 <td class="objectLink"><%= id %></td>
384 <td class="objectLink"><%= name %></td>
385 <td><%= description %></td>
386 <td><%= enabled %></td>
387 <td><%= versionNumber %></td>
388 <td><%= published %></td>
389</script>
390
391<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800392 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700393 <form>
394 <table>
395 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
396 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
397 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800398 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700399 </table>
400 </form>
401</script>
402
403<!-- Site -->
404
405<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800406 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700407 <table class="test-table">
408 <thead><tr>
409 <th>id</th>
410 <th>name</th>
411 <th>url</th>
412 <th>enabled</th>
413 <th>login_base</th>
414 <th>is_public</th>
415 <th>abbreviated_name</th>
416 </tr></thead>
417 <tbody></tbody>
418 </table>
419</script>
420
421<script type="text/template" id="xosAdmin-site-listitem-template">
422 <td class="objectLink"><%= id %></td>
423 <td class="objectLink"><%= name %></td>
424 <td><%= site_url %></td>
425 <td><%= enabled %></td>
426 <td><%= login_base %></td>
427 <td><%= is_public %></td>
428 <td><%= abbreviated_name %></td>
429</script>
430
431<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800432 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700433 <form>
434 <table>
435 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800436 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700437 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800438 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
439 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700440 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800441 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700442 </table>
443 </form>
444</script>
445
446<!-- Slice -->
447
448<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800449 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700450 <table class="test-table">
451 <thead><tr>
452 <th>id</th>
453 <th>name</th>
454 <th>enabled</th>
455 <th>omf_friendly</th>
456 <th>description</th>
457 <th>slice_url</th>
458 <th>site</th>
459 <th>max_slivers</th>
460 <th>service</th>
461 </tr></thead>
462 <tbody></tbody>
463 </table>
464</script>
465
466<script type="text/template" id="xosAdmin-slice-listitem-template">
467 <td class="objectLink"><%= id %></td>
468 <td class="objectLink"><%= name %></td>
469 <td><%= enabled %></td>
470 <td><%= omf_friendly %></td>
471 <td><%= description %></td>
472 <td><%= slice_url %></td>
473 <td><%= idToName(site,"sites","name") %></td>
474 <td><%= max_slivers %></td>
475 <td><%= idToName(service,"services","name") %></td>
476</script>
477
478<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800479 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700480 <form>
481 <table>
482 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
483 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
484 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
485 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
486 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800487 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700488 </table>
489 </form>
490</script>
491
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800492<!-- SliceDeployment -->
Scott Baker7e0e6b92014-10-30 16:10:16 -0700493
494<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800495 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700496 <table class="test-table">
497 <thead><tr>
498 <th>id</th>
499 <th>slice</th>
500 <th>deployment</th>
501 <th>tenant_id</th>
502 </tr></thead>
503 <tbody></tbody>
504 </table>
505</script>
506
507<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
508 <td class="objectLink"><%= id %></td>
509 <td><%= idToName(slice,"slices","name") %></td>
510 <td><%= idToName(deployment,"deployments","name") %></td>
511 <td><%= tenant_id %></td>
512</script>
513
514<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800515 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700516 <form>
517 <table>
518 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
519 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
520 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800521 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700522 </table>
523 </form>
524</script>
525
526<!-- SlicePrivilege -->
527
528<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800529 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700530 <table class="test-table">
531 <thead><tr>
532 <th>id</th>
533 <th>user</th>
534 <th>slice</th>
535 <th>role</th>
536 </tr></thead>
537 <tbody></tbody>
538 </table>
539</script>
540
541<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
542 <td class="objectLink"><%= id %></td>
543 <td><%= idToName(user,"users","username") %></td>
544 <td><%= idToName(slice,"slices","name") %></td>
545 <td><%= idToName(role,"sliceRoles","role") %></td>
546</script>
547
548<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800549 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700550 <form>
551 <table>
552 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
553 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
554 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800555 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700556 </table>
557 </form>
558</script>
559
560<!-- Sliver -->
561
562<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800563 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700564 <table class="test-table">
565 <thead><tr>
566 <th>id</th>
567 <th>name</th>
568 <th>instance_id</th>
569 <th>instance_name</th>
570 <th>image</th>
571 <th>creator</th>
572 <th>slice</th>
573 <th>node</th>
574 <th>deploymentNetwork</th>
575 <th>flavor</th>
576 <th>userData</th>
577 </tr></thead>
578 <tbody></tbody>
579 </table>
580</script>
581
582
583<script type="text/template" id="xosAdmin-sliver-listitem-template">
584 <td class="objectLink"><%= id %></td>
585 <td class="objectLink"><%= name %></td>
586 <td><%= instance_id %></td>
587 <td><%= instance_name %></td>
588 <td><%= idToName(image,"images","name") %></td>
589 <td><%= idToName(creator,"users","name") %></td>
590 <td><%= idToName(slice,"slices","name") %></td>
591 <td><%= idToName(node,"nodes","name") %></td>
592 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
593 <td><%= flavor %></td>
594 <td><%= userData %></td>
595</script>
596
597<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800598 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700599 <form>
600 <table>
601 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
602 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
603 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800604 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
605 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Bakered12d512014-11-04 23:50:45 -0800606 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
607 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800608 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700609 </table>
610 </form>
611</script>
612
613<!-- User -->
614
615<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800616 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700617 <table class="test-table">
618 <thead><tr>
619 <th>id</th>
620 <th>username</th>
621 <th>firstname</th>
622 <th>lastname</th>
623 <th>phone</th>
624 <th>user_url</th>
625 <th>site</th>
626 </tr></thead>
627 <tbody></tbody>
628 </table>
629</script>
630
631
632<script type="text/template" id="xosAdmin-user-listitem-template">
633 <td class="objectLink"><%= id %></td>
634 <td class="objectLink"><%= username %></td>
635 <td><%= firstname %></td>
636 <td><%= lastname %></td>
637 <td><%= phone %></td>
638 <td><%= user_url %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700639 <td><%= idToName(site,"sites","name") %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700640</script>
641
642<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800643 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700644 <form>
645 <table>
646 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
647 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
648 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
649 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
650 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800651 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800652 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700653 </table>
654 </form>
655</script>
656
Scott Baker84e01fe2014-10-31 00:18:24 -0700657<!-- UserDeployments -->
658
659<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800660 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker84e01fe2014-10-31 00:18:24 -0700661 <table class="test-table">
662 <thead><tr>
663 <th>id</th>
664 <th>user</th>
665 <th>deployment</th>
666 <th>kuser_id</th>
667 </tr></thead>
668 <tbody></tbody>
669 </table>
670</script>
671
Scott Baker84e01fe2014-10-31 00:18:24 -0700672<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
673 <td class="objectLink"><%= id %></td>
674 <td><%= idToName(user,"users","username") %></td>
675 <td><%= idToName(deployment,"deployments","name") %></td>
676 <td><%= kuser_id %></td>
677</script>
678
679<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800680 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker84e01fe2014-10-31 00:18:24 -0700681 <form>
682 <table>
683 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
684 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
685 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800686 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700687 </table>
688 </form>
689</script>
Scott Baker09ed3e02014-11-07 13:01:43 -0800690
691<script>
692xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
693</script>