summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/templates')
-rw-r--r--themes/okadmin/templates/index.liquid2
-rw-r--r--themes/okadmin/templates/resource.liquid4
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid
index 330ed89..d25100f 100644
--- a/themes/okadmin/templates/index.liquid
+++ b/themes/okadmin/templates/index.liquid
@@ -16,7 +16,7 @@
<ol class="resource-list">
{% for data in resource.data %}
<li>
- <a href="{{resource.type}}/{{data.id}}/">{{data.id}}</a>
+ <a href="{{resource.type}}/{{data.id}}/">{{data.title}}</a>
<input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify}}'>
</li>
{% endfor %}
diff --git a/themes/okadmin/templates/resource.liquid b/themes/okadmin/templates/resource.liquid
index abc59e9..aa3efe0 100644
--- a/themes/okadmin/templates/resource.liquid
+++ b/themes/okadmin/templates/resource.liquid
@@ -6,8 +6,8 @@
<a href="../..">Back</a>
</nav>
-<section class="resource main">
- <h2>EDIT {{ resource.type }} '{{ resource.id }}'</h2>
+<section class="resource main" data-type="{{ resource.type }}" data-id="{{ resource.id }}">
+ <h2>EDIT {{ resource.type }} '{{ resource.spec.title.value }}'</h2>
<form action="." method="POST">
<input type="hidden" name="_method" value="PUT">
{% include 'partials/inputs' %}