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