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 | 5c4f2b6 | 2014-12-12 14:26:21 -0800 | [diff] [blame] | 86 | <script type="text/template" id="xos-backend-status-icon-template"> |
Scott Baker | a794a7f | 2015-01-06 15:06:12 -0800 | [diff] [blame] | 87 | <% if (! ("enacted" in arguments) ) { %> |
Scott Baker | 94dcc41 | 2014-12-23 17:17:27 -0800 | [diff] [blame] | 88 | <!-- enacted is undefined; this must be a new object --> |
| 89 | <% } else if ((enacted) && (enacted >= updated)) { %> |
Scott Baker | 5c4f2b6 | 2014-12-12 14:26:21 -0800 | [diff] [blame] | 90 | <span style="min-width:16px;"><img src="/static/admin/img/icon_success.gif"></span> |
| 91 | <% } else { %> |
| 92 | <% if ((backend_status == "Provisioning in progress") || (!backend_status)) { %> |
| 93 | <span style="min-width:16px;" title="<%= _.escape(backend_status) %>"><img src="/static/admin/img/icon_clock.gif"></span> |
| 94 | <% } else { %> |
| 95 | <span style="min-width:16px;" title="<%= _.escape(backend_status) %>"><img src="/static/admin/img/icon_error.gif"></span> |
| 96 | <% } %> |
| 97 | <% } %> |
| 98 | </script> |
| 99 | |
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 100 | <script type="text/template" id="xos-backend-status-text-template"> |
| 101 | <%= xosBackendStatusIconTemplate.apply(this,arguments) %> |
Scott Baker | 94dcc41 | 2014-12-23 17:17:27 -0800 | [diff] [blame] | 102 | <% if (model.enacted === undefined) { %> |
| 103 | <!-- enacted is undefined; this must be a new object --> |
| 104 | <% } else if ((enacted) && (enacted >= updated)) { %> |
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 105 | Successfully enacted |
| 106 | <% } else { %> |
| 107 | <%= _.escape(backend_status) %> |
| 108 | <% } %> |
| 109 | </script> |
| 110 | |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 111 | <script type="text/template" id="xos-list-header-template"> |
| 112 | <button class="btn js-submit btn-xos-list btn-xos-add">Add</button> |
| 113 | <button class="btn js-submit btn-xos-list btn-xos-refresh">Refresh</button> |
| 114 | </script> |
| 115 | |
| 116 | <script type="text/template" id="xos-list-footer-template"> |
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 117 | <% if (addChildHash) { %> |
| 118 | <a href="<%= addChildHash %>">Add...</a> |
| 119 | <% } %> |
Scott Baker | 7ce2365 | 2014-11-07 16:40:30 -0800 | [diff] [blame] | 120 | </script> |
| 121 | |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 122 | <script type="text/template" id="xos-delete-button-template"> |
Scott Baker | 29e8a2c | 2014-12-02 17:59:02 -0800 | [diff] [blame] | 123 | <a href="#delete<%= firstCharUpper(modelName) %>/<%= id %>">delete</a> |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 124 | </script> |
| 125 | |
| 126 | <script type="text/template" id="xos-detail-link-template"> |
| 127 | <a href="#<%= collectionName %>/<%= id %>"><%= text %></a> |
| 128 | </script> |
| 129 | |
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 130 | <script type="text/template" id="xos-add-template"> |
| 131 | <h3 class="xos-detail-title">Add Object: <%= modelName %></h3> |
| 132 | <form> |
| 133 | <table>
|
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 134 | <% args = arguments; %>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 135 | <% _.each(addFields, function(fieldName) { %>
|
Scott Baker | 8b1bda0 | 2014-12-07 22:31:18 -0800 | [diff] [blame] | 136 | <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
|
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 137 | <% readOnly = $.inArray(fieldName, model.readOnlyFields)>=0 ? " readonly" : ""; %>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 138 | <% if (fieldName in foreignFields) { %>
|
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 139 | <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName", readOnly) %></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 140 | <% } else if (inputType[fieldName] == "checkbox") { %>
|
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 141 | <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %><%= readOnly %>></td>
|
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 142 | <% } else if (fieldName=="backend_status") { %>
|
| 143 | <td><%= xosBackendStatusTextTemplate.apply(this, args) %></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 144 | <% } else { %>
|
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 145 | <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"<%= readOnly %>></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 146 | <% } %>
|
| 147 | </tr>
|
| 148 | <% }); %>
|
| 149 | <%= xosInlineDetailButtonsTemplate() %>
|
| 150 | </table>
|
| 151 | </form>
|
| 152 | </script> |
| 153 | |
| 154 | <script type="text/template" id="xos-detail-template"> |
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 155 | <h3 class="xos-detail-title">Edit Object: <%= modelName %></h3> |
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 156 | <form> |
| 157 | <table>
|
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 158 | <% args = arguments; %>
|
| 159 | <% _.each(detailFields, function(fieldName) { %>
|
Scott Baker | 8b1bda0 | 2014-12-07 22:31:18 -0800 | [diff] [blame] | 160 | <tr><td><%= fieldNameToHumanReadable(fieldName) %>:</td>
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 161 | <% readOnly = $.inArray(fieldName, model.readOnlyFields)>=0 ? " readonly" : ""; %>
|
| 162 | <% if (fieldName in choices) { %>
|
| 163 | <td><%= choicesToSelect(fieldName, model.attributes[fieldName], choices[fieldName]) %></td>
|
| 164 | <% } else if (fieldName in foreignFields) { %>
|
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 165 | <td><%= idToSelect(fieldName, model.attributes[fieldName], foreignFields[fieldName], "humanReadableName", readOnly) %></td>
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 166 | <% } else if (inputType[fieldName] == "spinner") { %>
|
| 167 | <!-- note: I never finished working on this spinner stuff! -->
|
| 168 | <td><%= xosSpinnerTemplate({id: "picker_" + fieldName, fieldName: fieldName, value: model.attributes[fieldName]}) %></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 169 | <% } else if (inputType[fieldName] == "checkbox") { %>
|
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 170 | <td><input type="checkbox" name="<%= fieldName %>" <% if (model.attributes[fieldName]) print("checked"); %><%= readOnly %>></td>
|
Scott Baker | 2cbb607 | 2014-12-16 22:49:42 -0800 | [diff] [blame] | 171 | <% } else if (inputType[fieldName] == "picker") { %>
|
| 172 | <% lookupFunc = makeIdToName(model.m2mFields[fieldName], "humanReadableName"); %>
|
Scott Baker | ae6e1de | 2014-12-17 16:29:59 -0800 | [diff] [blame] | 173 | <td><%= xosPickerTemplate({pickedItems: model.attributes[fieldName], unpickedItems: model.getChoices(fieldName,true), id: "picker_" + fieldName, fieldName: fieldName, detailView: detailView, lookupFunc: lookupFunc}) %></td>
|
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 174 | <% } else if (fieldName=="backend_status") { %>
|
| 175 | <td><%= xosBackendStatusTextTemplate.apply(this, args) %></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 176 | <% } else { %>
|
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 177 | <td><input type="text" name="<%= fieldName %>" value="<%= model.attributes[fieldName] %>"<%= readOnly %>></td>
|
Scott Baker | 0a636cb | 2014-12-07 22:27:09 -0800 | [diff] [blame] | 178 | <% } %>
|
| 179 | </tr>
|
| 180 | <% }); %>
|
| 181 | <%= xosInlineDetailButtonsTemplate() %>
|
| 182 | </table>
|
| 183 | </form>
|
| 184 | </script> |
| 185 | |
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 186 | <script type="text/template" id="xos-list-template"> |
Scott Baker | 9d37d56 | 2014-11-04 23:20:48 -0800 | [diff] [blame] | 187 | <h3 class="xos-list-title"><%= title %></h3> |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 188 | <%= xosListHeaderTemplate() %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 189 | <table class="test-table"> |
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 190 | <thead> |
| 191 | <tr> |
| 192 | <% _.each(listFields, function(fieldName) { %> |
| 193 | <th><%= fieldNameToHumanReadable(fieldName) %></th> |
| 194 | <% }); %> |
| 195 | <th>delete</th> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 196 | </tr></thead> |
| 197 | <tbody></tbody> |
| 198 | </table> |
Scott Baker | 07cdef0 | 2014-12-08 11:13:43 -0800 | [diff] [blame] | 199 | <%= xosListFooterTemplate({addChildHash: addChildHash}) %> |
Scott Baker | fc61b01 | 2014-10-30 16:10:16 -0700 | [diff] [blame] | 200 | </script> |
| 201 | |
Scott Baker | e68d37b | 2014-12-09 16:59:08 -0800 | [diff] [blame] | 202 | <script type="text/template" id="xos-listitem-template"> |
| 203 | <% _.each(listFields, function(fieldName) { %> |
| 204 | <% if ($.inArray(fieldName, model.detailLinkFields)>=0) { %> |
| 205 | <td><%= xosDetailLinkTemplate({collectionName: collectionName, id: id, text: model.attributes[fieldName]}) %></td> |
| 206 | <% } else if (fieldName in foreignFields) { %> |
| 207 | <td><%= idToName(model.attributes[fieldName], foreignFields[fieldName], "humanReadableName") %></td> |
| 208 | <% } else { %> |
| 209 | <td><%= model.attributes[fieldName] %></td> |
| 210 | <% } %> |
| 211 | <% }); %> |
Scott Baker | f26fa59 | 2014-12-02 18:04:50 -0800 | [diff] [blame] | 212 | <td><%= xosDeleteButtonTemplate({modelName: modelName, id: id}) %></td> |
Scott Baker | 10badd3 | 2014-10-31 00:18:24 -0700 | [diff] [blame] | 213 | </script> |
| 214 | |
Scott Baker | ca4bf92 | 2014-12-09 18:38:13 -0800 | [diff] [blame] | 215 | <script type="text/template" id="xos-savebuttons-template"> |
| 216 | <div class="box save-box"> |
| 217 | <button class="btn btn-high btn-info btn-xos-contentButtonPanel btn-xos-save-leave">Save</button> |
| 218 | <button class="btn btn-high btn-xos-contentButtonPanel btn-xos-save-continue">Save and continue editing</button> |
| 219 | <button class="btn btn-high btn-xos-contentButtonPanel btn-xos-save-another">Save and add another</button> |
| 220 | <button class="btn btn-danger btn-xos-contentButtonPanel btn-xos-delete">Delete</button> |
| 221 | </div> |
| 222 | </script> |
| 223 | |
| 224 | <script type="text/template" id="xos-listbuttons-template"> |
| 225 | <div class="box save-box"> |
| 226 | <button class="btn btn-high btn-primary btn-xos-contentButtonPanel btn-xos-refresh">Refresh</button> |
| 227 | <button class="btn btn-high btn-success btn-xos-contentButtonPanel btn-xos-add">Add</button> |
| 228 | </div> |
| 229 | </script> |
| 230 | |
Scott Baker | 6b145aa | 2015-01-12 12:56:25 -0800 | [diff] [blame] | 231 | <script type="text/template" id="xos-datatable-spinner-template-old"> |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 232 | <!-- arguments: value, id, collectionName, fieldName --> |
| 233 | <%= value %> <a href='#increase/<%= collectionName %>/<%= id %>/<%= fieldName %>'>more</a> <a href='#decrease/<%= collectionName %>/<%= id %>/<%= fieldName %>'>less</a> |
| 234 | </script> |
| 235 | |
Scott Baker | 6b145aa | 2015-01-12 12:56:25 -0800 | [diff] [blame] | 236 | <script type="text/template" id="xos-datatable-spinner-template"> |
| 237 | <!-- arguments: value, id, collectionName, fieldName --> |
| 238 | <%= value %> <a href="javascript:undefined" onclick='<%= app.varName %>.adjustCollectionField("<%= collectionName %>", <%= id %>, "<%= fieldName %>", 1)'> more </a> |
| 239 | <a href="javascript:undefined" onclick='<%= app.varName %>.adjustCollectionField("<%= collectionName %>", <%= id %>, "<%= fieldName %>", -1)'> less </a> |
| 240 | </script> |
| 241 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 242 | <script type="text/template" id="xos-spinner-template"> |
| 243 | <!-- arguments: fieldName, id, value --> |
| 244 | <input name="<%= fieldName %>" class="xos-spinner" id="<%= id %>"> |
| 245 | <% detailView.viewInitializers.push( function() { init_spinner("#" + id, value); } ); %> |
| 246 | </script> |
Scott Baker | 2cbb607 | 2014-12-16 22:49:42 -0800 | [diff] [blame] | 247 | |
| 248 | <script type="text/template" id="xos-picker-template"> |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 249 | <!-- arguments: unpickedItems, pickedItems, fieldName, id --> |
Scott Baker | 2cbb607 | 2014-12-16 22:49:42 -0800 | [diff] [blame] | 250 | <div id="<%= id %>"> |
| 251 | <div class="picker_row"> |
| 252 | <div class="picker_column">
|
| 253 | <div>Available</div>
|
| 254 | <select name="pickerfrom" class="select-picker-from" multiple size="5">
|
| 255 | <% _.each(unpickedItems, function(item) { %>
|
| 256 | <option value="<%= item %>"><%= lookupFunc? lookupFunc(item) : item %></option> |
| 257 | <% });%>
|
| 258 | </select>
|
| 259 | </div>
|
| 260 | <div class="picker_column">
|
| 261 | <br>
|
| 262 | <div class="btn btn-success btn-picker-add">Add »</div><br><br>
|
| 263 | <div class="btn btn-success btn-picker-remove">« Remove</div>
|
| 264 | </div>
|
| 265 | <div class="picker_column">
|
| 266 | <div>Selected</div>
|
Scott Baker | ae6e1de | 2014-12-17 16:29:59 -0800 | [diff] [blame] | 267 | <select name=<%= fieldName %> class="select-picker-to syphonall" multiple size="5">
|
Scott Baker | 2cbb607 | 2014-12-16 22:49:42 -0800 | [diff] [blame] | 268 | <% _.each(pickedItems, function(item) { %>
|
| 269 | <option value="<%= item %>"><%= lookupFunc ? lookupFunc(item) : item %></option> |
| 270 | <% }); %>
|
| 271 | </select>
|
| 272 | </div>
|
| 273 | <div class="picker_column">
|
| 274 | <br>
|
| 275 | <div class="btn btn-success btn-picker-up">Up</div><br><br>
|
| 276 | <div class="btn btn-success btn-picker-down">Down</div>
|
| 277 | </div>
|
| 278 | </div> |
| 279 | </div> |
| 280 | <% detailView.viewInitializers.push( function() { init_picker("#" + id); } ); %> |
| 281 | </script> |
| 282 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 283 | <script type="text/template" id="xos-sliceselector-option"> |
| 284 | <%= name %> |
| 285 | </script> |
| 286 | |
| 287 | <script type="text/template" id="xos-sliceselector-select"> |
| 288 | <select> |
| 289 | </select> |
| 290 | </script> |
| 291 | |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 292 | <script> |
| 293 | xosInlineDetailButtonsTemplate = _.template($("#xos-inline-detail-buttons-template").html()); |
Scott Baker | 250ba6e | 2014-12-04 17:23:27 -0800 | [diff] [blame] | 294 | xosListHeaderTemplate = _.template($("#xos-list-header-template").html()); |
| 295 | xosListFooterTemplate = _.template($("#xos-list-footer-template").html()); |
Scott Baker | c91396e | 2014-12-02 10:49:04 -0800 | [diff] [blame] | 296 | xosDeleteButtonTemplate = _.template($("#xos-delete-button-template").html()); |
| 297 | xosDetailLinkTemplate = _.template($("#xos-detail-link-template").html()); |
Scott Baker | 5c4f2b6 | 2014-12-12 14:26:21 -0800 | [diff] [blame] | 298 | xosBackendStatusIconTemplate = _.template($("#xos-backend-status-icon-template").html()); |
Scott Baker | 15f0999 | 2014-12-12 14:46:24 -0800 | [diff] [blame] | 299 | xosBackendStatusTextTemplate = _.template($("#xos-backend-status-text-template").html()); |
Scott Baker | 2cbb607 | 2014-12-16 22:49:42 -0800 | [diff] [blame] | 300 | xosPickerTemplate = _.template($("#xos-picker-template").html()); |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 301 | xosSpinnerTemplate = _.template($("#xos-spinner-template").html()); |
| 302 | xosDataTableSpinnerTemplate = _.template($("#xos-datatable-spinner-template").html()); |
Scott Baker | e49f08c | 2014-11-07 13:01:43 -0800 | [diff] [blame] | 303 | </script> |
Scott Baker | 07b4a25 | 2014-12-08 23:54:18 -0800 | [diff] [blame] | 304 | |