summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates/index.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/templates/index.liquid')
-rw-r--r--themes/okadmin/templates/index.liquid20
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>