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