diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 3 | ||||
| -rw-r--r-- | themes/okadmin/templates/partials/inputs.liquid | 8 |
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 |
