blob: a222889a7a682e610c979305a5f7f31e5e5572b3 [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 <a href="<%= addChildHash %>">Add...</a>
Scott Baker7ce23652014-11-07 16:40:30 -080093</script>
94
Scott Bakerc91396e2014-12-02 10:49:04 -080095<script type="text/template" id="xos-delete-button-template">
Scott Baker29e8a2c2014-12-02 17:59:02 -080096 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
Scott Bakerc91396e2014-12-02 10:49:04 -080097</script>
98
99<script type="text/template" id="xos-detail-link-template">
100 <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
101</script>
102
Scott Baker0a636cb2014-12-07 22:27:09 -0800103<script type="text/template" id="xos-add-template">
104 <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
105 <form>
106 <table>
107 <% _.each(addFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800108 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800109 <% if (fieldName in foreignFields) { %>
Scott Bakerd74963a2014-12-08 11:46:42 -0800110 <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800111 <% } else if (inputType[fieldName] == "checkbox") { %>
112 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
113 <% } else { %>
114 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
115 <% } %>
116 </tr>
117 <% }); %>
118 <%= xosInlineDetailButtonsTemplate() %>
119 </table>
120 </form>
121</script>
122
123<script type="text/template" id="xos-detail-template">
124 <h3 class="xos-detail-title">Add Object: <%= modelName %></h3>
125 <form>
126 <table>
127 <% console.log(model); _.each(detailFields, function(fieldName) { %>
Scott Baker8b1bda02014-12-07 22:31:18 -0800128 <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800129 <% if (fieldName in foreignFields) { %>
Scott Bakerd74963a2014-12-08 11:46:42 -0800130 <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
Scott Baker0a636cb2014-12-07 22:27:09 -0800131 <% } else if (inputType[fieldName] == "checkbox") { %>
132 <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
133 <% } else { %>
134 <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
135 <% } %>
136 </tr>
137 <% }); %>
138 <%= xosInlineDetailButtonsTemplate() %>
139 </table>
140 </form>
141</script>
142
Scott Bakerfc61b012014-10-30 16:10:16 -0700143<!-- Deployment -->
144
145<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800146 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800147 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700148 <table class="test-table">
149 <thead><tr>
150 <th>id</th>
151 <th>name</th>
152 <th>backend</th>
153 <th>admin_tenant</th>
154 <th># sites</th>
Scott Bakerc91396e2014-12-02 10:49:04 -0800155 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700156 </tr></thead>
157 <tbody></tbody>
158 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800159 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700160</script>
161
162
163<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800164 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
165 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700166 <td><%= backend_type %></td>
167 <td><%= admin_tenant %></td>
Scott Baker13e6f0d2014-11-18 17:02:07 -0800168 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerc91396e2014-12-02 10:49:04 -0800169 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700170</script>
171
Scott Bakerfc61b012014-10-30 16:10:16 -0700172<!-- Image -->
173
174<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800175 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800176 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700177 <table class="test-table">
178 <thead><tr>
179 <th>id</th>
180 <th>name</th>
181 <th>disk_format</th>
182 <th>container_format</th>
183 <th>path</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800184 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700185 </tr></thead>
186 <tbody></tbody>
187 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800188 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700189</script>
190
191<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800192 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
193 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700194 <td><%= disk_format %></td>
195 <td><%= container_format %></td>
196 <td><%= path %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800197 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700198</script>
199
Scott Bakerfc61b012014-10-30 16:10:16 -0700200<!-- NetworkTemplate -->
201
202<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800203 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800204 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700205 <table class="test-table">
206 <thead><tr>
207 <th>id</th>
208 <th>name</th>
209 <th>description</th>
210 <th>visibility</th>
211 <th>translation</th>
212 <th>sharedNetworkName</th>
213 <th>sharedNetworkId</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800214 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700215 </tr></thead>
216 <tbody></tbody>
217 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800218 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700219</script>
220
221
222<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800223 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
224 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700225 <td><%= description %></td>
226 <td><%= visibility %></td>
227 <td><%= translation %></td>
228 <td><%= sharedNetworkName %></td>
229 <td><%= sharedNetworkId %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800230 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700231</script>
232
Scott Bakerfc61b012014-10-30 16:10:16 -0700233<!-- Network -->
234
235<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800236 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800237 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700238 <table class="test-table">
239 <thead><tr>
240 <th>id</th>
241 <th>name</th>
242 <th>template</th>
243 <th>ports</th>
244 <th>labels</th>
245 <th>owner</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800246 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700247 </tr></thead>
248 <tbody></tbody>
249 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800250 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700251</script>
252
253<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800254 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
255 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700256 <td><%= idToName(template,"networkTemplates","name") %></td>
257 <td><%= ports %></td>
258 <td><%= labels %></td>
259 <td><%= idToName(owner,"slices","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800260 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700261</script>
262
Scott Bakerfc61b012014-10-30 16:10:16 -0700263<!-- NetworkSliver -->
264
265<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800266 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800267 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700268 <table class="test-table">
269 <thead><tr>
270 <th>id</th>
271 <th>network</th>
272 <th>sliver</th>
273 <th>ip</th>
274 <th>port_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800275 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700276 </tr></thead>
277 <tbody></tbody>
278 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800279 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700280</script>
281
282<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800283 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700284 <td><%= idToName(network,"networks","name") %></td>
285 <td><%= idToName(sliver,"slivers","name") %></td>
286 <td><%= ip %></td>
287 <td><%= port_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800288 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700289</script>
290
Scott Baker586878e2014-10-31 16:43:07 -0700291<!-- NetworkDeployment -->
292
293<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800294 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800295 <%= xosListHeaderTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700296 <table class="test-table">
297 <thead><tr>
298 <th>id</th>
299 <th>network</th>
300 <th>deployment</th>
301 <th>net_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800302 <th>delete</th>
Scott Baker586878e2014-10-31 16:43:07 -0700303 </tr></thead>
304 <tbody></tbody>
305 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800306 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker586878e2014-10-31 16:43:07 -0700307</script>
308
309<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800310 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700311 <td><%= idToName(network,"networks","name") %></td>
312 <td><%= idToName(deployment,"deployments","name") %></td>
313 <td><%= net_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800314 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700315</script>
316
Scott Bakerfc61b012014-10-30 16:10:16 -0700317<!-- Node -->
318
319<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800320 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800321 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700322 <table class="test-table">
323 <thead><tr>
324 <th>id</th>
325 <th>name</th>
326 <th>site</th>
327 <th>deployment</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800328 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700329 </tr></thead>
330 <tbody></tbody>
331 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800332 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700333</script>
334
335
336<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800337 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
338 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700339 <td><%= idToName(site,"sites","name") %></td>
340 <td><%= idToName(deployment,"deployments","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800341 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700342</script>
343
Scott Bakerfc61b012014-10-30 16:10:16 -0700344<!-- SliceRole -->
345
346<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800347 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800348 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700349 <table class="test-table">
350 <thead><tr>
351 <th>id</th>
352 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800353 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700354 </tr></thead>
355 <tbody></tbody>
356 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800357 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700358</script>
359
Scott Bakerfc61b012014-10-30 16:10:16 -0700360<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800361 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700362 <td><%= role %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800363 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700364</script>
365
Scott Bakerfc61b012014-10-30 16:10:16 -0700366<!-- Service -->
367
368<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800369 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800370 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700371 <table class="test-table">
372 <thead><tr>
373 <th>id</th>
374 <th>name</th>
375 <th>description</th>
376 <th>enabled</th>
377 <th>versionNumber</th>
378 <th>published</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800379 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700380 </tr></thead>
381 <tbody></tbody>
382 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800383 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700384</script>
385
386
387<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800388 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
389 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700390 <td><%= description %></td>
391 <td><%= enabled %></td>
392 <td><%= versionNumber %></td>
393 <td><%= published %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800394 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700395</script>
396
Scott Bakerfc61b012014-10-30 16:10:16 -0700397<!-- Site -->
398
399<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800400 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800401 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700402 <table class="test-table">
403 <thead><tr>
404 <th>id</th>
405 <th>name</th>
406 <th>url</th>
407 <th>enabled</th>
408 <th>login_base</th>
409 <th>is_public</th>
410 <th>abbreviated_name</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800411 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700412 </tr></thead>
413 <tbody></tbody>
414 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800415 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700416</script>
417
418<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800419 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
420 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700421 <td><%= site_url %></td>
422 <td><%= enabled %></td>
423 <td><%= login_base %></td>
424 <td><%= is_public %></td>
425 <td><%= abbreviated_name %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800426 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700427</script>
428
Scott Bakerfc61b012014-10-30 16:10:16 -0700429<!-- Slice -->
430
431<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800432 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800433 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700434 <table class="test-table">
435 <thead><tr>
436 <th>id</th>
437 <th>name</th>
438 <th>enabled</th>
439 <th>omf_friendly</th>
440 <th>description</th>
441 <th>slice_url</th>
442 <th>site</th>
443 <th>max_slivers</th>
444 <th>service</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800445 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700446 </tr></thead>
447 <tbody></tbody>
448 </table>
Scott Bakereccfc8a2014-12-08 15:00:51 -0800449 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700450</script>
451
452<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800453 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
454 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700455 <td><%= enabled %></td>
456 <td><%= omf_friendly %></td>
457 <td><%= description %></td>
458 <td><%= slice_url %></td>
459 <td><%= idToName(site,"sites","name") %></td>
460 <td><%= max_slivers %></td>
461 <td><%= idToName(service,"services","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800462 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700463</script>
464
Scott Baker9b3cf842014-11-02 22:28:59 -0800465<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700466
467<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800468 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800469 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700470 <table class="test-table">
471 <thead><tr>
472 <th>id</th>
473 <th>slice</th>
474 <th>deployment</th>
475 <th>tenant_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800476 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700477 </tr></thead>
478 <tbody></tbody>
479 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800480 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700481</script>
482
483<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800484 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700485 <td><%= idToName(slice,"slices","name") %></td>
486 <td><%= idToName(deployment,"deployments","name") %></td>
487 <td><%= tenant_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800488 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700489</script>
490
Scott Bakerfc61b012014-10-30 16:10:16 -0700491<!-- SlicePrivilege -->
492
493<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800494 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800495 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700496 <table class="test-table">
497 <thead><tr>
498 <th>id</th>
499 <th>user</th>
500 <th>slice</th>
501 <th>role</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800502 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700503 </tr></thead>
504 <tbody></tbody>
505 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800506 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700507</script>
508
509<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800510 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700511 <td><%= idToName(user,"users","username") %></td>
512 <td><%= idToName(slice,"slices","name") %></td>
513 <td><%= idToName(role,"sliceRoles","role") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800514 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700515</script>
516
Scott Bakerfc61b012014-10-30 16:10:16 -0700517
518<!-- Sliver -->
519
520<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800521 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800522 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700523 <table class="test-table">
524 <thead><tr>
525 <th>id</th>
526 <th>name</th>
527 <th>instance_id</th>
528 <th>instance_name</th>
529 <th>image</th>
530 <th>creator</th>
531 <th>slice</th>
532 <th>node</th>
533 <th>deploymentNetwork</th>
534 <th>flavor</th>
535 <th>userData</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800536 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700537 </tr></thead>
538 <tbody></tbody>
539 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800540 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700541</script>
542
543
544<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800545 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
546 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700547 <td><%= instance_id %></td>
548 <td><%= instance_name %></td>
549 <td><%= idToName(image,"images","name") %></td>
550 <td><%= idToName(creator,"users","name") %></td>
551 <td><%= idToName(slice,"slices","name") %></td>
552 <td><%= idToName(node,"nodes","name") %></td>
553 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
554 <td><%= flavor %></td>
555 <td><%= userData %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800556 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700557</script>
558
Scott Bakerfc61b012014-10-30 16:10:16 -0700559<!-- User -->
560
561<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800562 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800563 <%= xosListHeaderTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700564 <table class="test-table">
565 <thead><tr>
566 <th>id</th>
567 <th>username</th>
568 <th>firstname</th>
569 <th>lastname</th>
570 <th>phone</th>
571 <th>user_url</th>
572 <th>site</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800573 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700574 </tr></thead>
575 <tbody></tbody>
576 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800577 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700578</script>
579
580
581<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800582 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
583 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700584 <td><%= firstname %></td>
585 <td><%= lastname %></td>
586 <td><%= phone %></td>
587 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700588 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800589 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700590</script>
591
Scott Baker10badd32014-10-31 00:18:24 -0700592<!-- UserDeployments -->
593
594<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800595 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker250ba6e2014-12-04 17:23:27 -0800596 <%= xosListHeaderTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700597 <table class="test-table">
598 <thead><tr>
599 <th>id</th>
600 <th>user</th>
601 <th>deployment</th>
602 <th>kuser_id</th>
Scott Bakerf26fa592014-12-02 18:04:50 -0800603 <th>delete</th>
Scott Baker10badd32014-10-31 00:18:24 -0700604 </tr></thead>
605 <tbody></tbody>
606 </table>
Scott Baker07cdef02014-12-08 11:13:43 -0800607 <%= xosListFooterTemplate({addChildHash: addChildHash}) %>
Scott Baker10badd32014-10-31 00:18:24 -0700608</script>
609
Scott Baker10badd32014-10-31 00:18:24 -0700610<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800611 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700612 <td><%= idToName(user,"users","username") %></td>
613 <td><%= idToName(deployment,"deployments","name") %></td>
614 <td><%= kuser_id %></td>
Scott Bakerf26fa592014-12-02 18:04:50 -0800615 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700616</script>
617
Scott Bakere49f08c2014-11-07 13:01:43 -0800618<script>
619xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker250ba6e2014-12-04 17:23:27 -0800620xosListHeaderTemplate = _.template($("#xos-list-header-template").html());
621xosListFooterTemplate = _.template($("#xos-list-footer-template").html());
Scott Bakerc91396e2014-12-02 10:49:04 -0800622xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
623xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800624</script>