blob: d5435025b6853d1255ed1ec4c9f21b4cdc28bc68 [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 Baker17390d22014-11-05 21:11:50 -080025<script type="text/template" id="xos-status-template">
Scott Baker1c5d4ee2014-11-14 16:13:43 -080026 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
Scott Baker17390d22014-11-05 21:11:50 -080027</script>
28
Scott Baker76d7b622014-11-04 23:20:48 -080029<script type="text/template" id="xos-tabs-template">
30 <ul class="xos-nav-list">
31 <% _.each(tabs, function(tab) { %>
32 <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
33 <% }); %>
34 </ul>
35</script>
36
37<script type="text/template" id="xos-title-list">
38 <h3><%= title %></h3>
39</script>
40
41<script type="text/template" id="xos-title-detail">
42 <h3><%= title %></h3>
43</script>
44
Scott Baker100b0a32014-11-04 09:34:17 -080045<script type="text/template" id="xos-navbutton">
46 <li>
47 <a href="<%= routeUrl %>">
48 <i class="<%= iconClass %>"></i>
49 <%= name %>
50 </a>
Scott Baker50282372014-11-04 15:41:47 -080051 </li>
Scott Baker100b0a32014-11-04 09:34:17 -080052</script>
53
Scott Baker09ed3e02014-11-07 13:01:43 -080054<script type="text/template" id="xos-inline-detail-buttons-template">
55 <tr>
56 <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button>
57 <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button>
58 <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button>
59 </td>
60 </tr>
61</script>
62
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080063<script type="text/template" id="xos-inline-list-buttons-template">
64 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
65 </td>
66 </tr>
67</script>
68
Scott Baker7e0e6b92014-10-30 16:10:16 -070069<!-- Deployment -->
70
71<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -080072 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080073 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -070074 <table class="test-table">
75 <thead><tr>
76 <th>id</th>
77 <th>name</th>
78 <th>backend</th>
79 <th>admin_tenant</th>
80 <th># sites</th>
81 </tr></thead>
82 <tbody></tbody>
83 </table>
84</script>
85
86
87<script type="text/template" id="xosAdmin-deployment-listitem-template">
88 <td class="objectLink"><%= id %></td>
89 <td class="objectLink"><%= name %></td>
90 <td><%= backend_type %></td>
91 <td><%= admin_tenant %></td>
92 <td><%= sites.length %></td>
93</script>
94
95<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -080096 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Baker17390d22014-11-05 21:11:50 -080097 <form>
Scott Baker7e0e6b92014-10-30 16:10:16 -070098 <table>
99 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
100 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
101 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800102 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700103 </table>
104 </form>
Scott Baker17390d22014-11-05 21:11:50 -0800105</script>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700106
107<!-- Image -->
108
109<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800110 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800111 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700112 <table class="test-table">
113 <thead><tr>
114 <th>id</th>
115 <th>name</th>
116 <th>disk_format</th>
117 <th>container_format</th>
118 <th>path</th>
119 </tr></thead>
120 <tbody></tbody>
121 </table>
122</script>
123
124<script type="text/template" id="xosAdmin-image-listitem-template">
125 <td class="objectLink"><%= id %></td>
126 <td class="objectLink"><%= name %></td>
127 <td><%= disk_format %></td>
128 <td><%= container_format %></td>
129 <td><%= path %></td>
130</script>
131
132<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800133 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700134 <form>
135 <table>
136 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
137 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
138 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800139 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700140 </table>
141 </form>
142</script>
143
144<!-- NetworkTemplate -->
145
146<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800147 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800148 <%= xosInlineListButtonsTemplate() %>
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 Baker47798362014-11-12 01:15:52 -0800193 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700194 <table class="test-table">
195 <thead><tr>
196 <th>id</th>
197 <th>name</th>
198 <th>template</th>
199 <th>ports</th>
200 <th>labels</th>
201 <th>owner</th>
202 </tr></thead>
203 <tbody></tbody>
204 </table>
205</script>
206
207<script type="text/template" id="xosAdmin-network-listitem-template">
208 <td class="objectLink"><%= id %></td>
209 <td class="objectLink"><%= name %></td>
210 <td><%= idToName(template,"networkTemplates","name") %></td>
211 <td><%= ports %></td>
212 <td><%= labels %></td>
213 <td><%= idToName(owner,"slices","name") %></td>
214</script>
215
216<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800217 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700218 <form>
219 <table>
220 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800221 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700222 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
223 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800224 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800225 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700226 </table>
227 </form>
228</script>
229
230<!-- NetworkSliver -->
231
232<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800233 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800234 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700235 <table class="test-table">
236 <thead><tr>
237 <th>id</th>
238 <th>network</th>
239 <th>sliver</th>
240 <th>ip</th>
241 <th>port_id</th>
242 </tr></thead>
243 <tbody></tbody>
244 </table>
245</script>
246
247<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
248 <td class="objectLink"><%= id %></td>
249 <td><%= idToName(network,"networks","name") %></td>
250 <td><%= idToName(sliver,"slivers","name") %></td>
251 <td><%= ip %></td>
252 <td><%= port_id %></td>
253</script>
254
255<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800256 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700257 <form>
258 <table>
259 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
260 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
261 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
262 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800263 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700264 </table>
265 </form>
266</script>
267
Scott Bakercefee292014-10-31 16:43:07 -0700268<!-- NetworkDeployment -->
269
270<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800271 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800272 <%= xosInlineListButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700273 <table class="test-table">
274 <thead><tr>
275 <th>id</th>
276 <th>network</th>
277 <th>deployment</th>
278 <th>net_id</th>
279 </tr></thead>
280 <tbody></tbody>
281 </table>
282</script>
283
284<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
285 <td class="objectLink"><%= id %></td>
286 <td><%= idToName(network,"networks","name") %></td>
287 <td><%= idToName(deployment,"deployments","name") %></td>
288 <td><%= net_id %></td>
289</script>
290
291<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800292 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakercefee292014-10-31 16:43:07 -0700293 <form>
294 <table>
295 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
296 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
297 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800298 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700299 </table>
300 </form>
301</script>
302
Scott Baker7e0e6b92014-10-30 16:10:16 -0700303<!-- Node -->
304
305<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800306 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800307 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700308 <table class="test-table">
309 <thead><tr>
310 <th>id</th>
311 <th>name</th>
312 <th>site</th>
313 <th>deployment</th>
314 </tr></thead>
315 <tbody></tbody>
316 </table>
317</script>
318
319
320<script type="text/template" id="xosAdmin-node-listitem-template">
321 <td class="objectLink"><%= id %></td>
322 <td class="objectLink"><%= name %></td>
323 <td><%= idToName(site,"sites","name") %></td>
324 <td><%= idToName(deployment,"deployments","name") %></td>
325</script>
326
327<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800328 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700329 <form>
330 <table>
331 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800332 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
333 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800334 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700335 </table>
336 </form>
337</script>
338
339<!-- SliceRole -->
340
341<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800342 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800343 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700344 <table class="test-table">
345 <thead><tr>
346 <th>id</th>
347 <th>role</th>
348 </tr></thead>
349 <tbody></tbody>
350 </table>
351</script>
352
353
354<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
355 <td class="objectLink"><%= id %></td>
356 <td><%= role %></td>
357</script>
358
359<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800360 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700361 <form>
362 <table>
363 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800364 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700365 </table>
366 </form>
367</script>
368
369<!-- Service -->
370
371<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800372 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800373 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700374 <table class="test-table">
375 <thead><tr>
376 <th>id</th>
377 <th>name</th>
378 <th>description</th>
379 <th>enabled</th>
380 <th>versionNumber</th>
381 <th>published</th>
382 </tr></thead>
383 <tbody></tbody>
384 </table>
385</script>
386
387
388<script type="text/template" id="xosAdmin-service-listitem-template">
389 <td class="objectLink"><%= id %></td>
390 <td class="objectLink"><%= name %></td>
391 <td><%= description %></td>
392 <td><%= enabled %></td>
393 <td><%= versionNumber %></td>
394 <td><%= published %></td>
395</script>
396
397<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800398 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700399 <form>
400 <table>
401 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
402 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
403 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800404 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700405 </table>
406 </form>
407</script>
408
409<!-- Site -->
410
411<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800412 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800413 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700414 <table class="test-table">
415 <thead><tr>
416 <th>id</th>
417 <th>name</th>
418 <th>url</th>
419 <th>enabled</th>
420 <th>login_base</th>
421 <th>is_public</th>
422 <th>abbreviated_name</th>
423 </tr></thead>
424 <tbody></tbody>
425 </table>
426</script>
427
428<script type="text/template" id="xosAdmin-site-listitem-template">
429 <td class="objectLink"><%= id %></td>
430 <td class="objectLink"><%= name %></td>
431 <td><%= site_url %></td>
432 <td><%= enabled %></td>
433 <td><%= login_base %></td>
434 <td><%= is_public %></td>
435 <td><%= abbreviated_name %></td>
436</script>
437
438<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800439 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700440 <form>
441 <table>
442 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800443 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700444 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800445 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
446 <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 -0700447 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800448 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700449 </table>
450 </form>
451</script>
452
453<!-- Slice -->
454
455<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800456 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800457 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700458 <table class="test-table">
459 <thead><tr>
460 <th>id</th>
461 <th>name</th>
462 <th>enabled</th>
463 <th>omf_friendly</th>
464 <th>description</th>
465 <th>slice_url</th>
466 <th>site</th>
467 <th>max_slivers</th>
468 <th>service</th>
469 </tr></thead>
470 <tbody></tbody>
471 </table>
472</script>
473
474<script type="text/template" id="xosAdmin-slice-listitem-template">
475 <td class="objectLink"><%= id %></td>
476 <td class="objectLink"><%= name %></td>
477 <td><%= enabled %></td>
478 <td><%= omf_friendly %></td>
479 <td><%= description %></td>
480 <td><%= slice_url %></td>
481 <td><%= idToName(site,"sites","name") %></td>
482 <td><%= max_slivers %></td>
483 <td><%= idToName(service,"services","name") %></td>
484</script>
485
486<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800487 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700488 <form>
489 <table>
490 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker47798362014-11-12 01:15:52 -0800491 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700492 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
493 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
494 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
495 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800496 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700497 </table>
498 </form>
499</script>
500
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800501<!-- SliceDeployment -->
Scott Baker7e0e6b92014-10-30 16:10:16 -0700502
503<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800504 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800505 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700506 <table class="test-table">
507 <thead><tr>
508 <th>id</th>
509 <th>slice</th>
510 <th>deployment</th>
511 <th>tenant_id</th>
512 </tr></thead>
513 <tbody></tbody>
514 </table>
515</script>
516
517<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
518 <td class="objectLink"><%= id %></td>
519 <td><%= idToName(slice,"slices","name") %></td>
520 <td><%= idToName(deployment,"deployments","name") %></td>
521 <td><%= tenant_id %></td>
522</script>
523
524<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800525 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700526 <form>
527 <table>
528 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
529 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
530 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800531 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700532 </table>
533 </form>
534</script>
535
536<!-- SlicePrivilege -->
537
538<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800539 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800540 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700541 <table class="test-table">
542 <thead><tr>
543 <th>id</th>
544 <th>user</th>
545 <th>slice</th>
546 <th>role</th>
547 </tr></thead>
548 <tbody></tbody>
549 </table>
550</script>
551
552<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
553 <td class="objectLink"><%= id %></td>
554 <td><%= idToName(user,"users","username") %></td>
555 <td><%= idToName(slice,"slices","name") %></td>
556 <td><%= idToName(role,"sliceRoles","role") %></td>
557</script>
558
559<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800560 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700561 <form>
562 <table>
563 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
564 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
565 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800566 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700567 </table>
568 </form>
569</script>
570
571<!-- Sliver -->
572
573<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800574 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800575 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700576 <table class="test-table">
577 <thead><tr>
578 <th>id</th>
579 <th>name</th>
580 <th>instance_id</th>
581 <th>instance_name</th>
582 <th>image</th>
583 <th>creator</th>
584 <th>slice</th>
585 <th>node</th>
586 <th>deploymentNetwork</th>
587 <th>flavor</th>
588 <th>userData</th>
589 </tr></thead>
590 <tbody></tbody>
591 </table>
592</script>
593
594
595<script type="text/template" id="xosAdmin-sliver-listitem-template">
596 <td class="objectLink"><%= id %></td>
597 <td class="objectLink"><%= name %></td>
598 <td><%= instance_id %></td>
599 <td><%= instance_name %></td>
600 <td><%= idToName(image,"images","name") %></td>
601 <td><%= idToName(creator,"users","name") %></td>
602 <td><%= idToName(slice,"slices","name") %></td>
603 <td><%= idToName(node,"nodes","name") %></td>
604 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
605 <td><%= flavor %></td>
606 <td><%= userData %></td>
607</script>
608
609<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800610 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700611 <form>
612 <table>
613 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
614 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
615 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800616 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
617 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Bakered12d512014-11-04 23:50:45 -0800618 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
619 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800620 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700621 </table>
622 </form>
623</script>
624
625<!-- User -->
626
627<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800628 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800629 <%= xosInlineListButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700630 <table class="test-table">
631 <thead><tr>
632 <th>id</th>
633 <th>username</th>
634 <th>firstname</th>
635 <th>lastname</th>
636 <th>phone</th>
637 <th>user_url</th>
638 <th>site</th>
639 </tr></thead>
640 <tbody></tbody>
641 </table>
642</script>
643
644
645<script type="text/template" id="xosAdmin-user-listitem-template">
646 <td class="objectLink"><%= id %></td>
647 <td class="objectLink"><%= username %></td>
648 <td><%= firstname %></td>
649 <td><%= lastname %></td>
650 <td><%= phone %></td>
651 <td><%= user_url %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700652 <td><%= idToName(site,"sites","name") %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700653</script>
654
655<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800656 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700657 <form>
658 <table>
659 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
660 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
661 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
662 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
663 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800664 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800665 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700666 </table>
667 </form>
668</script>
669
Scott Baker84e01fe2014-10-31 00:18:24 -0700670<!-- UserDeployments -->
671
672<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800673 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker47798362014-11-12 01:15:52 -0800674 <%= xosInlineListButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700675 <table class="test-table">
676 <thead><tr>
677 <th>id</th>
678 <th>user</th>
679 <th>deployment</th>
680 <th>kuser_id</th>
681 </tr></thead>
682 <tbody></tbody>
683 </table>
684</script>
685
Scott Baker84e01fe2014-10-31 00:18:24 -0700686<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
687 <td class="objectLink"><%= id %></td>
688 <td><%= idToName(user,"users","username") %></td>
689 <td><%= idToName(deployment,"deployments","name") %></td>
690 <td><%= kuser_id %></td>
691</script>
692
693<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800694 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker84e01fe2014-10-31 00:18:24 -0700695 <form>
696 <table>
697 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
698 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
699 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800700 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700701 </table>
702 </form>
703</script>
Scott Baker09ed3e02014-11-07 13:01:43 -0800704
705<script>
706xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Bakerc9d0dcb2014-11-07 16:40:30 -0800707xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
Scott Baker09ed3e02014-11-07 13:01:43 -0800708</script>