summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-02 18:38:12 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-02 18:38:30 +0100
commiteed359e2b6d35fe444353f115237d41d6acad9dc (patch)
tree5e90cb767cf7e87555890318e7f103d9e78cf568 /themes/okadmin/templates
parentee364381107827718c90fa359055be8e525fe386 (diff)
improving display options to the admin view
Diffstat (limited to 'themes/okadmin/templates')
-rw-r--r--themes/okadmin/templates/index.liquid3
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid8
2 files changed, 10 insertions, 1 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid
index 5d7975d..48322a9 100644
--- a/themes/okadmin/templates/index.liquid
+++ b/themes/okadmin/templates/index.liquid
@@ -59,6 +59,9 @@
<div class="image" style="background-image:url('{{data.image.uri}}')"></div>
{% else %}
{{ data[resource.title] }}
+ {% if resource.subtitle %}
+ - {{ data[resource.subtitle] }}
+ {% endif %}
{% endif %}
<input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]"
value='{{data | stringify | escape_once}}'>
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
index 15dae0f..46d0091 100644
--- a/themes/okadmin/templates/partials/inputs.liquid
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -5,7 +5,13 @@
<div class="property {{type}} {% if spec.hidden %}hidden{% endif %}"
data-name="{{name}}">
- <label for="{{name}}">{{name | capitalize}}</label>
+ <label for="{{name}}">
+ {% if spec.alias %}
+ {{spec.alias | capitalize}}
+ {% else %}
+ {{name | capitalize}}
+ {% endif %}
+ </label>
{% if type == 'string' %}
<input