blob: 830fb2e7cd6dade888dfbd8a214c404174a62e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{% include 'partials/head' %}
{% include 'partials/flash' %}
<section class="index main">
{% for pair in resources %}
{% assign name = pair[0] %}
{% assign resource = pair[1] %}
<section class="resource-category {{name}}">
<form action="{{resource.type}}/batch/" method="POST">
<header>
<h2>{{name | capitalize}}</h2>
</header>
<input type="hidden" name="_method" value="PUT">
<ul 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}}'>
{% endfor %}
</ul>
<footer>
<a class="add-new" href="{{resource.type}}/new/">+</a>
</footer>
</form>
</section>
{% endfor %}
</section>
{% include 'partials/tail' %}
|