diff options
Diffstat (limited to 'themes/okadmin/templates')
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 20 | ||||
| -rw-r--r-- | themes/okadmin/templates/resource.liquid | 2 | ||||
| -rw-r--r-- | themes/okadmin/templates/resource_new.liquid | 2 |
3 files changed, 16 insertions, 8 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> diff --git a/themes/okadmin/templates/resource.liquid b/themes/okadmin/templates/resource.liquid index 53cd83e..8078778 100644 --- a/themes/okadmin/templates/resource.liquid +++ b/themes/okadmin/templates/resource.liquid @@ -2,7 +2,7 @@ {% include 'partials/flash' %} -<nav> +<nav class="resource-nav"> <a href="../..">Back</a> </nav> diff --git a/themes/okadmin/templates/resource_new.liquid b/themes/okadmin/templates/resource_new.liquid index 8e80171..d059445 100644 --- a/themes/okadmin/templates/resource_new.liquid +++ b/themes/okadmin/templates/resource_new.liquid @@ -2,7 +2,7 @@ {% include 'partials/flash' %} -<nav> +<nav class="resource-nav"> <a href="../..">Back</a> </nav> |
