From c5e38d7f48e2b5d6ce5ea70f7337f983e55969d6 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Thu, 9 Apr 2015 01:58:01 -0400 Subject: Add captioned-image-list type --- themes/okadmin/public/css/main.css | 3 ++- themes/okadmin/templates/partials/inputs.liquid | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'themes') diff --git a/themes/okadmin/public/css/main.css b/themes/okadmin/public/css/main.css index c5694eb..d120b0a 100644 --- a/themes/okadmin/public/css/main.css +++ b/themes/okadmin/public/css/main.css @@ -135,7 +135,8 @@ label { .main.resource form input, .main.resource form textarea, -.main.resource form select { +.main.resource form select, +.main.resource form img { display: block; float: left; width: 20em; diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid index 551a66c..8269d4e 100644 --- a/themes/okadmin/templates/partials/inputs.liquid +++ b/themes/okadmin/templates/partials/inputs.liquid @@ -3,7 +3,7 @@ {% assign spec = pair[1] %} {% assign type = spec.type %} -
+
{% if type == 'string' %} @@ -28,6 +28,20 @@ {% endfor %} + {% elsif type == 'captioned-image-list' %} +
    + {% for image in spec.value %} +
  1. + {{image.caption}} + +
    + + +
  2. + {% endfor %} +
+ + {% else %}

Admin template doesn't support '{{type}}' properties!

{% endif %} -- cgit v1.2.3-70-g09d2