Scott Baker | fdaee92 | 2014-11-03 09:43:23 -0800 | [diff] [blame] | 1 | <!-- Error and Success templates --> |
| 2 | |
Scott Baker | 416f087 | 2014-11-03 23:54:59 -0800 | [diff] [blame] | 3 | <script type="text/template" id="xos-error-template"> |
Scott Baker | fdaee92 | 2014-11-03 09:43:23 -0800 | [diff] [blame] | 4 | <button id="close-error-box">Close Error Message</button> |
| 5 | <h3>An error has occurred.</h3> |
| 6 | <table class="test-error-table"> |
| 7 | <tr><td>Code:</td><td><%= status %></td></tr> |
| 8 | <tr><td>Message:</td><td><%= statusText %></td></tr> |
| 9 | </table> |
| 10 | </script> |
| 11 | |
Scott Baker | 416f087 | 2014-11-03 23:54:59 -0800 | [diff] [blame] | 12 | <script type="text/template" id="xos-success-template"> |
Scott Baker | fdaee92 | 2014-11-03 09:43:23 -0800 | [diff] [blame] | 13 | <button id="close-success-box">Close Success Message</button> |
| 14 | <h3>Success!</h3> |
| 15 | <table class="test-success-table"> |
| 16 | <tr><td>Code:</td><td><%= status %></td></tr> |
| 17 | <tr><td>Message:</td><td><%= statusText %></td></tr> |
| 18 | </table> |
| 19 | </script> |
| 20 | |
Scott Baker | 90004d5 | 2014-11-04 09:34:17 -0800 | [diff] [blame] | 21 | <script type="text/template" id="xos-navbutton-old"> |
Scott Baker | 416f087 | 2014-11-03 23:54:59 -0800 | [diff] [blame] | 22 | <button class="btn btn-default btn-xosnav" onclick="<%= router %>.navigate('<%= routeUrl %>', {trigger: true})"><%= name %></button><br> |
| 23 | </script> |
| 24 | |
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 25 | <script type="text/template" id="xos-status-template"> |
Scott Baker | 01c9d61 | 2014-11-14 16:13:43 -0800 | [diff] [blame] | 26 | <div class="xos-status xos-<%= statusclass %>"><%= what %>: <%= statusText %> (<%= status %>)</div> |
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 27 | </script> |
| 28 | |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 29 | <script type="text/template" id="xos-tabs-template"> |
| 30 | <ul class="xos-nav-list"> |
| 31 | <% _.each(tabs, function(tab) { %> |
| 32 | <li class="xos-nav-item" id="xos-nav-<%= tab["region"] %>"><%= tab["name"] %></li> |
| 33 | <% }); %> |
| 34 | </ul> |
| 35 | </script> |
| 36 | |
| 37 | <script type="text/template" id="xos-title-list"> |
Scott Baker | 13e6f0d | 2014-11-18 17:02:07 -0800 | [diff] [blame] | 38 | <h3><img src="/static/img/brokencircle.gif" height=16 width=16 id="xos-list-title-spinner"> <%= title %></h3> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 39 | </script> |
| 40 | |
| 41 | <script type="text/template" id="xos-title-detail"> |
| 42 | <h3><%= title %></h3> |
| 43 | </script> |
| 44 | |
Scott Baker | 90004d5 | 2014-11-04 09:34:17 -0800 | [diff] [blame] | 45 | <script type="text/template" id="xos-navbutton"> |
| 46 | <li> |
| 47 | <a href="<%= routeUrl %>"> |
| 48 | <i class="<%= iconClass %>"></i> |
| 49 | <%= name %> |
| 50 | </a> |
Scott Baker | 0bf96b2 | 2014-11-04 15:41:47 -0800 | [diff] [blame] | 51 | </li> |
Scott Baker | 90004d5 | 2014-11-04 09:34:17 -0800 | [diff] [blame] | 52 | </script> |
| 53 | |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 54 | <script type="text/template" id="xos-inline-detail-buttons-template"> |
| 55 | <tr> |
| 56 | <td colspan=2><button class="btn js-submit btn-xos-detail btn-xos-save-leave">Save</button> |
| 57 | <button class="btn js-submit btn-xos-detail btn-xos-save-continue">Save and Continue Editing</button> |
| 58 | <button class="btn js-submit btn-xos-detail btn-xos-save-another">Save and Add Another</button> |
Scott Baker | 13e6f0d | 2014-11-18 17:02:07 -0800 | [diff] [blame] | 59 | <button class="btn js-submit btn-xos-detail btn-xos-delete">Delete</button> |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 60 | </td> |
| 61 | </tr> |
| 62 | </script> |
| 63 | |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 64 | <script type="text/template" id="xos-inline-list-buttons-template"> |
| 65 | <button class="btn js-submit btn-xos-list btn-xos-add">Add</button> |
Scott Baker | 13e6f0d | 2014-11-18 17:02:07 -0800 | [diff] [blame] | 66 | <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button> |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 67 | </td> |
| 68 | </tr> |
| 69 | </script> |
| 70 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 71 | <!-- Deployment --> |
| 72 | |
| 73 | <script type="text/template" id="xosAdmin-deployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 74 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 75 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 76 | <table class="test-table"> |
| 77 | <thead><tr> |
| 78 | <th>id</th> |
| 79 | <th>name</th> |
| 80 | <th>backend</th> |
| 81 | <th>admin_tenant</th> |
| 82 | <th># sites</th> |
| 83 | </tr></thead> |
| 84 | <tbody></tbody> |
| 85 | </table> |
| 86 | </script> |
| 87 | |
| 88 | |
| 89 | <script type="text/template" id="xosAdmin-deployment-listitem-template"> |
| 90 | <td class="objectLink"><%= id %></td> |
| 91 | <td class="objectLink"><%= name %></td> |
| 92 | <td><%= backend_type %></td> |
| 93 | <td><%= admin_tenant %></td> |
Scott Baker | 13e6f0d | 2014-11-18 17:02:07 -0800 | [diff] [blame] | 94 | <td><%= typeof sites != 'undefined' && sites.length || 0 %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 95 | </script> |
| 96 | |
| 97 | <script type="text/template" id="xosAdmin-deployment-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 98 | <h3 class="xos-detail-title">Detail View: Deployment</h3> |
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 99 | <form> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 100 | <table>
|
| 101 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
| 102 | <tr><td>Backend:</td><td><input type="text" name="backend_type" value="<%= backend_type %>"></td></tr>
|
| 103 | <tr><td>Admin Tenant:</td><td><input type="text" name="admin_tenant" value="<%= admin_tenant %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 104 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 105 | </table>
|
| 106 | </form>
|
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 107 | </script>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 108 | |
| 109 | <!-- Image --> |
| 110 | |
| 111 | <script type="text/template" id="xosAdmin-image-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 112 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 113 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 114 | <table class="test-table"> |
| 115 | <thead><tr> |
| 116 | <th>id</th> |
| 117 | <th>name</th> |
| 118 | <th>disk_format</th> |
| 119 | <th>container_format</th> |
| 120 | <th>path</th> |
| 121 | </tr></thead> |
| 122 | <tbody></tbody> |
| 123 | </table> |
| 124 | </script> |
| 125 | |
| 126 | <script type="text/template" id="xosAdmin-image-listitem-template"> |
| 127 | <td class="objectLink"><%= id %></td> |
| 128 | <td class="objectLink"><%= name %></td> |
| 129 | <td><%= disk_format %></td> |
| 130 | <td><%= container_format %></td> |
| 131 | <td><%= path %></td> |
| 132 | </script> |
| 133 | |
| 134 | <script type="text/template" id="xosAdmin-image-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 135 | <h3 class="xos-detail-title">Detail View: Image</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 136 | <form>
|
| 137 | <table>
|
| 138 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
| 139 | <tr><td>Disk Format:</td><td><input type="text" name="backend_type" value="<%= disk_format %>"></td></tr>
|
| 140 | <tr><td>Container Format:</td><td><input type="text" name="admin_tenant" value="<%= container_format %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 141 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 142 | </table>
|
| 143 | </form>
|
| 144 | </script> |
| 145 | |
| 146 | <!-- NetworkTemplate --> |
| 147 | |
| 148 | <script type="text/template" id="xosAdmin-networkTemplate-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 149 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 150 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 151 | <table class="test-table"> |
| 152 | <thead><tr> |
| 153 | <th>id</th> |
| 154 | <th>name</th> |
| 155 | <th>description</th> |
| 156 | <th>visibility</th> |
| 157 | <th>translation</th> |
| 158 | <th>sharedNetworkName</th> |
| 159 | <th>sharedNetworkId</th> |
| 160 | </tr></thead> |
| 161 | <tbody></tbody> |
| 162 | </table> |
| 163 | </script> |
| 164 | |
| 165 | |
| 166 | <script type="text/template" id="xosAdmin-networkTemplate-listitem-template"> |
| 167 | <td class="objectLink"><%= id %></td> |
| 168 | <td class="objectLink"><%= name %></td> |
| 169 | <td><%= description %></td> |
| 170 | <td><%= visibility %></td> |
| 171 | <td><%= translation %></td> |
| 172 | <td><%= sharedNetworkName %></td> |
| 173 | <td><%= sharedNetworkId %></td> |
| 174 | </script> |
| 175 | |
| 176 | <script type="text/template" id="xosAdmin-networkTemplate-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 177 | <h3 class="xos-detail-title">Detail View: NetworkTemplate</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 178 | <form>
|
| 179 | <table>
|
| 180 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
| 181 | <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
|
| 182 | <tr><td>Visibility:</td><td><input type="text" name="visibility" value="<%= visibility %>"></td></tr>
|
| 183 | <tr><td>Translation:</td><td><input type="text" name="translation" value="<%= translation %>"></td></tr>
|
| 184 | <tr><td>Shared Network Name:</td><td><input type="text" name="sharedNetworkName" value="<%= sharedNetworkName %>"></td></tr>
|
| 185 | <tr><td>Shared Network Id:</td><td><input type="text" name="sharedNetworkId" value="<%= sharedNetworkId %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 186 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 187 | </table>
|
| 188 | </form>
|
| 189 | </script> |
| 190 | |
| 191 | <!-- Network --> |
| 192 | |
| 193 | <script type="text/template" id="xosAdmin-network-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 194 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 195 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 196 | <table class="test-table"> |
| 197 | <thead><tr> |
| 198 | <th>id</th> |
| 199 | <th>name</th> |
| 200 | <th>template</th> |
| 201 | <th>ports</th> |
| 202 | <th>labels</th> |
| 203 | <th>owner</th> |
| 204 | </tr></thead> |
| 205 | <tbody></tbody> |
| 206 | </table> |
| 207 | </script> |
| 208 | |
| 209 | <script type="text/template" id="xosAdmin-network-listitem-template"> |
| 210 | <td class="objectLink"><%= id %></td> |
| 211 | <td class="objectLink"><%= name %></td> |
| 212 | <td><%= idToName(template,"networkTemplates","name") %></td> |
| 213 | <td><%= ports %></td> |
| 214 | <td><%= labels %></td> |
| 215 | <td><%= idToName(owner,"slices","name") %></td> |
| 216 | </script> |
| 217 | |
| 218 | <script type="text/template" id="xosAdmin-network-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 219 | <h3 class="xos-detail-title">Detail View: Network</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 220 | <form>
|
| 221 | <table>
|
| 222 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 223 | <tr><td>Template:</td><td><%= idToSelect("template",template,"networkTemplates","name") %></td></tr>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 224 | <tr><td>Ports:</td><td><input type="text" name="ports" value="<%= ports %>"></td></tr>
|
| 225 | <tr><td>Labels:</td><td><input type="text" name="labels" value="<%= labels %>"></td></tr>
|
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 226 | <tr><td>Owner:</td><td><%= idToSelect("owner",owner,"slices","name") %></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 227 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 228 | </table>
|
| 229 | </form>
|
| 230 | </script> |
| 231 | |
| 232 | <!-- NetworkSliver --> |
| 233 | |
| 234 | <script type="text/template" id="xosAdmin-networkSliver-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 235 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 236 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 237 | <table class="test-table"> |
| 238 | <thead><tr> |
| 239 | <th>id</th> |
| 240 | <th>network</th> |
| 241 | <th>sliver</th> |
| 242 | <th>ip</th> |
| 243 | <th>port_id</th> |
| 244 | </tr></thead> |
| 245 | <tbody></tbody> |
| 246 | </table> |
| 247 | </script> |
| 248 | |
| 249 | <script type="text/template" id="xosAdmin-networkSliver-listitem-template"> |
| 250 | <td class="objectLink"><%= id %></td> |
| 251 | <td><%= idToName(network,"networks","name") %></td> |
| 252 | <td><%= idToName(sliver,"slivers","name") %></td> |
| 253 | <td><%= ip %></td> |
| 254 | <td><%= port_id %></td> |
| 255 | </script> |
| 256 | |
| 257 | <script type="text/template" id="xosAdmin-networkSliver-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 258 | <h3 class="xos-detail-title">Detail View: Network</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 259 | <form>
|
| 260 | <table>
|
| 261 | <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
|
| 262 | <tr><td>Sliver:</td><td><input type="text" name="sliver" value="<%= sliver %>"></td></tr>
|
| 263 | <tr><td>Ip:</td><td><input type="text" name="ip" value="<%= ip %>"></td></tr>
|
| 264 | <tr><td>Port_id:</td><td><input type="text" name="port_id" value="<%= port_id %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 265 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 266 | </table>
|
| 267 | </form>
|
| 268 | </script> |
| 269 | |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 270 | <!-- NetworkDeployment --> |
| 271 | |
| 272 | <script type="text/template" id="xosAdmin-networkDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 273 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 274 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 275 | <table class="test-table"> |
| 276 | <thead><tr> |
| 277 | <th>id</th> |
| 278 | <th>network</th> |
| 279 | <th>deployment</th> |
| 280 | <th>net_id</th> |
| 281 | </tr></thead> |
| 282 | <tbody></tbody> |
| 283 | </table> |
| 284 | </script> |
| 285 | |
| 286 | <script type="text/template" id="xosAdmin-networkDeployment-listitem-template"> |
| 287 | <td class="objectLink"><%= id %></td> |
| 288 | <td><%= idToName(network,"networks","name") %></td> |
| 289 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 290 | <td><%= net_id %></td> |
| 291 | </script> |
| 292 | |
| 293 | <script type="text/template" id="xosAdmin-networkDeployment-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 294 | <h3 class="xos-detail-title">Detail View: Network</h3> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 295 | <form>
|
| 296 | <table>
|
| 297 | <tr><td>Network:</td><td><input type="text" name="network" value="<%= network %>"></td></tr>
|
| 298 | <tr><td>Sliver:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
|
| 299 | <tr><td>Ip:</td><td><input type="text" name="net_id" value="<%= net_id %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 300 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 301 | </table>
|
| 302 | </form>
|
| 303 | </script> |
| 304 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 305 | <!-- Node --> |
| 306 | |
| 307 | <script type="text/template" id="xosAdmin-node-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 308 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 309 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 310 | <table class="test-table"> |
| 311 | <thead><tr> |
| 312 | <th>id</th> |
| 313 | <th>name</th> |
| 314 | <th>site</th> |
| 315 | <th>deployment</th> |
| 316 | </tr></thead> |
| 317 | <tbody></tbody> |
| 318 | </table> |
| 319 | </script> |
| 320 | |
| 321 | |
| 322 | <script type="text/template" id="xosAdmin-node-listitem-template"> |
| 323 | <td class="objectLink"><%= id %></td> |
| 324 | <td class="objectLink"><%= name %></td> |
| 325 | <td><%= idToName(site,"sites","name") %></td> |
| 326 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 327 | </script> |
| 328 | |
| 329 | <script type="text/template" id="xosAdmin-node-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 330 | <h3 class="xos-detail-title">Detail View: Node</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 331 | <form>
|
| 332 | <table>
|
| 333 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 334 | <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
|
| 335 | <tr><td>Deployment:</td><td><%= idToSelect("deployment",deployment,"deployments","name") %></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 336 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 337 | </table>
|
| 338 | </form>
|
| 339 | </script> |
| 340 | |
| 341 | <!-- SliceRole --> |
| 342 | |
| 343 | <script type="text/template" id="xosAdmin-sliceRole-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 344 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 345 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 346 | <table class="test-table"> |
| 347 | <thead><tr> |
| 348 | <th>id</th> |
| 349 | <th>role</th> |
| 350 | </tr></thead> |
| 351 | <tbody></tbody> |
| 352 | </table> |
| 353 | </script> |
| 354 | |
| 355 | |
| 356 | <script type="text/template" id="xosAdmin-sliceRole-listitem-template"> |
| 357 | <td class="objectLink"><%= id %></td> |
| 358 | <td><%= role %></td> |
| 359 | </script> |
| 360 | |
| 361 | <script type="text/template" id="xosAdmin-sliceRole-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 362 | <h3 class="xos-detail-title">Detail View: Service</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 363 | <form>
|
| 364 | <table>
|
| 365 | <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 366 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 367 | </table>
|
| 368 | </form>
|
| 369 | </script> |
| 370 | |
| 371 | <!-- Service --> |
| 372 | |
| 373 | <script type="text/template" id="xosAdmin-service-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 374 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 375 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 376 | <table class="test-table"> |
| 377 | <thead><tr> |
| 378 | <th>id</th> |
| 379 | <th>name</th> |
| 380 | <th>description</th> |
| 381 | <th>enabled</th> |
| 382 | <th>versionNumber</th> |
| 383 | <th>published</th> |
| 384 | </tr></thead> |
| 385 | <tbody></tbody> |
| 386 | </table> |
| 387 | </script> |
| 388 | |
| 389 | |
| 390 | <script type="text/template" id="xosAdmin-service-listitem-template"> |
| 391 | <td class="objectLink"><%= id %></td> |
| 392 | <td class="objectLink"><%= name %></td> |
| 393 | <td><%= description %></td> |
| 394 | <td><%= enabled %></td> |
| 395 | <td><%= versionNumber %></td> |
| 396 | <td><%= published %></td> |
| 397 | </script> |
| 398 | |
| 399 | <script type="text/template" id="xosAdmin-service-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 400 | <h3 class="xos-detail-title">Detail View: Service</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 401 | <form>
|
| 402 | <table>
|
| 403 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
| 404 | <tr><td>description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
|
| 405 | <tr><td>Version Number:</td><td><input type="text" name="versionNumber" value="<%= versionNumber %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 406 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 407 | </table>
|
| 408 | </form>
|
| 409 | </script> |
| 410 | |
| 411 | <!-- Site --> |
| 412 | |
| 413 | <script type="text/template" id="xosAdmin-site-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 414 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 415 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 416 | <table class="test-table"> |
| 417 | <thead><tr> |
| 418 | <th>id</th> |
| 419 | <th>name</th> |
| 420 | <th>url</th> |
| 421 | <th>enabled</th> |
| 422 | <th>login_base</th> |
| 423 | <th>is_public</th> |
| 424 | <th>abbreviated_name</th> |
| 425 | </tr></thead> |
| 426 | <tbody></tbody> |
| 427 | </table> |
| 428 | </script> |
| 429 | |
| 430 | <script type="text/template" id="xosAdmin-site-listitem-template"> |
| 431 | <td class="objectLink"><%= id %></td> |
| 432 | <td class="objectLink"><%= name %></td> |
| 433 | <td><%= site_url %></td> |
| 434 | <td><%= enabled %></td> |
| 435 | <td><%= login_base %></td> |
| 436 | <td><%= is_public %></td> |
| 437 | <td><%= abbreviated_name %></td> |
| 438 | </script> |
| 439 | |
| 440 | <script type="text/template" id="xosAdmin-site-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 441 | <h3 class="xos-detail-title">Detail View: Site</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 442 | <form>
|
| 443 | <table>
|
| 444 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 445 | <tr><td>abbreviated_name:</td><td><input type="text" name="abbreviated_name" value="<%= abbreviated_name %>"></td></tr>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 446 | <tr><td>url:</td><td><input type="text" name="site_url" value="<%= site_url %>"></td></tr>
|
Scott Baker | e2e47fb | 2014-11-05 21:11:50 -0800 | [diff] [blame] | 447 | <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
|
| 448 | <tr><td>Is Public:</td><td><input type="checkbox" name="is_public" <% if (is_public) print("checked"); %>></td></tr>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 449 | <tr><td>login_base:</td><td><input type="text" name="login_base" value="<%= login_base %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 450 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 451 | </table>
|
| 452 | </form>
|
| 453 | </script> |
| 454 | |
| 455 | <!-- Slice --> |
| 456 | |
| 457 | <script type="text/template" id="xosAdmin-slice-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 458 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 459 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 460 | <table class="test-table"> |
| 461 | <thead><tr> |
| 462 | <th>id</th> |
| 463 | <th>name</th> |
| 464 | <th>enabled</th> |
| 465 | <th>omf_friendly</th> |
| 466 | <th>description</th> |
| 467 | <th>slice_url</th> |
| 468 | <th>site</th> |
| 469 | <th>max_slivers</th> |
| 470 | <th>service</th> |
| 471 | </tr></thead> |
| 472 | <tbody></tbody> |
| 473 | </table> |
| 474 | </script> |
| 475 | |
| 476 | <script type="text/template" id="xosAdmin-slice-listitem-template"> |
| 477 | <td class="objectLink"><%= id %></td> |
| 478 | <td class="objectLink"><%= name %></td> |
| 479 | <td><%= enabled %></td> |
| 480 | <td><%= omf_friendly %></td> |
| 481 | <td><%= description %></td> |
| 482 | <td><%= slice_url %></td> |
| 483 | <td><%= idToName(site,"sites","name") %></td> |
| 484 | <td><%= max_slivers %></td> |
| 485 | <td><%= idToName(service,"services","name") %></td> |
| 486 | </script> |
| 487 | |
| 488 | <script type="text/template" id="xosAdmin-slice-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 489 | <h3 class="xos-detail-title">Detail View: Slice</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 490 | <form>
|
| 491 | <table>
|
| 492 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 493 | <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 494 | <tr><td>Enabled:</td><td><input type="checkbox" name="enabled" <% if (enabled) print("checked"); %>></td></tr>
|
| 495 | <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
|
| 496 | <tr><td>Url:</td><td><input type="text" name="slice_url" value="<%= slice_url %>"></td></tr>
|
| 497 | <tr><td>Max Slivers:</td><td><input type="text" name="max_slivers" value="<%= max_slivers %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 498 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 499 | </table>
|
| 500 | </form>
|
| 501 | </script> |
| 502 | |
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 503 | <!-- SliceDeployment --> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 504 | |
| 505 | <script type="text/template" id="xosAdmin-sliceDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 506 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 507 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 508 | <table class="test-table"> |
| 509 | <thead><tr> |
| 510 | <th>id</th> |
| 511 | <th>slice</th> |
| 512 | <th>deployment</th> |
| 513 | <th>tenant_id</th> |
| 514 | </tr></thead> |
| 515 | <tbody></tbody> |
| 516 | </table> |
| 517 | </script> |
| 518 | |
| 519 | <script type="text/template" id="xosAdmin-sliceDeployment-listitem-template"> |
| 520 | <td class="objectLink"><%= id %></td> |
| 521 | <td><%= idToName(slice,"slices","name") %></td> |
| 522 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 523 | <td><%= tenant_id %></td> |
| 524 | </script> |
| 525 | |
| 526 | <script type="text/template" id="xosAdmin-sliceDeployment-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 527 | <h3 class="xos-detail-title">Detail View: Slice Deployment</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 528 | <form>
|
| 529 | <table>
|
| 530 | <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
|
| 531 | <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
|
| 532 | <tr><td>Tenant Id:</td><td><input type="text" name="tenant_id" value="<%= tenant_id %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 533 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 534 | </table>
|
| 535 | </form>
|
| 536 | </script> |
| 537 | |
| 538 | <!-- SlicePrivilege --> |
| 539 | |
| 540 | <script type="text/template" id="xosAdmin-slicePrivilege-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 541 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 542 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 543 | <table class="test-table"> |
| 544 | <thead><tr> |
| 545 | <th>id</th> |
| 546 | <th>user</th> |
| 547 | <th>slice</th> |
| 548 | <th>role</th> |
| 549 | </tr></thead> |
| 550 | <tbody></tbody> |
| 551 | </table> |
| 552 | </script> |
| 553 | |
| 554 | <script type="text/template" id="xosAdmin-slicePrivilege-listitem-template"> |
| 555 | <td class="objectLink"><%= id %></td> |
| 556 | <td><%= idToName(user,"users","username") %></td> |
| 557 | <td><%= idToName(slice,"slices","name") %></td> |
| 558 | <td><%= idToName(role,"sliceRoles","role") %></td> |
| 559 | </script> |
| 560 | |
| 561 | <script type="text/template" id="xosAdmin-slicePrivilege-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 562 | <h3 class="xos-detail-title">Detail View: Slice Privilege</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 563 | <form>
|
| 564 | <table>
|
| 565 | <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
|
| 566 | <tr><td>Slice:</td><td><input type="text" name="slice" value="<%= slice %>"></td></tr>
|
| 567 | <tr><td>Role:</td><td><input type="text" name="role" value="<%= role %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 568 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 569 | </table>
|
| 570 | </form>
|
| 571 | </script> |
| 572 | |
| 573 | <!-- Sliver --> |
| 574 | |
| 575 | <script type="text/template" id="xosAdmin-sliver-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 576 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 577 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 578 | <table class="test-table"> |
| 579 | <thead><tr> |
| 580 | <th>id</th> |
| 581 | <th>name</th> |
| 582 | <th>instance_id</th> |
| 583 | <th>instance_name</th> |
| 584 | <th>image</th> |
| 585 | <th>creator</th> |
| 586 | <th>slice</th> |
| 587 | <th>node</th> |
| 588 | <th>deploymentNetwork</th> |
| 589 | <th>flavor</th> |
| 590 | <th>userData</th> |
| 591 | </tr></thead> |
| 592 | <tbody></tbody> |
| 593 | </table> |
| 594 | </script> |
| 595 | |
| 596 | |
| 597 | <script type="text/template" id="xosAdmin-sliver-listitem-template"> |
| 598 | <td class="objectLink"><%= id %></td> |
| 599 | <td class="objectLink"><%= name %></td> |
| 600 | <td><%= instance_id %></td> |
| 601 | <td><%= instance_name %></td> |
| 602 | <td><%= idToName(image,"images","name") %></td> |
| 603 | <td><%= idToName(creator,"users","name") %></td> |
| 604 | <td><%= idToName(slice,"slices","name") %></td> |
| 605 | <td><%= idToName(node,"nodes","name") %></td> |
| 606 | <td><%= idToName(deploymentNetwork,"deployments","name") %></td> |
| 607 | <td><%= flavor %></td> |
| 608 | <td><%= userData %></td> |
| 609 | </script> |
| 610 | |
| 611 | <script type="text/template" id="xosAdmin-sliver-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 612 | <h3 class="xos-detail-title">Detail View: Sliver</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 613 | <form>
|
| 614 | <table>
|
| 615 | <tr><td>Name:</td><td><input type="text" name="name" value="<%= name %>"></td></tr>
|
| 616 | <tr><td>instance_id:</td><td><input type="text" name="instance_id" value="<%= instance_id %>"></td></tr>
|
| 617 | <tr><td>instance_name:</td><td><input type="text" name="instance_name" value="<%= instance_name %>"></td></tr>
|
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 618 | <tr><td>Image:</td><td><%= idToSelect("image",image,"images","name") %></td></tr>
|
| 619 | <tr><td>Creator:</td><td><%= idToSelect("creator",creator,"users","username") %></td></tr>
|
Scott Baker | 98e3177 | 2014-11-04 23:50:45 -0800 | [diff] [blame] | 620 | <tr><td>Slice:</td><td><%= idToSelect("slice",slice,"slices","name") %></td></tr>
|
| 621 | <tr><td>Deployment:</td><td><%= idToSelect("deploymentNetwork",deploymentNetwork,"deployments","name") %></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 622 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 623 | </table>
|
| 624 | </form>
|
| 625 | </script> |
| 626 | |
| 627 | <!-- User --> |
| 628 | |
| 629 | <script type="text/template" id="xosAdmin-user-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 630 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 631 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 632 | <table class="test-table"> |
| 633 | <thead><tr> |
| 634 | <th>id</th> |
| 635 | <th>username</th> |
| 636 | <th>firstname</th> |
| 637 | <th>lastname</th> |
| 638 | <th>phone</th> |
| 639 | <th>user_url</th> |
| 640 | <th>site</th> |
| 641 | </tr></thead> |
| 642 | <tbody></tbody> |
| 643 | </table> |
| 644 | </script> |
| 645 | |
| 646 | |
| 647 | <script type="text/template" id="xosAdmin-user-listitem-template"> |
| 648 | <td class="objectLink"><%= id %></td> |
| 649 | <td class="objectLink"><%= username %></td> |
| 650 | <td><%= firstname %></td> |
| 651 | <td><%= lastname %></td> |
| 652 | <td><%= phone %></td> |
| 653 | <td><%= user_url %></td> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 654 | <td><%= idToName(site,"sites","name") %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 655 | </script> |
| 656 | |
| 657 | <script type="text/template" id="xosAdmin-user-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 658 | <h3 class="xos-detail-title">Detail View: User</h3> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 659 | <form>
|
| 660 | <table>
|
| 661 | <tr><td>User Name:</td><td><input type="text" name="username" value="<%= username %>"></td></tr>
|
| 662 | <tr><td>First Name:</td><td><input type="text" name="firstname" value="<%= firstname %>"></td></tr>
|
| 663 | <tr><td>Last Name:</td><td><input type="text" name="lastname" value="<%= lastname %>"></td></tr>
|
| 664 | <tr><td>Phone:</td><td><input type="text" name="phone" value="<%= phone %>"></td></tr>
|
| 665 | <tr><td>Url:</td><td><input type="text" name="user_url" value="<%= user_url %>"></td></tr>
|
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 666 | <tr><td>Site:</td><td><%= idToSelect("site",site,"sites","name") %></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 667 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 668 | </table>
|
| 669 | </form>
|
| 670 | </script> |
| 671 | |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 672 | <!-- UserDeployments --> |
| 673 | |
| 674 | <script type="text/template" id="xosAdmin-userDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 675 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | bb5e15f | 2014-11-12 01:15:52 -0800 | [diff] [blame] | 676 | <%= xosInlineListButtonsTemplate() %> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 677 | <table class="test-table"> |
| 678 | <thead><tr> |
| 679 | <th>id</th> |
| 680 | <th>user</th> |
| 681 | <th>deployment</th> |
| 682 | <th>kuser_id</th> |
| 683 | </tr></thead> |
| 684 | <tbody></tbody> |
| 685 | </table> |
| 686 | </script> |
| 687 | |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 688 | <script type="text/template" id="xosAdmin-userDeployment-listitem-template"> |
| 689 | <td class="objectLink"><%= id %></td> |
| 690 | <td><%= idToName(user,"users","username") %></td> |
| 691 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 692 | <td><%= kuser_id %></td> |
| 693 | </script> |
| 694 | |
| 695 | <script type="text/template" id="xosAdmin-userDeployment-detail-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 696 | <h3 class="xos-detail-title">Detail View: UserDeployment</h3> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 697 | <form>
|
| 698 | <table>
|
| 699 | <tr><td>User:</td><td><input type="text" name="user" value="<%= user %>"></td></tr>
|
| 700 | <tr><td>Deployment:</td><td><input type="text" name="deployment" value="<%= deployment %>"></td></tr>
|
| 701 | <tr><td>kuser_id:</td><td><input type="text" name="kuser_id" value="<%= kuser_id %>"></td></tr>
|
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 702 | <%= xosInlineDetailButtonsTemplate() %>
|
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 703 | </table>
|
| 704 | </form>
|
| 705 | </script> |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 706 | |
| 707 | <script> |
| 708 | xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html()); |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 709 | xosInlineListButtonsTemplate = _.template($("#xos-inline-list-buttons-template").html()); |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 710 | </script> |