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