blob: 3d526767d59f4c4fd137f0bcdc3b1529afe07bad [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 Baker7ce23652014-11-07 16:40:30 -080086<script type="text/template" id="xos-inline-list-buttons-template">
87 <button class="btn js-submit btn-xos-list btn-xos-add">Add</button>
Scott Baker13e6f0d2014-11-18 17:02:07 -080088 <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button>
Scott Baker7ce23652014-11-07 16:40:30 -080089 </td>
90 </tr>
91</script>
92
Scott Bakerc91396e2014-12-02 10:49:04 -080093<script type="text/template" id="xos-delete-button-template">
Scott Baker29e8a2c2014-12-02 17:59:02 -080094 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
Scott Bakerc91396e2014-12-02 10:49:04 -080095</script>
96
97<script type="text/template" id="xos-detail-link-template">
98 <a href="#<%= collectionName %>/<%= id %>"><%= text %></a>
99</script>
100
Scott Bakerfc61b012014-10-30 16:10:16 -0700101<!-- Deployment -->
102
103<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800104 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker7ce23652014-11-07 16:40:30 -0800105 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700106 <table class="test-table">
107 <thead><tr>
108 <th>id</th>
109 <th>name</th>
110 <th>backend</th>
111 <th>admin_tenant</th>
112 <th># sites</th>
Scott Bakerc91396e2014-12-02 10:49:04 -0800113 <th>delete</th>
Scott Bakerfc61b012014-10-30 16:10:16 -0700114 </tr></thead>
115 <tbody></tbody>
116 </table>
117</script>
118
119
120<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800121 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
122 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700123 <td><%= backend_type %></td>
124 <td><%= admin_tenant %></td>
Scott Baker13e6f0d2014-11-18 17:02:07 -0800125 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerc91396e2014-12-02 10:49:04 -0800126 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700127</script>
128
129<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800130 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800131 <form>
Scott Bakerfc61b012014-10-30 16:10:16 -0700132 <table>
133 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
134 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
135 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800136 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700137 </table>
138 </form>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800139</script>
Scott Bakerfc61b012014-10-30 16:10:16 -0700140
141<!-- Image -->
142
143<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800144 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800145 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700146 <table class="test-table">
147 <thead><tr>
148 <th>id</th>
149 <th>name</th>
150 <th>disk_format</th>
151 <th>container_format</th>
152 <th>path</th>
153 </tr></thead>
154 <tbody></tbody>
155 </table>
156</script>
157
158<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800159 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
160 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700161 <td><%= disk_format %></td>
162 <td><%= container_format %></td>
163 <td><%= path %></td>
164</script>
165
166<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800167 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700168 <form>
169 <table>
170 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
171 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
172 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800173 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700174 </table>
175 </form>
176</script>
177
178<!-- NetworkTemplate -->
179
180<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800181 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800182 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700183 <table class="test-table">
184 <thead><tr>
185 <th>id</th>
186 <th>name</th>
187 <th>description</th>
188 <th>visibility</th>
189 <th>translation</th>
190 <th>sharedNetworkName</th>
191 <th>sharedNetworkId</th>
192 </tr></thead>
193 <tbody></tbody>
194 </table>
195</script>
196
197
198<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800199 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
200 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700201 <td><%= description %></td>
202 <td><%= visibility %></td>
203 <td><%= translation %></td>
204 <td><%= sharedNetworkName %></td>
205 <td><%= sharedNetworkId %></td>
206</script>
207
208<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800209 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700210 <form>
211 <table>
212 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
213 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
214 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
215 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
216 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
217 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800218 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700219 </table>
220 </form>
221</script>
222
223<!-- Network -->
224
225<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800226 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800227 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700228 <table class="test-table">
229 <thead><tr>
230 <th>id</th>
231 <th>name</th>
232 <th>template</th>
233 <th>ports</th>
234 <th>labels</th>
235 <th>owner</th>
236 </tr></thead>
237 <tbody></tbody>
238 </table>
239</script>
240
241<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800242 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
243 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700244 <td><%= idToName(template,"networkTemplates","name") %></td>
245 <td><%= ports %></td>
246 <td><%= labels %></td>
247 <td><%= idToName(owner,"slices","name") %></td>
248</script>
249
250<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800251 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700252 <form>
253 <table>
254 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800255 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700256 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
257 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800258 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800259 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700260 </table>
261 </form>
262</script>
263
264<!-- 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 Bakerbb5e15f2014-11-12 01:15:52 -0800268 <%= xosInlineListButtonsTemplate() %>
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>
276 </tr></thead>
277 <tbody></tbody>
278 </table>
279</script>
280
281<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800282 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700283 <td><%= idToName(network,"networks","name") %></td>
284 <td><%= idToName(sliver,"slivers","name") %></td>
285 <td><%= ip %></td>
286 <td><%= port_id %></td>
287</script>
288
289<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800290 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700291 <form>
292 <table>
293 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
294 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
295 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
296 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800297 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700298 </table>
299 </form>
300</script>
301
Scott Baker586878e2014-10-31 16:43:07 -0700302<!-- NetworkDeployment -->
303
304<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800305 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800306 <%= xosInlineListButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700307 <table class="test-table">
308 <thead><tr>
309 <th>id</th>
310 <th>network</th>
311 <th>deployment</th>
312 <th>net_id</th>
313 </tr></thead>
314 <tbody></tbody>
315 </table>
316</script>
317
318<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800319 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker586878e2014-10-31 16:43:07 -0700320 <td><%= idToName(network,"networks","name") %></td>
321 <td><%= idToName(deployment,"deployments","name") %></td>
322 <td><%= net_id %></td>
323</script>
324
325<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800326 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker586878e2014-10-31 16:43:07 -0700327 <form>
328 <table>
329 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
330 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
331 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800332 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker586878e2014-10-31 16:43:07 -0700333 </table>
334 </form>
335</script>
336
Scott Bakerfc61b012014-10-30 16:10:16 -0700337<!-- Node -->
338
339<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800340 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800341 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700342 <table class="test-table">
343 <thead><tr>
344 <th>id</th>
345 <th>name</th>
346 <th>site</th>
347 <th>deployment</th>
348 </tr></thead>
349 <tbody></tbody>
350 </table>
351</script>
352
353
354<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800355 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
356 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700357 <td><%= idToName(site,"sites","name") %></td>
358 <td><%= idToName(deployment,"deployments","name") %></td>
359</script>
360
361<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800362 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700363 <form>
364 <table>
365 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800366 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
367 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800368 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700369 </table>
370 </form>
371</script>
372
373<!-- SliceRole -->
374
375<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800376 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800377 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700378 <table class="test-table">
379 <thead><tr>
380 <th>id</th>
381 <th>role</th>
382 </tr></thead>
383 <tbody></tbody>
384 </table>
385</script>
386
387
388<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800389 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700390 <td><%= role %></td>
391</script>
392
393<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800394 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700395 <form>
396 <table>
397 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800398 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700399 </table>
400 </form>
401</script>
402
403<!-- Service -->
404
405<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800406 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800407 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700408 <table class="test-table">
409 <thead><tr>
410 <th>id</th>
411 <th>name</th>
412 <th>description</th>
413 <th>enabled</th>
414 <th>versionNumber</th>
415 <th>published</th>
416 </tr></thead>
417 <tbody></tbody>
418 </table>
419</script>
420
421
422<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800423 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
424 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700425 <td><%= description %></td>
426 <td><%= enabled %></td>
427 <td><%= versionNumber %></td>
428 <td><%= published %></td>
429</script>
430
431<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800432 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700433 <form>
434 <table>
435 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
436 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
437 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800438 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700439 </table>
440 </form>
441</script>
442
443<!-- Site -->
444
445<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800446 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800447 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700448 <table class="test-table">
449 <thead><tr>
450 <th>id</th>
451 <th>name</th>
452 <th>url</th>
453 <th>enabled</th>
454 <th>login_base</th>
455 <th>is_public</th>
456 <th>abbreviated_name</th>
457 </tr></thead>
458 <tbody></tbody>
459 </table>
460</script>
461
462<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800463 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
464 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700465 <td><%= site_url %></td>
466 <td><%= enabled %></td>
467 <td><%= login_base %></td>
468 <td><%= is_public %></td>
469 <td><%= abbreviated_name %></td>
470</script>
471
472<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800473 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700474 <form>
475 <table>
476 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800477 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700478 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Bakere2e47fb2014-11-05 21:11:50 -0800479 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
480 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700481 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800482 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700483 </table>
484 </form>
485</script>
486
487<!-- Slice -->
488
489<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800490 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800491 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700492 <table class="test-table">
493 <thead><tr>
494 <th>id</th>
495 <th>name</th>
496 <th>enabled</th>
497 <th>omf_friendly</th>
498 <th>description</th>
499 <th>slice_url</th>
500 <th>site</th>
501 <th>max_slivers</th>
502 <th>service</th>
503 </tr></thead>
504 <tbody></tbody>
505 </table>
506</script>
507
508<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800509 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
510 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700511 <td><%= enabled %></td>
512 <td><%= omf_friendly %></td>
513 <td><%= description %></td>
514 <td><%= slice_url %></td>
515 <td><%= idToName(site,"sites","name") %></td>
516 <td><%= max_slivers %></td>
517 <td><%= idToName(service,"services","name") %></td>
518</script>
519
520<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800521 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700522 <form>
523 <table>
524 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800525 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakerfc61b012014-10-30 16:10:16 -0700526 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
527 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
528 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
529 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800530 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700531 </table>
532 </form>
533</script>
534
Scott Baker9b3cf842014-11-02 22:28:59 -0800535<!-- SliceDeployment -->
Scott Bakerfc61b012014-10-30 16:10:16 -0700536
537<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800538 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800539 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700540 <table class="test-table">
541 <thead><tr>
542 <th>id</th>
543 <th>slice</th>
544 <th>deployment</th>
545 <th>tenant_id</th>
546 </tr></thead>
547 <tbody></tbody>
548 </table>
549</script>
550
551<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800552 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700553 <td><%= idToName(slice,"slices","name") %></td>
554 <td><%= idToName(deployment,"deployments","name") %></td>
555 <td><%= tenant_id %></td>
556</script>
557
558<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800559 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700560 <form>
561 <table>
562 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
563 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
564 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800565 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700566 </table>
567 </form>
568</script>
569
570<!-- SlicePrivilege -->
571
572<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800573 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800574 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700575 <table class="test-table">
576 <thead><tr>
577 <th>id</th>
578 <th>user</th>
579 <th>slice</th>
580 <th>role</th>
581 </tr></thead>
582 <tbody></tbody>
583 </table>
584</script>
585
586<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800587 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700588 <td><%= idToName(user,"users","username") %></td>
589 <td><%= idToName(slice,"slices","name") %></td>
590 <td><%= idToName(role,"sliceRoles","role") %></td>
591</script>
592
593<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800594 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700595 <form>
596 <table>
597 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
598 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
599 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800600 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700601 </table>
602 </form>
603</script>
604
605<!-- Sliver -->
606
607<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800608 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800609 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700610 <table class="test-table">
611 <thead><tr>
612 <th>id</th>
613 <th>name</th>
614 <th>instance_id</th>
615 <th>instance_name</th>
616 <th>image</th>
617 <th>creator</th>
618 <th>slice</th>
619 <th>node</th>
620 <th>deploymentNetwork</th>
621 <th>flavor</th>
622 <th>userData</th>
623 </tr></thead>
624 <tbody></tbody>
625 </table>
626</script>
627
628
629<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800630 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
631 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700632 <td><%= instance_id %></td>
633 <td><%= instance_name %></td>
634 <td><%= idToName(image,"images","name") %></td>
635 <td><%= idToName(creator,"users","name") %></td>
636 <td><%= idToName(slice,"slices","name") %></td>
637 <td><%= idToName(node,"nodes","name") %></td>
638 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
639 <td><%= flavor %></td>
640 <td><%= userData %></td>
641</script>
642
643<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800644 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700645 <form>
646 <table>
647 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
648 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
649 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800650 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
651 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Baker98e31772014-11-04 23:50:45 -0800652 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
653 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800654 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700655 </table>
656 </form>
657</script>
658
659<!-- User -->
660
661<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800662 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800663 <%= xosInlineListButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700664 <table class="test-table">
665 <thead><tr>
666 <th>id</th>
667 <th>username</th>
668 <th>firstname</th>
669 <th>lastname</th>
670 <th>phone</th>
671 <th>user_url</th>
672 <th>site</th>
673 </tr></thead>
674 <tbody></tbody>
675 </table>
676</script>
677
678
679<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800680 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
681 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700682 <td><%= firstname %></td>
683 <td><%= lastname %></td>
684 <td><%= phone %></td>
685 <td><%= user_url %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700686 <td><%= idToName(site,"sites","name") %></td>
Scott Bakerfc61b012014-10-30 16:10:16 -0700687</script>
688
689<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800690 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Bakerfc61b012014-10-30 16:10:16 -0700691 <form>
692 <table>
693 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
694 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
695 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
696 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
697 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Baker9b3cf842014-11-02 22:28:59 -0800698 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800699 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakerfc61b012014-10-30 16:10:16 -0700700 </table>
701 </form>
702</script>
703
Scott Baker10badd32014-10-31 00:18:24 -0700704<!-- UserDeployments -->
705
706<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800707 <h3 class="xos-list-title"><%= title %></h3>
Scott Bakerbb5e15f2014-11-12 01:15:52 -0800708 <%= xosInlineListButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700709 <table class="test-table">
710 <thead><tr>
711 <th>id</th>
712 <th>user</th>
713 <th>deployment</th>
714 <th>kuser_id</th>
715 </tr></thead>
716 <tbody></tbody>
717 </table>
718</script>
719
Scott Baker10badd32014-10-31 00:18:24 -0700720<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerc91396e2014-12-02 10:49:04 -0800721 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker10badd32014-10-31 00:18:24 -0700722 <td><%= idToName(user,"users","username") %></td>
723 <td><%= idToName(deployment,"deployments","name") %></td>
724 <td><%= kuser_id %></td>
725</script>
726
727<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker9d37d562014-11-04 23:20:48 -0800728 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker10badd32014-10-31 00:18:24 -0700729 <form>
730 <table>
731 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
732 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
733 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Bakere49f08c2014-11-07 13:01:43 -0800734 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker10badd32014-10-31 00:18:24 -0700735 </table>
736 </form>
737</script>
Scott Bakere49f08c2014-11-07 13:01:43 -0800738
739<script>
740xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker7ce23652014-11-07 16:40:30 -0800741xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html());
Scott Bakerc91396e2014-12-02 10:49:04 -0800742xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
743xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Bakere49f08c2014-11-07 13:01:43 -0800744</script>