blob: 8ca18db45ba3b5397afcfc038c21d6385529de6f [file] [log] [blame]
Scott Bakerfdaee922014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker562d5952014-11-24 23:26:12 -08003<script type="text/template" id="xos-error-response">
4 <h5>Error</h5>
5 <table>
6 <tr><td>error:</td><td><%= error %></td></tr>
7 <tr><td>check:</td><td><%= specific_error %></td></tr>
8 </table>
9 <h5>Details:</h5>
10 <table>
11 <tbody>
12 <% _.each(reasons, function(element, index) { %>
13 <tr><td><%= index %></td><td><%= element %></td></tr>
14 <% }); %>
15 </tbody>
16 </table>
17</script>
18
Scott Baker92152752014-12-01 17:06:31 -080019<script type="text/template" id="xos-error-rawresponse">
20 <h5>Error</h5>
21 <pre>The server returned:
22"<%= responseText %>"</pre>
23</script>
24
Scott Baker416f0872014-11-03 23:54:59 -080025<script type="text/template" id="xos-error-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080026 <button id="close-error-box">Close Error Message</button>
27 <h3>An error has occurred.</h3>
28 <table class="test-error-table">
29 <tr><td>Code:</td><td><%= status %></td></tr>
30 <tr><td>Message:</td><td><%= statusText %></td></tr>
31 </table>
32</script>
33
Scott Baker416f0872014-11-03 23:54:59 -080034<script type="text/template" id="xos-success-template">
Scott Bakerfdaee922014-11-03 09:43:23 -080035 <button id="close-success-box">Close Success Message</button>
36 <h3>Success!</h3>
37 <table class="test-success-table">
38 <tr><td>Code:</td><td><%= status %></td></tr>
39 <tr><td>Message:</td><td><%= statusText %></td></tr>
40 </table>
41</script>
42
Scott Baker90004d52014-11-04 09:34:17 -080043<script type="text/template" id="xos-navbutton-old">
Scott Baker416f0872014-11-03 23:54:59 -080044 <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br>
45</script>
46
Scott Bakere2e47fb2014-11-05 21:11:50 -080047<script type="text/template" id="xos-status-template">
Scott Baker01c9d612014-11-14 16:13:43 -080048 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
Scott Bakere2e47fb2014-11-05 21:11:50 -080049</script>
50
Scott Baker9d37d562014-11-04 23:20:48 -080051<script type="text/template" id="xos-tabs-template">
52 <ul class="xos-nav-list">
53 <% _.each(tabs, function(tab) { %>
54 <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li>
55 <% }); %>
56 </ul>
57</script>
58
59<script type="text/template" id="xos-title-list">
Scott Baker13e6f0d2014-11-18 17:02:07 -080060 <h3><img src="/static/img/brokencircle.gif" height=16 width=16 id="xos-list-title-spinner"> <%= title %></h3>
Scott Baker9d37d562014-11-04 23:20:48 -080061</script>
62
63<script type="text/template" id="xos-title-detail">
64 <h3><%= title %></h3>
65</script>
66
Scott Baker90004d52014-11-04 09:34:17 -080067<script type="text/template" id="xos-navbutton">
68 <li>
69 <a href="<%= routeUrl %>">
70 <i class="<%= iconClass %>"></i>
71 <%= name %>
72 </a>
Scott Baker0bf96b22014-11-04 15:41:47 -080073 </li>
Scott Baker90004d52014-11-04 09:34:17 -080074</script>
75
Scott Bakere49f08c2014-11-07 13:01:43 -080076<script type="text/template" id="xos-inline-detail-buttons-template">
77 <tr>
78 <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button>
79 <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button>
80 <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button>
Scott Baker13e6f0d2014-11-18 17:02:07 -080081 <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button>
Scott Bakere49f08c2014-11-07 13:01:43 -080082 </td>
83 </tr>
84</script>
85
Scott Baker250ba6e2014-12-04 17:23:27 -080086<script type="text/template" id="xos-list-header-template">
87 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
88 <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button>
89</script>
90
91<script type="text/template" id="xos-list-footer-template">
Scott Baker07cdef02014-12-08 11:13:43 -080092 <% console.log(model); %>
93 <a href="<%= addChildHash %>">Add...</a>
Scott Baker7ce23652014-11-07 16:40:30 -080094</script>
95
Scott Bakerc91396e2014-12-02 10:49:04 -080096<script type="text/template" id="xos-delete-button-template">
Scott Baker29e8a2c2014-12-02 17:59:02 -080097 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
Scott Bakerc91396e2014-12-02 10:49:04 -080098</script>
99
100<script type="text/template" id="xos-detail-link-template">
101 <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
102</script>
103
Scott Baker0a636cb2014-12-07 22:27:09 -0800104<script type="text/template" id="xos-add-template">
105 <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
106 <form>
107 <table>
108 <% _.each(addFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800109 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800110 <% if (fieldName in foreignFields) { %>
111 <td><%= idToSelect(fieldName, window[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
112 <% } else if (inputType[fieldName] == "checkbox") { %>
113 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
114 <% } else { %>
115 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
116 <% } %>
117 </tr>
118 <% }); %>
119 <%= xosInlineDetailButtonsTemplate() %>
120 </table>
121 </form>
122</script>
123
124<script type="text/template" id="xos-detail-template">
125 <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
126 <form>
127 <table>
128 <% console.log(model); _.each(detailFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800129 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800130 <% if (fieldName in foreignFields) { %>
131 <td><%= idToSelect(fieldName, window[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
132 <% } else if (inputType[fieldName] == "checkbox") { %>
133 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
134 <% } else { %>
135 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
136 <% } %>
137 </tr>
138 <% }); %>
139 <%= xosInlineDetailButtonsTemplate() %>
140 </table>
141 </form>
142</script>
143
Scott Bakerfc61b012014-10-30 16:10:16 -0700144<!-- Deployment -->
145
146<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800147 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800148 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700149 <table class="test-table">
150 <thead><tr>
151 <th>id</th>
152 <th>name</th>
153 <th>backend</th>
154 <th>admin_tenant</th>
155 <th># sites</th>
Scott Bakerc91396e2014-12-02 10:49:04 -0800156 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700157 </tr></thead>
158 <tbody></tbody>
159 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800160 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700161</script>
162
163
164<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800165 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
166 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700167 <td><%= backend_type %></td>
168 <td><%= admin_tenant %></td>
Scott Baker13e6f0d2014-11-18 17:02:07 -0800169 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerc91396e2014-12-02 10:49:04 -0800170 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700171</script>
172
Scott Bakerfc61b012014-10-30 16:10:16 -0700173<!-- Image -->
174
175<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800176 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800177 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700178 <table class="test-table">
179 <thead><tr>
180 <th>id</th>
181 <th>name</th>
182 <th>disk_format</th>
183 <th>container_format</th>
184 <th>path</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800185 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700186 </tr></thead>
187 <tbody></tbody>
188 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800189 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700190</script>
191
192<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800193 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
194 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700195 <td><%= disk_format %></td>
196 <td><%= container_format %></td>
197 <td><%= path %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800198 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700199</script>
200
Scott Bakerfc61b012014-10-30 16:10:16 -0700201<!-- NetworkTemplate -->
202
203<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800204 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800205 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700206 <table class="test-table">
207 <thead><tr>
208 <th>id</th>
209 <th>name</th>
210 <th>description</th>
211 <th>visibility</th>
212 <th>translation</th>
213 <th>sharedNetworkName</th>
214 <th>sharedNetworkId</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800215 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700216 </tr></thead>
217 <tbody></tbody>
218 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800219 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700220</script>
221
222
223<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800224 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
225 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700226 <td><%= description %></td>
227 <td><%= visibility %></td>
228 <td><%= translation %></td>
229 <td><%= sharedNetworkName %></td>
230 <td><%= sharedNetworkId %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800231 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700232</script>
233
Scott Bakerfc61b012014-10-30 16:10:16 -0700234<!-- Network -->
235
236<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800237 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800238 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700239 <table class="test-table">
240 <thead><tr>
241 <th>id</th>
242 <th>name</th>
243 <th>template</th>
244 <th>ports</th>
245 <th>labels</th>
246 <th>owner</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800247 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700248 </tr></thead>
249 <tbody></tbody>
250 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800251 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700252</script>
253
254<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800255 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
256 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700257 <td><%= idToName(template,"networkTemplates","name") %></td>
258 <td><%= ports %></td>
259 <td><%= labels %></td>
260 <td><%= idToName(owner,"slices","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800261 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700262</script>
263
Scott Bakerfc61b012014-10-30 16:10:16 -0700264<!-- NetworkSliver -->
265
266<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800267 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800268 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700269 <table class="test-table">
270 <thead><tr>
271 <th>id</th>
272 <th>network</th>
273 <th>sliver</th>
274 <th>ip</th>
275 <th>port_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800276 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700277 </tr></thead>
278 <tbody></tbody>
279 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800280 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700281</script>
282
283<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800284 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700285 <td><%= idToName(network,"networks","name") %></td>
286 <td><%= idToName(sliver,"slivers","name") %></td>
287 <td><%= ip %></td>
288 <td><%= port_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800289 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700290</script>
291
Scott Baker586878e2014-10-31 16:43:07 -0700292<!-- NetworkDeployment -->
293
294<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800295 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800296 <%= xosListHeaderTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700297 <table class="test-table">
298 <thead><tr>
299 <th>id</th>
300 <th>network</th>
301 <th>deployment</th>
302 <th>net_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800303 <th>delete</th>
Scott Baker586878e2014-10-31 16:43:07 -0700304 </tr></thead>
305 <tbody></tbody>
306 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800307 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker586878e2014-10-31 16:43:07 -0700308</script>
309
310<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800311 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700312 <td><%= idToName(network,"networks","name") %></td>
313 <td><%= idToName(deployment,"deployments","name") %></td>
314 <td><%= net_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800315 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700316</script>
317
Scott Bakerfc61b012014-10-30 16:10:16 -0700318<!-- Node -->
319
320<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800321 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800322 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700323 <table class="test-table">
324 <thead><tr>
325 <th>id</th>
326 <th>name</th>
327 <th>site</th>
328 <th>deployment</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800329 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700330 </tr></thead>
331 <tbody></tbody>
332 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800333 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700334</script>
335
336
337<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800338 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
339 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700340 <td><%= idToName(site,"sites","name") %></td>
341 <td><%= idToName(deployment,"deployments","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800342 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700343</script>
344
Scott Bakerfc61b012014-10-30 16:10:16 -0700345<!-- SliceRole -->
346
347<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800348 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800349 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700350 <table class="test-table">
351 <thead><tr>
352 <th>id</th>
353 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800354 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700355 </tr></thead>
356 <tbody></tbody>
357 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800358 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700359</script>
360
Scott Bakerfc61b012014-10-30 16:10:16 -0700361<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800362 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700363 <td><%= role %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800364 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700365</script>
366
Scott Bakerfc61b012014-10-30 16:10:16 -0700367<!-- Service -->
368
369<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800370 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800371 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700372 <table class="test-table">
373 <thead><tr>
374 <th>id</th>
375 <th>name</th>
376 <th>description</th>
377 <th>enabled</th>
378 <th>versionNumber</th>
379 <th>published</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800380 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700381 </tr></thead>
382 <tbody></tbody>
383 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800384 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700385</script>
386
387
388<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800389 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
390 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700391 <td><%= description %></td>
392 <td><%= enabled %></td>
393 <td><%= versionNumber %></td>
394 <td><%= published %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800395 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700396</script>
397
Scott Bakerfc61b012014-10-30 16:10:16 -0700398<!-- Site -->
399
400<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800401 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800402 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700403 <table class="test-table">
404 <thead><tr>
405 <th>id</th>
406 <th>name</th>
407 <th>url</th>
408 <th>enabled</th>
409 <th>login_base</th>
410 <th>is_public</th>
411 <th>abbreviated_name</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800412 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700413 </tr></thead>
414 <tbody></tbody>
415 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800416 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700417</script>
418
419<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800420 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
421 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700422 <td><%= site_url %></td>
423 <td><%= enabled %></td>
424 <td><%= login_base %></td>
425 <td><%= is_public %></td>
426 <td><%= abbreviated_name %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800427 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700428</script>
429
Scott Bakerfc61b012014-10-30 16:10:16 -0700430<!-- Slice -->
431
432<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800433 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800434 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700435 <table class="test-table">
436 <thead><tr>
437 <th>id</th>
438 <th>name</th>
439 <th>enabled</th>
440 <th>omf_friendly</th>
441 <th>description</th>
442 <th>slice_url</th>
443 <th>site</th>
444 <th>max_slivers</th>
445 <th>service</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800446 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700447 </tr></thead>
448 <tbody></tbody>
449 </table>
Scott Baker250ba6e2014-12-04 17:23:27 -0800450 <%= xosListFooterTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700451</script>
452
453<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800454 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
455 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700456 <td><%= enabled %></td>
457 <td><%= omf_friendly %></td>
458 <td><%= description %></td>
459 <td><%= slice_url %></td>
460 <td><%= idToName(site,"sites","name") %></td>
461 <td><%= max_slivers %></td>
462 <td><%= idToName(service,"services","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800463 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700464</script>
465
Scott Baker9b3cf842014-11-02 22:28:59 -0800466<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700467
468<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800469 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800470 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700471 <table class="test-table">
472 <thead><tr>
473 <th>id</th>
474 <th>slice</th>
475 <th>deployment</th>
476 <th>tenant_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800477 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700478 </tr></thead>
479 <tbody></tbody>
480 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800481 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700482</script>
483
484<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800485 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700486 <td><%= idToName(slice,"slices","name") %></td>
487 <td><%= idToName(deployment,"deployments","name") %></td>
488 <td><%= tenant_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800489 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700490</script>
491
Scott Bakerfc61b012014-10-30 16:10:16 -0700492<!-- SlicePrivilege -->
493
494<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800495 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800496 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700497 <table class="test-table">
498 <thead><tr>
499 <th>id</th>
500 <th>user</th>
501 <th>slice</th>
502 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800503 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700504 </tr></thead>
505 <tbody></tbody>
506 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800507 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700508</script>
509
510<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800511 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700512 <td><%= idToName(user,"users","username") %></td>
513 <td><%= idToName(slice,"slices","name") %></td>
514 <td><%= idToName(role,"sliceRoles","role") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800515 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700516</script>
517
Scott Bakerfc61b012014-10-30 16:10:16 -0700518
519<!-- Sliver -->
520
521<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800522 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800523 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700524 <table class="test-table">
525 <thead><tr>
526 <th>id</th>
527 <th>name</th>
528 <th>instance_id</th>
529 <th>instance_name</th>
530 <th>image</th>
531 <th>creator</th>
532 <th>slice</th>
533 <th>node</th>
534 <th>deploymentNetwork</th>
535 <th>flavor</th>
536 <th>userData</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800537 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700538 </tr></thead>
539 <tbody></tbody>
540 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800541 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700542</script>
543
544
545<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800546 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
547 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700548 <td><%= instance_id %></td>
549 <td><%= instance_name %></td>
550 <td><%= idToName(image,"images","name") %></td>
551 <td><%= idToName(creator,"users","name") %></td>
552 <td><%= idToName(slice,"slices","name") %></td>
553 <td><%= idToName(node,"nodes","name") %></td>
554 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
555 <td><%= flavor %></td>
556 <td><%= userData %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800557 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700558</script>
559
Scott Bakerfc61b012014-10-30 16:10:16 -0700560<!-- User -->
561
562<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800563 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800564 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700565 <table class="test-table">
566 <thead><tr>
567 <th>id</th>
568 <th>username</th>
569 <th>firstname</th>
570 <th>lastname</th>
571 <th>phone</th>
572 <th>user_url</th>
573 <th>site</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800574 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700575 </tr></thead>
576 <tbody></tbody>
577 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800578 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700579</script>
580
581
582<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800583 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
584 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700585 <td><%= firstname %></td>
586 <td><%= lastname %></td>
587 <td><%= phone %></td>
588 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700589 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800590 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700591</script>
592
Scott Baker10badd32014-10-31 00:18:24 -0700593<!-- UserDeployments -->
594
595<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800596 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800597 <%= xosListHeaderTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700598 <table class="test-table">
599 <thead><tr>
600 <th>id</th>
601 <th>user</th>
602 <th>deployment</th>
603 <th>kuser_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800604 <th>delete</th>
Scott Baker10badd32014-10-31 00:18:24 -0700605 </tr></thead>
606 <tbody></tbody>
607 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800608 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker10badd32014-10-31 00:18:24 -0700609</script>
610
Scott Baker10badd32014-10-31 00:18:24 -0700611<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800612 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700613 <td><%= idToName(user,"users","username") %></td>
614 <td><%= idToName(deployment,"deployments","name") %></td>
615 <td><%= kuser_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800616 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700617</script>
618
Scott Bakere49f08c2014-11-07 13:01:43 -0800619<script>
620xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker250ba6e2014-12-04 17:23:27 -0800621xosListHeaderTemplate = _.template($("#xos-list-header-template").html());
622xosListFooterTemplate = _.template($("#xos-list-footer-template").html());
Scott Bakerc91396e2014-12-02 10:49:04 -0800623xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
624xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800625</script>