summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-22 15:56:43 -0400
committerJules Laplace <jules@okfoc.us>2015-04-22 15:56:43 -0400
commitdcdab8238719d5f6515cf39b6ada31420f83b0de (patch)
tree9780be3cd8155407febf348b5f3271fe2078db9f /themes
parente97ee16a8d9189437a79e1076f7e9ea249ccc9b2 (diff)
parent8d79bf977208b643b54de7abf56666844b934ef0 (diff)
Merge branch 'twohustlers' of github.com:okfocus/okcms into twohustlers
Diffstat (limited to 'themes')
-rw-r--r--themes/okadmin/templates/index.liquid3
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid4
2 files changed, 6 insertions, 1 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid
index d25100f..e9ad538 100644
--- a/themes/okadmin/templates/index.liquid
+++ b/themes/okadmin/templates/index.liquid
@@ -17,7 +17,8 @@
{% for data in resource.data %}
<li>
<a href="{{resource.type}}/{{data.id}}/">{{data.title}}</a>
- <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify}}'>
+ <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]"
+ value='{{data | stringify | escape_once}}'>
</li>
{% endfor %}
</ol>
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
index c9a4d92..4d31413 100644
--- a/themes/okadmin/templates/partials/inputs.liquid
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -12,6 +12,10 @@
{% elsif type == 'text' %}
<textarea
name="{{name}}">{{spec.value}}</textarea>
+ {% elsif type == 'number' %}
+ <input
+ type="number"
+ name="{{name}}" value="{{spec.value}}">
{% elsif type == 'enum' %}
<select
name="{{name}}">