blob: 3848fc0c57db8c0d3ab4dccd6b2771223cfea6dd [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 Baker07b4a252014-12-08 23:54:18 -080092 <% if (addChildHash) { %>
93 <a href="<%= addChildHash %>">Add...</a>
94 <% } %>
Scott Baker7ce23652014-11-07 16:40:30 -080095</script>
96
Scott Bakerc91396e2014-12-02 10:49:04 -080097<script type="text/template" id="xos-delete-button-template">
Scott Baker29e8a2c2014-12-02 17:59:02 -080098 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
Scott Bakerc91396e2014-12-02 10:49:04 -080099</script>
100
101<script type="text/template" id="xos-detail-link-template">
102 <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
103</script>
104
Scott Baker0a636cb2014-12-07 22:27:09 -0800105<script type="text/template" id="xos-add-template">
106 <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
107 <form>
108 <table>
109 <% _.each(addFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800110 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker07b4a252014-12-08 23:54:18 -0800111 <% readOnly = $.inArray(fieldName, model.readOnlyFields)>=0 ? " readonly" : ""; console.log(fieldName + " " + readOnly); console.log(model.readOnlyFields); %>
Scott Baker0a636cb2014-12-07 22:27:09 -0800112 <% if (fieldName in foreignFields) { %>
Scott Baker07b4a252014-12-08 23:54:18 -0800113 <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName", readOnly) %></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800114 <% } else if (inputType[fieldName] == "checkbox") { %>
Scott Baker07b4a252014-12-08 23:54:18 -0800115 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %><%= readOnly %>></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800116 <% } else { %>
Scott Baker07b4a252014-12-08 23:54:18 -0800117 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"<%= readOnly %>></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800118 <% } %>
119 </tr>
120 <% }); %>
121 <%= xosInlineDetailButtonsTemplate() %>
122 </table>
123 </form>
124</script>
125
126<script type="text/template" id="xos-detail-template">
Scott Baker07b4a252014-12-08 23:54:18 -0800127 <h3 class="xos-detail-title">Edit Object: <%= modelName %></h3>
Scott Baker0a636cb2014-12-07 22:27:09 -0800128 <form>
129 <table>
130 <% console.log(model); _.each(detailFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800131 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800132 <% if (fieldName in foreignFields) { %>
Scott Bakerd74963a2014-12-08 11:46:42 -0800133 <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800134 <% } else if (inputType[fieldName] == "checkbox") { %>
135 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
136 <% } else { %>
137 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
138 <% } %>
139 </tr>
140 <% }); %>
141 <%= xosInlineDetailButtonsTemplate() %>
142 </table>
143 </form>
144</script>
145
Scott Bakerfc61b012014-10-30 16:10:16 -0700146<!-- Deployment -->
147
148<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800149 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800150 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700151 <table class="test-table">
152 <thead><tr>
153 <th>id</th>
154 <th>name</th>
155 <th>backend</th>
156 <th>admin_tenant</th>
157 <th># sites</th>
Scott Bakerc91396e2014-12-02 10:49:04 -0800158 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700159 </tr></thead>
160 <tbody></tbody>
161 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800162 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700163</script>
164
165
166<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800167 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
168 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700169 <td><%= backend_type %></td>
170 <td><%= admin_tenant %></td>
Scott Baker13e6f0d2014-11-18 17:02:07 -0800171 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerc91396e2014-12-02 10:49:04 -0800172 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700173</script>
174
Scott Bakerfc61b012014-10-30 16:10:16 -0700175<!-- Image -->
176
177<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800178 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800179 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700180 <table class="test-table">
181 <thead><tr>
182 <th>id</th>
183 <th>name</th>
184 <th>disk_format</th>
185 <th>container_format</th>
186 <th>path</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800187 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700188 </tr></thead>
189 <tbody></tbody>
190 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800191 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700192</script>
193
194<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800195 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
196 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700197 <td><%= disk_format %></td>
198 <td><%= container_format %></td>
199 <td><%= path %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800200 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700201</script>
202
Scott Bakerfc61b012014-10-30 16:10:16 -0700203<!-- NetworkTemplate -->
204
205<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800206 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800207 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700208 <table class="test-table">
209 <thead><tr>
210 <th>id</th>
211 <th>name</th>
212 <th>description</th>
213 <th>visibility</th>
214 <th>translation</th>
215 <th>sharedNetworkName</th>
216 <th>sharedNetworkId</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800217 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700218 </tr></thead>
219 <tbody></tbody>
220 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800221 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700222</script>
223
224
225<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800226 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
227 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700228 <td><%= description %></td>
229 <td><%= visibility %></td>
230 <td><%= translation %></td>
231 <td><%= sharedNetworkName %></td>
232 <td><%= sharedNetworkId %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800233 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700234</script>
235
Scott Bakerfc61b012014-10-30 16:10:16 -0700236<!-- Network -->
237
238<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800239 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800240 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700241 <table class="test-table">
242 <thead><tr>
243 <th>id</th>
244 <th>name</th>
245 <th>template</th>
246 <th>ports</th>
247 <th>labels</th>
248 <th>owner</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800249 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700250 </tr></thead>
251 <tbody></tbody>
252 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800253 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700254</script>
255
256<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800257 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
258 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700259 <td><%= idToName(template,"networkTemplates","name") %></td>
260 <td><%= ports %></td>
261 <td><%= labels %></td>
262 <td><%= idToName(owner,"slices","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800263 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700264</script>
265
Scott Bakerfc61b012014-10-30 16:10:16 -0700266<!-- NetworkSliver -->
267
268<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800269 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800270 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700271 <table class="test-table">
272 <thead><tr>
273 <th>id</th>
274 <th>network</th>
275 <th>sliver</th>
276 <th>ip</th>
277 <th>port_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800278 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700279 </tr></thead>
280 <tbody></tbody>
281 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800282 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700283</script>
284
285<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800286 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700287 <td><%= idToName(network,"networks","name") %></td>
288 <td><%= idToName(sliver,"slivers","name") %></td>
289 <td><%= ip %></td>
290 <td><%= port_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800291 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700292</script>
293
Scott Baker586878e2014-10-31 16:43:07 -0700294<!-- NetworkDeployment -->
295
296<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800297 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800298 <%= xosListHeaderTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700299 <table class="test-table">
300 <thead><tr>
301 <th>id</th>
302 <th>network</th>
303 <th>deployment</th>
304 <th>net_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800305 <th>delete</th>
Scott Baker586878e2014-10-31 16:43:07 -0700306 </tr></thead>
307 <tbody></tbody>
308 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800309 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker586878e2014-10-31 16:43:07 -0700310</script>
311
312<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800313 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700314 <td><%= idToName(network,"networks","name") %></td>
315 <td><%= idToName(deployment,"deployments","name") %></td>
316 <td><%= net_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800317 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700318</script>
319
Scott Bakerfc61b012014-10-30 16:10:16 -0700320<!-- Node -->
321
322<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800323 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800324 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700325 <table class="test-table">
326 <thead><tr>
327 <th>id</th>
328 <th>name</th>
329 <th>site</th>
330 <th>deployment</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800331 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700332 </tr></thead>
333 <tbody></tbody>
334 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800335 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700336</script>
337
338
339<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800340 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
341 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700342 <td><%= idToName(site,"sites","name") %></td>
343 <td><%= idToName(deployment,"deployments","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800344 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700345</script>
346
Scott Bakerfc61b012014-10-30 16:10:16 -0700347<!-- SliceRole -->
348
349<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800350 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800351 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700352 <table class="test-table">
353 <thead><tr>
354 <th>id</th>
355 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800356 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700357 </tr></thead>
358 <tbody></tbody>
359 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800360 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700361</script>
362
Scott Bakerfc61b012014-10-30 16:10:16 -0700363<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800364 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700365 <td><%= role %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800366 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700367</script>
368
Scott Bakerfc61b012014-10-30 16:10:16 -0700369<!-- Service -->
370
371<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800372 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800373 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-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>
Scott Bakerf26fa592014-12-02 18:04:50 -0800382 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700383 </tr></thead>
384 <tbody></tbody>
385 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800386 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700387</script>
388
389
390<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800391 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
392 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700393 <td><%= description %></td>
394 <td><%= enabled %></td>
395 <td><%= versionNumber %></td>
396 <td><%= published %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800397 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700398</script>
399
Scott Bakerfc61b012014-10-30 16:10:16 -0700400<!-- Site -->
401
402<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800403 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800404 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700405 <table class="test-table">
406 <thead><tr>
407 <th>id</th>
408 <th>name</th>
409 <th>url</th>
410 <th>enabled</th>
411 <th>login_base</th>
412 <th>is_public</th>
413 <th>abbreviated_name</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800414 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700415 </tr></thead>
416 <tbody></tbody>
417 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800418 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700419</script>
420
421<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800422 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
423 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700424 <td><%= site_url %></td>
425 <td><%= enabled %></td>
426 <td><%= login_base %></td>
427 <td><%= is_public %></td>
428 <td><%= abbreviated_name %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800429 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700430</script>
431
Scott Bakerfc61b012014-10-30 16:10:16 -0700432<!-- Slice -->
433
434<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800435 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800436 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700437 <table class="test-table">
438 <thead><tr>
439 <th>id</th>
440 <th>name</th>
441 <th>enabled</th>
442 <th>omf_friendly</th>
443 <th>description</th>
444 <th>slice_url</th>
445 <th>site</th>
446 <th>max_slivers</th>
447 <th>service</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800448 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700449 </tr></thead>
450 <tbody></tbody>
451 </table>
Scott Bakereccfc8a2014-12-08 15:00:51 -0800452 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700453</script>
454
455<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800456 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
457 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700458 <td><%= enabled %></td>
459 <td><%= omf_friendly %></td>
460 <td><%= description %></td>
461 <td><%= slice_url %></td>
462 <td><%= idToName(site,"sites","name") %></td>
463 <td><%= max_slivers %></td>
464 <td><%= idToName(service,"services","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800465 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700466</script>
467
Scott Baker9b3cf842014-11-02 22:28:59 -0800468<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700469
470<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800471 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800472 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700473 <table class="test-table">
474 <thead><tr>
475 <th>id</th>
476 <th>slice</th>
477 <th>deployment</th>
478 <th>tenant_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800479 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700480 </tr></thead>
481 <tbody></tbody>
482 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800483 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700484</script>
485
486<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800487 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700488 <td><%= idToName(slice,"slices","name") %></td>
489 <td><%= idToName(deployment,"deployments","name") %></td>
490 <td><%= tenant_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800491 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700492</script>
493
Scott Bakerfc61b012014-10-30 16:10:16 -0700494<!-- SlicePrivilege -->
495
496<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800497 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800498 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700499 <table class="test-table">
500 <thead><tr>
501 <th>id</th>
502 <th>user</th>
503 <th>slice</th>
504 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800505 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700506 </tr></thead>
507 <tbody></tbody>
508 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800509 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700510</script>
511
512<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800513 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700514 <td><%= idToName(user,"users","username") %></td>
515 <td><%= idToName(slice,"slices","name") %></td>
516 <td><%= idToName(role,"sliceRoles","role") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800517 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700518</script>
519
Scott Bakerfc61b012014-10-30 16:10:16 -0700520
521<!-- Sliver -->
522
523<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800524 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800525 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700526 <table class="test-table">
527 <thead><tr>
528 <th>id</th>
529 <th>name</th>
530 <th>instance_id</th>
531 <th>instance_name</th>
532 <th>image</th>
533 <th>creator</th>
534 <th>slice</th>
535 <th>node</th>
536 <th>deploymentNetwork</th>
537 <th>flavor</th>
538 <th>userData</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800539 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700540 </tr></thead>
541 <tbody></tbody>
542 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800543 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700544</script>
545
546
547<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800548 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
549 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700550 <td><%= instance_id %></td>
551 <td><%= instance_name %></td>
552 <td><%= idToName(image,"images","name") %></td>
553 <td><%= idToName(creator,"users","name") %></td>
554 <td><%= idToName(slice,"slices","name") %></td>
555 <td><%= idToName(node,"nodes","name") %></td>
556 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
557 <td><%= flavor %></td>
558 <td><%= userData %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800559 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700560</script>
561
Scott Bakerfc61b012014-10-30 16:10:16 -0700562<!-- User -->
563
564<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800565 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800566 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700567 <table class="test-table">
568 <thead><tr>
569 <th>id</th>
570 <th>username</th>
571 <th>firstname</th>
572 <th>lastname</th>
573 <th>phone</th>
574 <th>user_url</th>
575 <th>site</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800576 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700577 </tr></thead>
578 <tbody></tbody>
579 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800580 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700581</script>
582
583
584<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800585 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
586 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700587 <td><%= firstname %></td>
588 <td><%= lastname %></td>
589 <td><%= phone %></td>
590 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700591 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800592 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700593</script>
594
Scott Baker10badd32014-10-31 00:18:24 -0700595<!-- UserDeployments -->
596
597<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800598 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800599 <%= xosListHeaderTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700600 <table class="test-table">
601 <thead><tr>
602 <th>id</th>
603 <th>user</th>
604 <th>deployment</th>
605 <th>kuser_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800606 <th>delete</th>
Scott Baker10badd32014-10-31 00:18:24 -0700607 </tr></thead>
608 <tbody></tbody>
609 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800610 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker10badd32014-10-31 00:18:24 -0700611</script>
612
Scott Baker10badd32014-10-31 00:18:24 -0700613<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800614 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700615 <td><%= idToName(user,"users","username") %></td>
616 <td><%= idToName(deployment,"deployments","name") %></td>
617 <td><%= kuser_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800618 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700619</script>
620
Scott Bakere49f08c2014-11-07 13:01:43 -0800621<script>
622xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker250ba6e2014-12-04 17:23:27 -0800623xosListHeaderTemplate = _.template($("#xos-list-header-template").html());
624xosListFooterTemplate = _.template($("#xos-list-footer-template").html());
Scott Bakerc91396e2014-12-02 10:49:04 -0800625xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
626xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800627</script>
Scott Baker07b4a252014-12-08 23:54:18 -0800628