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