From 56580705e3a62eaf1c498c1c0456fc33fe3b2f76 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Apr 2016 14:05:35 -0400 Subject: broaden media support --- themes/okadmin/templates/partials/inputs.liquid | 68 ++++++++++++++++++------- 1 file changed, 50 insertions(+), 18 deletions(-) (limited to 'themes/okadmin/templates/partials') diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid index e618c61..0cd7f6b 100644 --- a/themes/okadmin/templates/partials/inputs.liquid +++ b/themes/okadmin/templates/partials/inputs.liquid @@ -9,14 +9,14 @@ {% if type == 'string' %} + name="{{name}}" type="text" value="{{spec.value | escape}}"> {% elsif type == 'text' %} + name="{{name}}">{{spec.value | escape}} {% elsif type == 'number' %} + name="{{name}}" value="{{spec.value | escape}}"> {% elsif type == 'enum' or type == 'foreign-key' %} - + - + {% elsif type == 'image' %}
@@ -47,8 +47,8 @@
- - {{spec.value.caption}} + + {{spec.value.caption | escape}}
@@ -78,7 +78,7 @@ {% elsif type == 'tag-list' %}
@@ -90,13 +90,13 @@
@@ -142,8 +142,8 @@
- - + +
@@ -177,6 +177,23 @@ + +