summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/okadmin/public/css/main.css4
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid20
2 files changed, 17 insertions, 7 deletions
diff --git a/themes/okadmin/public/css/main.css b/themes/okadmin/public/css/main.css
index ad940e8..73f9735 100644
--- a/themes/okadmin/public/css/main.css
+++ b/themes/okadmin/public/css/main.css
@@ -278,3 +278,7 @@ li.image-element .remove-image:hover {
.clear {
clear: both;
}
+
+.hidden {
+ display: none;
+}
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
index 7cede76..99258f3 100644
--- a/themes/okadmin/templates/partials/inputs.liquid
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -4,24 +4,28 @@
{% assign type = spec.type %}
<div class="property {{type}}">
- <label for="{{name}}">{{name | capitalize}}</label>
+ <label
+ {% if spec.hidden %}
+ class="hidden"
+ {% endif %}
+ for="{{name}}">{{name | capitalize}}</label>
{% if type == 'string' %}
<input
- {% if spec.disabled %}
- disabled="true"
+ {% if spec.hidden %}
+ class="hidden"
{% endif %}
name="{{name}}" type="text" value="{{spec.value}}">
{% elsif type == 'text' %}
<textarea
- {% if spec.disabled %}
- disabled="true"
+ {% if spec.hidden %}
+ class="hidden"
{% endif %}
name="{{name}}">{{spec.value}}</textarea>
{% elsif type == 'enum' %}
<select
- {% if spec.disabled %}
- disabled="true"
+ {% if spec.hidden %}
+ class="hidden"
{% endif %}
name="{{name}}">
{% for option in spec.options %}
@@ -64,6 +68,8 @@
</li>
</script>
</div>
+ {% elsif type == 'meta' %}
+ <input class="hidden" type="hidden" name="{{name}}" value="{{spec.value}}">
{% else %}
<p><pre style="color: red">Admin template doesn't support '{{type}}' properties!</pre></p>
{% endif %}