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