diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-13 18:19:41 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-13 18:19:41 -0400 |
| commit | d45f617dc74a07beb352d04537d47a77193f487f (patch) | |
| tree | bf87a7f2b1bba238588194b0b29c26e6bd6b9f24 /themes/okadmin/templates | |
| parent | 3ac36830841a51f3d3de63f5df849a4bb84b948d (diff) | |
hide id field
Diffstat (limited to 'themes/okadmin/templates')
| -rw-r--r-- | themes/okadmin/templates/partials/inputs.liquid | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid index 4d6372d..253b275 100644 --- a/themes/okadmin/templates/partials/inputs.liquid +++ b/themes/okadmin/templates/partials/inputs.liquid @@ -3,30 +3,17 @@ {% assign spec = pair[1] %} {% assign type = spec.type %} - <div class="property {{type}}"> - <label - {% if spec.hidden %} - class="hidden" - {% endif %} - for="{{name}}">{{name | capitalize}}</label> + <div class="property {{type}} {% if spec.hidden %}hidden{% endif %}"> + <label for="{{name}}">{{name | capitalize}}</label> {% if type == 'string' %} <input - {% if spec.hidden %} - class="hidden" - {% endif %} - name="{{name}}" type="text" value="{{spec.value}}"> + name="{{name}}" type="text" value="{{spec.value}}"> {% elsif type == 'text' %} <textarea - {% if spec.hidden %} - class="hidden" - {% endif %} name="{{name}}">{{spec.value}}</textarea> {% elsif type == 'enum' %} <select - {% if spec.hidden %} - class="hidden" - {% endif %} name="{{name}}"> {% for option in spec.options %} <option value="{{option}}" {% if option == spec.value %}selected{% endif %}>{{option | capitalize}}</option> |
