blob: 3d5d1a614bacf0a2b2d168a97535177c13a7edee [file] [log] [blame]
Scott Bakerc1e681e2014-11-03 09:43:23 -08001<!-- Error and Success templates -->
2
Scott Baker8560fd12014-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 Bakerf8641732014-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 Baker28a65442014-11-03 23:54:59 -080025<script type="text/template" id="xos-error-template">
Scott Bakerc1e681e2014-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 Baker28a65442014-11-03 23:54:59 -080034<script type="text/template" id="xos-success-template">
Scott Bakerc1e681e2014-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 Baker100b0a32014-11-04 09:34:17 -080043<script type="text/template" id="xos-navbutton-old">
Scott Baker28a65442014-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 Baker17390d22014-11-05 21:11:50 -080047<script type="text/template" id="xos-status-template">
Scott Baker1c5d4ee2014-11-14 16:13:43 -080048 <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div>
Scott Baker17390d22014-11-05 21:11:50 -080049</script>
50
Scott Baker76d7b622014-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 Baker95a57b82014-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 Baker76d7b622014-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 Baker100b0a32014-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 Baker50282372014-11-04 15:41:47 -080073 </li>
Scott Baker100b0a32014-11-04 09:34:17 -080074</script>
75
Scott Baker09ed3e02014-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 Baker95a57b82014-11-18 17:02:07 -080081 <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button>
Scott Baker09ed3e02014-11-07 13:01:43 -080082 </td>
83 </tr>
84</script>
85
Scott Baker2c974852014-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">
92 <a href="#addChildSliver/slice/slice/23">Add another...</a>
Scott Bakerc9d0dcb2014-11-07 16:40:30 -080093</script>
94
Scott Bakerb1e63332014-12-02 10:49:04 -080095<script type="text/template" id="xos-delete-button-template">
Scott Baker6694f8f2014-12-02 17:59:02 -080096 <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a>
Scott Bakerb1e63332014-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 Baker7e0e6b92014-10-30 16:10:16 -0700103<!-- Deployment -->
104
105<script type="text/template" id="xosAdmin-deployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800106 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800107 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700108 <table class="test-table">
109 <thead><tr>
110 <th>id</th>
111 <th>name</th>
112 <th>backend</th>
113 <th>admin_tenant</th>
114 <th># sites</th>
Scott Bakerb1e63332014-12-02 10:49:04 -0800115 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700116 </tr></thead>
117 <tbody></tbody>
118 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800119 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700120</script>
121
122
123<script type="text/template" id="xosAdmin-deployment-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800124 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
125 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700126 <td><%= backend_type %></td>
127 <td><%= admin_tenant %></td>
Scott Baker95a57b82014-11-18 17:02:07 -0800128 <td><%= typeof sites != 'undefined' && sites.length || 0 %></td>
Scott Bakerb1e63332014-12-02 10:49:04 -0800129 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700130</script>
131
132<script type="text/template" id="xosAdmin-deployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800133 <h3 class="xos-detail-title">Detail View: Deployment</h3>
Scott Baker17390d22014-11-05 21:11:50 -0800134 <form>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700135 <table>
136 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
137 <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
138 <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800139 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700140 </table>
141 </form>
Scott Baker17390d22014-11-05 21:11:50 -0800142</script>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700143
144<!-- Image -->
145
146<script type="text/template" id="xosAdmin-image-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800147 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800148 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700149 <table class="test-table">
150 <thead><tr>
151 <th>id</th>
152 <th>name</th>
153 <th>disk_format</th>
154 <th>container_format</th>
155 <th>path</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800156 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700157 </tr></thead>
158 <tbody></tbody>
159 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800160 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700161</script>
162
163<script type="text/template" id="xosAdmin-image-listitem-template">
Scott Bakerb1e63332014-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 Baker7e0e6b92014-10-30 16:10:16 -0700166 <td><%= disk_format %></td>
167 <td><%= container_format %></td>
168 <td><%= path %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800169 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700170</script>
171
172<script type="text/template" id="xosAdmin-image-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800173 <h3 class="xos-detail-title">Detail View: Image</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700174 <form>
175 <table>
176 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
177 <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
178 <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800179 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700180 </table>
181 </form>
182</script>
183
184<!-- NetworkTemplate -->
185
186<script type="text/template" id="xosAdmin-networkTemplate-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800187 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800188 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700189 <table class="test-table">
190 <thead><tr>
191 <th>id</th>
192 <th>name</th>
193 <th>description</th>
194 <th>visibility</th>
195 <th>translation</th>
196 <th>sharedNetworkName</th>
197 <th>sharedNetworkId</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800198 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700199 </tr></thead>
200 <tbody></tbody>
201 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800202 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700203</script>
204
205
206<script type="text/template" id="xosAdmin-networkTemplate-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800207 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
208 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700209 <td><%= description %></td>
210 <td><%= visibility %></td>
211 <td><%= translation %></td>
212 <td><%= sharedNetworkName %></td>
213 <td><%= sharedNetworkId %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800214 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700215</script>
216
217<script type="text/template" id="xosAdmin-networkTemplate-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800218 <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700219 <form>
220 <table>
221 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
222 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
223 <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
224 <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
225 <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
226 <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800227 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700228 </table>
229 </form>
230</script>
231
232<!-- Network -->
233
234<script type="text/template" id="xosAdmin-network-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800235 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800236 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700237 <table class="test-table">
238 <thead><tr>
239 <th>id</th>
240 <th>name</th>
241 <th>template</th>
242 <th>ports</th>
243 <th>labels</th>
244 <th>owner</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800245 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700246 </tr></thead>
247 <tbody></tbody>
248 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800249 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700250</script>
251
252<script type="text/template" id="xosAdmin-network-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800253 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
254 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700255 <td><%= idToName(template,"networkTemplates","name") %></td>
256 <td><%= ports %></td>
257 <td><%= labels %></td>
258 <td><%= idToName(owner,"slices","name") %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800259 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700260</script>
261
262<script type="text/template" id="xosAdmin-network-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800263 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700264 <form>
265 <table>
266 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800267 <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700268 <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
269 <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800270 <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800271 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700272 </table>
273 </form>
274</script>
275
276<!-- NetworkSliver -->
277
278<script type="text/template" id="xosAdmin-networkSliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800279 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800280 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700281 <table class="test-table">
282 <thead><tr>
283 <th>id</th>
284 <th>network</th>
285 <th>sliver</th>
286 <th>ip</th>
287 <th>port_id</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800288 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700289 </tr></thead>
290 <tbody></tbody>
291 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800292 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700293</script>
294
295<script type="text/template" id="xosAdmin-networkSliver-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800296 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700297 <td><%= idToName(network,"networks","name") %></td>
298 <td><%= idToName(sliver,"slivers","name") %></td>
299 <td><%= ip %></td>
300 <td><%= port_id %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800301 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700302</script>
303
304<script type="text/template" id="xosAdmin-networkSliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800305 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700306 <form>
307 <table>
308 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
309 <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
310 <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
311 <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800312 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700313 </table>
314 </form>
315</script>
316
Scott Bakercefee292014-10-31 16:43:07 -0700317<!-- NetworkDeployment -->
318
319<script type="text/template" id="xosAdmin-networkDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800320 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800321 <%= xosListHeaderTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700322 <table class="test-table">
323 <thead><tr>
324 <th>id</th>
325 <th>network</th>
326 <th>deployment</th>
327 <th>net_id</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800328 <th>delete</th>
Scott Bakercefee292014-10-31 16:43:07 -0700329 </tr></thead>
330 <tbody></tbody>
331 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800332 <%= xosListFooterTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700333</script>
334
335<script type="text/template" id="xosAdmin-networkDeployment-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800336 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Bakercefee292014-10-31 16:43:07 -0700337 <td><%= idToName(network,"networks","name") %></td>
338 <td><%= idToName(deployment,"deployments","name") %></td>
339 <td><%= net_id %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800340 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Bakercefee292014-10-31 16:43:07 -0700341</script>
342
343<script type="text/template" id="xosAdmin-networkDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800344 <h3 class="xos-detail-title">Detail View: Network</h3>
Scott Bakercefee292014-10-31 16:43:07 -0700345 <form>
346 <table>
347 <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
348 <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
349 <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800350 <%= xosInlineDetailButtonsTemplate() %>
Scott Bakercefee292014-10-31 16:43:07 -0700351 </table>
352 </form>
353</script>
354
Scott Baker7e0e6b92014-10-30 16:10:16 -0700355<!-- Node -->
356
357<script type="text/template" id="xosAdmin-node-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800358 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800359 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700360 <table class="test-table">
361 <thead><tr>
362 <th>id</th>
363 <th>name</th>
364 <th>site</th>
365 <th>deployment</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800366 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700367 </tr></thead>
368 <tbody></tbody>
369 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800370 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700371</script>
372
373
374<script type="text/template" id="xosAdmin-node-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800375 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
376 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700377 <td><%= idToName(site,"sites","name") %></td>
378 <td><%= idToName(deployment,"deployments","name") %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800379 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700380</script>
381
382<script type="text/template" id="xosAdmin-node-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800383 <h3 class="xos-detail-title">Detail View: Node</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700384 <form>
385 <table>
386 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800387 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
388 <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800389 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700390 </table>
391 </form>
392</script>
393
394<!-- SliceRole -->
395
396<script type="text/template" id="xosAdmin-sliceRole-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800397 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800398 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700399 <table class="test-table">
400 <thead><tr>
401 <th>id</th>
402 <th>role</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800403 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700404 </tr></thead>
405 <tbody></tbody>
406 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800407 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700408</script>
409
410
411<script type="text/template" id="xosAdmin-sliceRole-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800412 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700413 <td><%= role %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800414 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700415</script>
416
417<script type="text/template" id="xosAdmin-sliceRole-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800418 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700419 <form>
420 <table>
421 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800422 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700423 </table>
424 </form>
425</script>
426
427<!-- Service -->
428
429<script type="text/template" id="xosAdmin-service-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800430 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800431 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700432 <table class="test-table">
433 <thead><tr>
434 <th>id</th>
435 <th>name</th>
436 <th>description</th>
437 <th>enabled</th>
438 <th>versionNumber</th>
439 <th>published</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800440 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700441 </tr></thead>
442 <tbody></tbody>
443 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800444 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700445</script>
446
447
448<script type="text/template" id="xosAdmin-service-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800449 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
450 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700451 <td><%= description %></td>
452 <td><%= enabled %></td>
453 <td><%= versionNumber %></td>
454 <td><%= published %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800455 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700456</script>
457
458<script type="text/template" id="xosAdmin-service-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800459 <h3 class="xos-detail-title">Detail View: Service</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700460 <form>
461 <table>
462 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
463 <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
464 <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800465 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700466 </table>
467 </form>
468</script>
469
470<!-- Site -->
471
472<script type="text/template" id="xosAdmin-site-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800473 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800474 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700475 <table class="test-table">
476 <thead><tr>
477 <th>id</th>
478 <th>name</th>
479 <th>url</th>
480 <th>enabled</th>
481 <th>login_base</th>
482 <th>is_public</th>
483 <th>abbreviated_name</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800484 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700485 </tr></thead>
486 <tbody></tbody>
487 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800488 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700489</script>
490
491<script type="text/template" id="xosAdmin-site-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800492 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
493 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700494 <td><%= site_url %></td>
495 <td><%= enabled %></td>
496 <td><%= login_base %></td>
497 <td><%= is_public %></td>
498 <td><%= abbreviated_name %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800499 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700500</script>
501
502<script type="text/template" id="xosAdmin-site-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800503 <h3 class="xos-detail-title">Detail View: Site</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700504 <form>
505 <table>
506 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800507 <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700508 <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
Scott Baker17390d22014-11-05 21:11:50 -0800509 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
510 <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700511 <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800512 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700513 </table>
514 </form>
515</script>
516
517<!-- Slice -->
518
519<script type="text/template" id="xosAdmin-slice-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800520 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800521 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700522 <table class="test-table">
523 <thead><tr>
524 <th>id</th>
525 <th>name</th>
526 <th>enabled</th>
527 <th>omf_friendly</th>
528 <th>description</th>
529 <th>slice_url</th>
530 <th>site</th>
531 <th>max_slivers</th>
532 <th>service</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800533 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700534 </tr></thead>
535 <tbody></tbody>
536 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800537 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700538</script>
539
540<script type="text/template" id="xosAdmin-slice-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800541 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
542 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700543 <td><%= enabled %></td>
544 <td><%= omf_friendly %></td>
545 <td><%= description %></td>
546 <td><%= slice_url %></td>
547 <td><%= idToName(site,"sites","name") %></td>
548 <td><%= max_slivers %></td>
549 <td><%= idToName(service,"services","name") %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800550 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700551</script>
552
553<script type="text/template" id="xosAdmin-slice-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800554 <h3 class="xos-detail-title">Detail View: Slice</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700555 <form>
556 <table>
557 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
Scott Baker47798362014-11-12 01:15:52 -0800558 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700559 <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
560 <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
561 <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
562 <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800563 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700564 </table>
565 </form>
566</script>
567
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800568<!-- SliceDeployment -->
Scott Baker7e0e6b92014-10-30 16:10:16 -0700569
570<script type="text/template" id="xosAdmin-sliceDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800571 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800572 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700573 <table class="test-table">
574 <thead><tr>
575 <th>id</th>
576 <th>slice</th>
577 <th>deployment</th>
578 <th>tenant_id</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800579 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700580 </tr></thead>
581 <tbody></tbody>
582 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800583 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700584</script>
585
586<script type="text/template" id="xosAdmin-sliceDeployment-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800587 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700588 <td><%= idToName(slice,"slices","name") %></td>
589 <td><%= idToName(deployment,"deployments","name") %></td>
590 <td><%= tenant_id %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800591 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700592</script>
593
594<script type="text/template" id="xosAdmin-sliceDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800595 <h3 class="xos-detail-title">Detail View: Slice Deployment</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700596 <form>
597 <table>
598 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
599 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
600 <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800601 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700602 </table>
603 </form>
604</script>
605
606<!-- SlicePrivilege -->
607
608<script type="text/template" id="xosAdmin-slicePrivilege-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800609 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800610 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700611 <table class="test-table">
612 <thead><tr>
613 <th>id</th>
614 <th>user</th>
615 <th>slice</th>
616 <th>role</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800617 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700618 </tr></thead>
619 <tbody></tbody>
620 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800621 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700622</script>
623
624<script type="text/template" id="xosAdmin-slicePrivilege-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800625 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700626 <td><%= idToName(user,"users","username") %></td>
627 <td><%= idToName(slice,"slices","name") %></td>
628 <td><%= idToName(role,"sliceRoles","role") %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800629 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700630</script>
631
632<script type="text/template" id="xosAdmin-slicePrivilege-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800633 <h3 class="xos-detail-title">Detail View: Slice Privilege</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700634 <form>
635 <table>
636 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
637 <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
638 <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800639 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700640 </table>
641 </form>
642</script>
643
644<!-- Sliver -->
645
646<script type="text/template" id="xosAdmin-sliver-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800647 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800648 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700649 <table class="test-table">
650 <thead><tr>
651 <th>id</th>
652 <th>name</th>
653 <th>instance_id</th>
654 <th>instance_name</th>
655 <th>image</th>
656 <th>creator</th>
657 <th>slice</th>
658 <th>node</th>
659 <th>deploymentNetwork</th>
660 <th>flavor</th>
661 <th>userData</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800662 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700663 </tr></thead>
664 <tbody></tbody>
665 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800666 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700667</script>
668
669
670<script type="text/template" id="xosAdmin-sliver-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800671 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
672 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700673 <td><%= instance_id %></td>
674 <td><%= instance_name %></td>
675 <td><%= idToName(image,"images","name") %></td>
676 <td><%= idToName(creator,"users","name") %></td>
677 <td><%= idToName(slice,"slices","name") %></td>
678 <td><%= idToName(node,"nodes","name") %></td>
679 <td><%= idToName(deploymentNetwork,"deployments","name") %></td>
680 <td><%= flavor %></td>
681 <td><%= userData %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800682 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700683</script>
684
685<script type="text/template" id="xosAdmin-sliver-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800686 <h3 class="xos-detail-title">Detail View: Sliver</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700687 <form>
688 <table>
689 <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
690 <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
691 <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800692 <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
693 <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
Scott Bakered12d512014-11-04 23:50:45 -0800694 <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
695 <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800696 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700697 </table>
698 </form>
699</script>
700
701<!-- User -->
702
703<script type="text/template" id="xosAdmin-user-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800704 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800705 <%= xosListHeaderTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700706 <table class="test-table">
707 <thead><tr>
708 <th>id</th>
709 <th>username</th>
710 <th>firstname</th>
711 <th>lastname</th>
712 <th>phone</th>
713 <th>user_url</th>
714 <th>site</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800715 <th>delete</th>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700716 </tr></thead>
717 <tbody></tbody>
718 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800719 <%= xosListFooterTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700720</script>
721
722
723<script type="text/template" id="xosAdmin-user-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800724 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
725 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700726 <td><%= firstname %></td>
727 <td><%= lastname %></td>
728 <td><%= phone %></td>
729 <td><%= user_url %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700730 <td><%= idToName(site,"sites","name") %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800731 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700732</script>
733
734<script type="text/template" id="xosAdmin-user-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800735 <h3 class="xos-detail-title">Detail View: User</h3>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700736 <form>
737 <table>
738 <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
739 <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
740 <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
741 <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
742 <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
Scott Bakerd5cdaf02014-11-02 22:28:59 -0800743 <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800744 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker7e0e6b92014-10-30 16:10:16 -0700745 </table>
746 </form>
747</script>
748
Scott Baker84e01fe2014-10-31 00:18:24 -0700749<!-- UserDeployments -->
750
751<script type="text/template" id="xosAdmin-userDeployment-list-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800752 <h3 class="xos-list-title"><%= title %></h3>
Scott Baker2c974852014-12-04 17:23:27 -0800753 <%= xosListHeaderTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700754 <table class="test-table">
755 <thead><tr>
756 <th>id</th>
757 <th>user</th>
758 <th>deployment</th>
759 <th>kuser_id</th>
Scott Baker3f9fa002014-12-02 18:04:50 -0800760 <th>delete</th>
Scott Baker84e01fe2014-10-31 00:18:24 -0700761 </tr></thead>
762 <tbody></tbody>
763 </table>
Scott Baker2c974852014-12-04 17:23:27 -0800764 <%= xosListFooterTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700765</script>
766
Scott Baker84e01fe2014-10-31 00:18:24 -0700767<script type="text/template" id="xosAdmin-userDeployment-listitem-template">
Scott Bakerb1e63332014-12-02 10:49:04 -0800768 <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700769 <td><%= idToName(user,"users","username") %></td>
770 <td><%= idToName(deployment,"deployments","name") %></td>
771 <td><%= kuser_id %></td>
Scott Baker3f9fa002014-12-02 18:04:50 -0800772 <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td>
Scott Baker84e01fe2014-10-31 00:18:24 -0700773</script>
774
775<script type="text/template" id="xosAdmin-userDeployment-detail-template">
Scott Baker76d7b622014-11-04 23:20:48 -0800776 <h3 class="xos-detail-title">Detail View: UserDeployment</h3>
Scott Baker84e01fe2014-10-31 00:18:24 -0700777 <form>
778 <table>
779 <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
780 <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
781 <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
Scott Baker09ed3e02014-11-07 13:01:43 -0800782 <%= xosInlineDetailButtonsTemplate() %>
Scott Baker84e01fe2014-10-31 00:18:24 -0700783 </table>
784 </form>
785</script>
Scott Baker09ed3e02014-11-07 13:01:43 -0800786
787<script>
788xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html());
Scott Baker2c974852014-12-04 17:23:27 -0800789xosListHeaderTemplate = _.template($("#xos-list-header-template").html());
790xosListFooterTemplate = _.template($("#xos-list-footer-template").html());
Scott Bakerb1e63332014-12-02 10:49:04 -0800791xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html());
792xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html());
Scott Baker09ed3e02014-11-07 13:01:43 -0800793</script>