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