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