Scott Baker | bb4961d | 2014-07-14 18:10:53 -0700 | [diff] [blame] | 1 | <script src="{{ STATIC_URL }}/js/vendor/underscore-min.js"></script> |
| 2 | <script src="{{ STATIC_URL }}/js/vendor/backbone.js"></script> |
| 3 | <script src="{{ STATIC_URL }}/js/vendor/backbone.syphon.js"></script> |
| 4 | <script src="{{ STATIC_URL }}/js/vendor/backbone.wreqr.js"></script> |
| 5 | <script src="{{ STATIC_URL }}/js/vendor/backbone.babysitter.js"></script> |
| 6 | <script src="{{ STATIC_URL }}/js/vendor/backbone.marionette.js"></script> |
| 7 | |
| 8 | <link rel="stylesheet" type="text/css" href="{% static 'css/sliceEditor.css' %}" media="all"> |
| 9 | |
Scott Baker | 79a095e | 2014-11-11 17:35:39 -0800 | [diff] [blame^] | 10 | <script src="{{ STATIC_URL }}/js/xoslib/xos-defaults.js"></script> |
Scott Baker | bb4961d | 2014-07-14 18:10:53 -0700 | [diff] [blame] | 11 | <script src="{{ STATIC_URL }}/js/xoslib/xos-backbone.js"></script> |
| 12 | <script src="{{ STATIC_URL }}/js/sliceEditor.js"></script> |
| 13 | |
| 14 | <p>This is a demo of modifying objects using xoslib. Pick a slice in the list on |
| 15 | the left. Then edit any of it's fields on the right, and press the (save) |
| 16 | button.</p> |
| 17 | |
| 18 | <table class="table table-bordered"><tr><td valign=top> |
| 19 | <div id="sliceEditorList"> |
| 20 | </div> |
| 21 | </td> |
| 22 | <td valign=top> |
| 23 | <div id="sliceEditorDetail"> |
| 24 | </div> |
| 25 | </td></tr></table> |
| 26 | |
| 27 | <script type="text/template" id="sliceeditor-listitem-template"> |
| 28 | <%= name %>
|
| 29 | </script>
|
| 30 |
|
| 31 | <script type="text/template" id="sliceeditor-sliceedit-template">
|
| 32 | <form>
|
| 33 | <table>
|
| 34 | <tr><td>Slice Name:</td><td><input type="text" name="name" value="<%= name %>" id="foo"></td></tr>
|
| 35 | <tr><td>Description:</td><td><input type="text" name="description" value="<%= description %>"></td></tr>
|
| 36 | <tr><td colspan=2><button class="btn js-submit">Save</button></td></tr>
|
| 37 | </table>
|
| 38 | </form>
|
| 39 |
|
| 40 | </script>
|
| 41 | |