diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-11 01:41:34 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-11 01:43:10 -0400 |
| commit | 0810b806f7605a75b080ea4a6fc9010c6552095c (patch) | |
| tree | 86aeb767b06ccb4544373b0e4f4bfbd535131938 /themes/okadmin/templates/index.liquid | |
| parent | 6e40f185d99cbe7ad0a38166e0c4095b5b445f3e (diff) | |
Implement admin interface resource reordering
Diffstat (limited to 'themes/okadmin/templates/index.liquid')
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid index 830fb2e..0672613 100644 --- a/themes/okadmin/templates/index.liquid +++ b/themes/okadmin/templates/index.liquid @@ -8,19 +8,27 @@ {% assign resource = pair[1] %} <section class="resource-category {{name}}"> - <form action="{{resource.type}}/batch/" method="POST"> + <form action="{{resource.type}}/__batch/" method="POST"> <header> <h2>{{name | capitalize}}</h2> </header> <input type="hidden" name="_method" value="PUT"> - <ul class="resource-list"> + <ol class="resource-list"> {% for data in resource.data %} - <li><a href="{{resource.type}}/{{data.id}}/">{{data.id}}</a></li> - <input type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify}}'> + <li> + <a href="{{resource.type}}/{{data.id}}/">{{data.id}}</a> + <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify}}'> + </li> {% endfor %} - </ul> + </ol> <footer> - <a class="add-new" href="{{resource.type}}/new/">+</a> + <nav> + <a class="btn cancel-btn" href="#">cancel</a> + <button type="submit" + class="btn save-btn" href="#">save</button> + <a class="btn edit-btn active" href="#">edit</a> + <a class="btn add-btn active" href="{{resource.type}}/new/">+</a> + </nav> </footer> </form> </section> |
