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