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