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