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