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"> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 92 | <% console.log(model); %> |
| 93 | <a href="<%= addChildHash %>">Add...</a> |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 94 | </script> |
| 95 | |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 96 | <script type="text/template" id="xos-delete-button-template"> |
Scott Baker | 29e8a2c | 2014-12-02 17:59:02 -0800 | [diff] [blame] | 97 | <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 98 | </script> |
| 99 | |
| 100 | <script type="text/template" id="xos-detail-link-template"> |
| 101 | <a href="#<%= collectionName %>/<%= id %>"><%= text %></a> |
| 102 | </script> |
| 103 | |
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 104 | <script type="text/template" id="xos-add-template"> |
| 105 | <h3 class="xos-detail-title">Add Object: <%= modelName %></h3> |
| 106 | <form> |
| 107 | <table>
|
| 108 | <% _.each(addFields, function(fieldName) { %>
|
Scott Baker | 8b1bda0 | 2014-12-07 22:31:18 -0800 | [diff] [blame] | 109 | <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 110 | <% if (fieldName in foreignFields) { %>
|
| 111 | <td><%= idToSelect(fieldName, window[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
|
| 112 | <% } else if (inputType[fieldName] == "checkbox") { %>
|
| 113 | <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
|
| 114 | <% } else { %>
|
| 115 | <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
|
| 116 | <% } %>
|
| 117 | </tr>
|
| 118 | <% }); %>
|
| 119 | <%= xosInlineDetailButtonsTemplate() %>
|
| 120 | </table>
|
| 121 | </form>
|
| 122 | </script> |
| 123 | |
| 124 | <script type="text/template" id="xos-detail-template"> |
| 125 | <h3 class="xos-detail-title">Add Object: <%= modelName %></h3> |
| 126 | <form> |
| 127 | <table>
|
| 128 | <% console.log(model); _.each(detailFields, function(fieldName) { %>
|
Scott Baker | 8b1bda0 | 2014-12-07 22:31:18 -0800 | [diff] [blame] | 129 | <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 130 | <% if (fieldName in foreignFields) { %>
|
| 131 | <td><%= idToSelect(fieldName, window[fieldName], foreignFields[fieldName], "humanReadableName") %></td>
|
| 132 | <% } else if (inputType[fieldName] == "checkbox") { %>
|
| 133 | <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %>></td>
|
| 134 | <% } else { %>
|
| 135 | <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"></td>
|
| 136 | <% } %>
|
| 137 | </tr>
|
| 138 | <% }); %>
|
| 139 | <%= xosInlineDetailButtonsTemplate() %>
|
| 140 | </table>
|
| 141 | </form>
|
| 142 | </script> |
| 143 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 144 | <!-- Deployment --> |
| 145 | |
| 146 | <script type="text/template" id="xosAdmin-deployment-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>backend</th> |
| 154 | <th>admin_tenant</th> |
| 155 | <th># sites</th> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -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 | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 160 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 161 | </script> |
| 162 | |
| 163 | |
| 164 | <script type="text/template" id="xosAdmin-deployment-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 165 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 166 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 167 | <td><%= backend_type %></td> |
| 168 | <td><%= admin_tenant %></td> |
Scott Baker | 13e6f0d | 2014-11-18 17:02:07 -0800 | [diff] [blame] | 169 | <td><%= typeof sites != 'undefined' && sites.length || 0 %></td> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 170 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 171 | </script> |
| 172 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 173 | <!-- Image --> |
| 174 | |
| 175 | <script type="text/template" id="xosAdmin-image-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 176 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 177 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 178 | <table class="test-table"> |
| 179 | <thead><tr> |
| 180 | <th>id</th> |
| 181 | <th>name</th> |
| 182 | <th>disk_format</th> |
| 183 | <th>container_format</th> |
| 184 | <th>path</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 185 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 186 | </tr></thead> |
| 187 | <tbody></tbody> |
| 188 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 189 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 190 | </script> |
| 191 | |
| 192 | <script type="text/template" id="xosAdmin-image-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 193 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 194 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 195 | <td><%= disk_format %></td> |
| 196 | <td><%= container_format %></td> |
| 197 | <td><%= path %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 198 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 199 | </script> |
| 200 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 201 | <!-- NetworkTemplate --> |
| 202 | |
| 203 | <script type="text/template" id="xosAdmin-networkTemplate-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 204 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 205 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 206 | <table class="test-table"> |
| 207 | <thead><tr> |
| 208 | <th>id</th> |
| 209 | <th>name</th> |
| 210 | <th>description</th> |
| 211 | <th>visibility</th> |
| 212 | <th>translation</th> |
| 213 | <th>sharedNetworkName</th> |
| 214 | <th>sharedNetworkId</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 215 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 216 | </tr></thead> |
| 217 | <tbody></tbody> |
| 218 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 219 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 220 | </script> |
| 221 | |
| 222 | |
| 223 | <script type="text/template" id="xosAdmin-networkTemplate-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 224 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 225 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 226 | <td><%= description %></td> |
| 227 | <td><%= visibility %></td> |
| 228 | <td><%= translation %></td> |
| 229 | <td><%= sharedNetworkName %></td> |
| 230 | <td><%= sharedNetworkId %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 231 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 232 | </script> |
| 233 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 234 | <!-- Network --> |
| 235 | |
| 236 | <script type="text/template" id="xosAdmin-network-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 237 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 238 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 239 | <table class="test-table"> |
| 240 | <thead><tr> |
| 241 | <th>id</th> |
| 242 | <th>name</th> |
| 243 | <th>template</th> |
| 244 | <th>ports</th> |
| 245 | <th>labels</th> |
| 246 | <th>owner</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 247 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 248 | </tr></thead> |
| 249 | <tbody></tbody> |
| 250 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 251 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 252 | </script> |
| 253 | |
| 254 | <script type="text/template" id="xosAdmin-network-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 255 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 256 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 257 | <td><%= idToName(template,"networkTemplates","name") %></td> |
| 258 | <td><%= ports %></td> |
| 259 | <td><%= labels %></td> |
| 260 | <td><%= idToName(owner,"slices","name") %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 261 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 262 | </script> |
| 263 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 264 | <!-- NetworkSliver --> |
| 265 | |
| 266 | <script type="text/template" id="xosAdmin-networkSliver-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 267 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 268 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 269 | <table class="test-table"> |
| 270 | <thead><tr> |
| 271 | <th>id</th> |
| 272 | <th>network</th> |
| 273 | <th>sliver</th> |
| 274 | <th>ip</th> |
| 275 | <th>port_id</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 276 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 277 | </tr></thead> |
| 278 | <tbody></tbody> |
| 279 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 280 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 281 | </script> |
| 282 | |
| 283 | <script type="text/template" id="xosAdmin-networkSliver-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 284 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 285 | <td><%= idToName(network,"networks","name") %></td> |
| 286 | <td><%= idToName(sliver,"slivers","name") %></td> |
| 287 | <td><%= ip %></td> |
| 288 | <td><%= port_id %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 289 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 290 | </script> |
| 291 | |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 292 | <!-- NetworkDeployment --> |
| 293 | |
| 294 | <script type="text/template" id="xosAdmin-networkDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 295 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 296 | <%= xosListHeaderTemplate() %> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 297 | <table class="test-table"> |
| 298 | <thead><tr> |
| 299 | <th>id</th> |
| 300 | <th>network</th> |
| 301 | <th>deployment</th> |
| 302 | <th>net_id</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 303 | <th>delete</th> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 304 | </tr></thead> |
| 305 | <tbody></tbody> |
| 306 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 307 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 308 | </script> |
| 309 | |
| 310 | <script type="text/template" id="xosAdmin-networkDeployment-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 311 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 312 | <td><%= idToName(network,"networks","name") %></td> |
| 313 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 314 | <td><%= net_id %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 315 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | 586878e | 2014-10-31 16:43:07 -0700 | [diff] [blame] | 316 | </script> |
| 317 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 318 | <!-- Node --> |
| 319 | |
| 320 | <script type="text/template" id="xosAdmin-node-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 321 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 322 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 323 | <table class="test-table"> |
| 324 | <thead><tr> |
| 325 | <th>id</th> |
| 326 | <th>name</th> |
| 327 | <th>site</th> |
| 328 | <th>deployment</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 329 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 330 | </tr></thead> |
| 331 | <tbody></tbody> |
| 332 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 333 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 334 | </script> |
| 335 | |
| 336 | |
| 337 | <script type="text/template" id="xosAdmin-node-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 338 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 339 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 340 | <td><%= idToName(site,"sites","name") %></td> |
| 341 | <td><%= idToName(deployment,"deployments","name") %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 342 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 343 | </script> |
| 344 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 345 | <!-- SliceRole --> |
| 346 | |
| 347 | <script type="text/template" id="xosAdmin-sliceRole-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 348 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 349 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 350 | <table class="test-table"> |
| 351 | <thead><tr> |
| 352 | <th>id</th> |
| 353 | <th>role</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 354 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 355 | </tr></thead> |
| 356 | <tbody></tbody> |
| 357 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 358 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 359 | </script> |
| 360 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 361 | <script type="text/template" id="xosAdmin-sliceRole-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 362 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 363 | <td><%= role %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 364 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 365 | </script> |
| 366 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 367 | <!-- Service --> |
| 368 | |
| 369 | <script type="text/template" id="xosAdmin-service-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 370 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 371 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 372 | <table class="test-table"> |
| 373 | <thead><tr> |
| 374 | <th>id</th> |
| 375 | <th>name</th> |
| 376 | <th>description</th> |
| 377 | <th>enabled</th> |
| 378 | <th>versionNumber</th> |
| 379 | <th>published</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 380 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 381 | </tr></thead> |
| 382 | <tbody></tbody> |
| 383 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 384 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 385 | </script> |
| 386 | |
| 387 | |
| 388 | <script type="text/template" id="xosAdmin-service-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 389 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 390 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 391 | <td><%= description %></td> |
| 392 | <td><%= enabled %></td> |
| 393 | <td><%= versionNumber %></td> |
| 394 | <td><%= published %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 395 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 396 | </script> |
| 397 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 398 | <!-- Site --> |
| 399 | |
| 400 | <script type="text/template" id="xosAdmin-site-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 401 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 402 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 403 | <table class="test-table"> |
| 404 | <thead><tr> |
| 405 | <th>id</th> |
| 406 | <th>name</th> |
| 407 | <th>url</th> |
| 408 | <th>enabled</th> |
| 409 | <th>login_base</th> |
| 410 | <th>is_public</th> |
| 411 | <th>abbreviated_name</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 412 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 413 | </tr></thead> |
| 414 | <tbody></tbody> |
| 415 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 416 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 417 | </script> |
| 418 | |
| 419 | <script type="text/template" id="xosAdmin-site-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 420 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 421 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 422 | <td><%= site_url %></td> |
| 423 | <td><%= enabled %></td> |
| 424 | <td><%= login_base %></td> |
| 425 | <td><%= is_public %></td> |
| 426 | <td><%= abbreviated_name %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 427 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 428 | </script> |
| 429 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 430 | <!-- Slice --> |
| 431 | |
| 432 | <script type="text/template" id="xosAdmin-slice-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 433 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 434 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 435 | <table class="test-table"> |
| 436 | <thead><tr> |
| 437 | <th>id</th> |
| 438 | <th>name</th> |
| 439 | <th>enabled</th> |
| 440 | <th>omf_friendly</th> |
| 441 | <th>description</th> |
| 442 | <th>slice_url</th> |
| 443 | <th>site</th> |
| 444 | <th>max_slivers</th> |
| 445 | <th>service</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 446 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 447 | </tr></thead> |
| 448 | <tbody></tbody> |
| 449 | </table> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 450 | <%= xosListFooterTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 451 | </script> |
| 452 | |
| 453 | <script type="text/template" id="xosAdmin-slice-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 454 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 455 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 456 | <td><%= enabled %></td> |
| 457 | <td><%= omf_friendly %></td> |
| 458 | <td><%= description %></td> |
| 459 | <td><%= slice_url %></td> |
| 460 | <td><%= idToName(site,"sites","name") %></td> |
| 461 | <td><%= max_slivers %></td> |
| 462 | <td><%= idToName(service,"services","name") %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 463 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 464 | </script> |
| 465 | |
Scott Baker | 9b3cf84 | 2014-11-02 22:28:59 -0800 | [diff] [blame] | 466 | <!-- SliceDeployment --> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 467 | |
| 468 | <script type="text/template" id="xosAdmin-sliceDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 469 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 470 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 471 | <table class="test-table"> |
| 472 | <thead><tr> |
| 473 | <th>id</th> |
| 474 | <th>slice</th> |
| 475 | <th>deployment</th> |
| 476 | <th>tenant_id</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 477 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 478 | </tr></thead> |
| 479 | <tbody></tbody> |
| 480 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 481 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 482 | </script> |
| 483 | |
| 484 | <script type="text/template" id="xosAdmin-sliceDeployment-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 485 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 486 | <td><%= idToName(slice,"slices","name") %></td> |
| 487 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 488 | <td><%= tenant_id %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 489 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 490 | </script> |
| 491 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 492 | <!-- SlicePrivilege --> |
| 493 | |
| 494 | <script type="text/template" id="xosAdmin-slicePrivilege-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 495 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 496 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 497 | <table class="test-table"> |
| 498 | <thead><tr> |
| 499 | <th>id</th> |
| 500 | <th>user</th> |
| 501 | <th>slice</th> |
| 502 | <th>role</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 503 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 504 | </tr></thead> |
| 505 | <tbody></tbody> |
| 506 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 507 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 508 | </script> |
| 509 | |
| 510 | <script type="text/template" id="xosAdmin-slicePrivilege-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 511 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 512 | <td><%= idToName(user,"users","username") %></td> |
| 513 | <td><%= idToName(slice,"slices","name") %></td> |
| 514 | <td><%= idToName(role,"sliceRoles","role") %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 515 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 516 | </script> |
| 517 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 518 | |
| 519 | <!-- Sliver --> |
| 520 | |
| 521 | <script type="text/template" id="xosAdmin-sliver-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 522 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 523 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 524 | <table class="test-table"> |
| 525 | <thead><tr> |
| 526 | <th>id</th> |
| 527 | <th>name</th> |
| 528 | <th>instance_id</th> |
| 529 | <th>instance_name</th> |
| 530 | <th>image</th> |
| 531 | <th>creator</th> |
| 532 | <th>slice</th> |
| 533 | <th>node</th> |
| 534 | <th>deploymentNetwork</th> |
| 535 | <th>flavor</th> |
| 536 | <th>userData</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 537 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 538 | </tr></thead> |
| 539 | <tbody></tbody> |
| 540 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 541 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 542 | </script> |
| 543 | |
| 544 | |
| 545 | <script type="text/template" id="xosAdmin-sliver-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 546 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 547 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: name}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 548 | <td><%= instance_id %></td> |
| 549 | <td><%= instance_name %></td> |
| 550 | <td><%= idToName(image,"images","name") %></td> |
| 551 | <td><%= idToName(creator,"users","name") %></td> |
| 552 | <td><%= idToName(slice,"slices","name") %></td> |
| 553 | <td><%= idToName(node,"nodes","name") %></td> |
| 554 | <td><%= idToName(deploymentNetwork,"deployments","name") %></td> |
| 555 | <td><%= flavor %></td> |
| 556 | <td><%= userData %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 557 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 558 | </script> |
| 559 | |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 560 | <!-- User --> |
| 561 | |
| 562 | <script type="text/template" id="xosAdmin-user-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 563 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 564 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 565 | <table class="test-table"> |
| 566 | <thead><tr> |
| 567 | <th>id</th> |
| 568 | <th>username</th> |
| 569 | <th>firstname</th> |
| 570 | <th>lastname</th> |
| 571 | <th>phone</th> |
| 572 | <th>user_url</th> |
| 573 | <th>site</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 574 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 575 | </tr></thead> |
| 576 | <tbody></tbody> |
| 577 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 578 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 579 | </script> |
| 580 | |
| 581 | |
| 582 | <script type="text/template" id="xosAdmin-user-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 583 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
| 584 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: username}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 585 | <td><%= firstname %></td> |
| 586 | <td><%= lastname %></td> |
| 587 | <td><%= phone %></td> |
| 588 | <td><%= user_url %></td> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 589 | <td><%= idToName(site,"sites","name") %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 590 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 591 | </script> |
| 592 | |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 593 | <!-- UserDeployments --> |
| 594 | |
| 595 | <script type="text/template" id="xosAdmin-userDeployment-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 596 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 597 | <%= xosListHeaderTemplate() %> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 598 | <table class="test-table"> |
| 599 | <thead><tr> |
| 600 | <th>id</th> |
| 601 | <th>user</th> |
| 602 | <th>deployment</th> |
| 603 | <th>kuser_id</th> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 604 | <th>delete</th> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 605 | </tr></thead> |
| 606 | <tbody></tbody> |
| 607 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame^] | 608 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 609 | </script> |
| 610 | |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 611 | <script type="text/template" id="xosAdmin-userDeployment-listitem-template"> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 612 | <td> <%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: id}) %></td> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 613 | <td><%= idToName(user,"users","username") %></td> |
| 614 | <td><%= idToName(deployment,"deployments","name") %></td> |
| 615 | <td><%= kuser_id %></td> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 616 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 617 | </script> |
| 618 | |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 619 | <script> |
| 620 | xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html()); |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 621 | xosListHeaderTemplate = _.template($("#xos-list-header-template").html()); |
| 622 | xosListFooterTemplate = _.template($("#xos-list-footer-template").html()); |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 623 | xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html()); |
| 624 | xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html()); |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 625 | </script> |