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