summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates/partials/inputs.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/templates/partials/inputs.liquid')
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
index 8269d4e..3a33f95 100644
--- a/themes/okadmin/templates/partials/inputs.liquid
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -28,6 +28,16 @@
<option value="{{option}}" {% if option == spec.value %}selected{% endif %}>{{option}}</option>
{% endfor %}
</select>
+ {% elsif type == 'video' %}
+ <div class="video group {% if spec.value.url %}loaded{% endif %}">
+ <input name="{{name}}[url]" type="text" value="{{spec.value.url}}" class="url" placeholder="Enter a video URL">
+ <input name="{{name}}[type]" type="text" value="{{spec.value.type}}" class="video-type" hidden>
+ <input name="{{name}}[token]" type="text" value="{{spec.value.token}}" class="video-token" hidden>
+ <label>Title</label>
+ <input name="{{name}}[title]" type="text" value="{{spec.value.title}}" class="video-title">
+ <label>Thumbnail</label>
+ <input name="{{name}}[thumb]" type="text" value="{{spec.value.thumb}}" class="video-thumb">
+ </div>
{% elsif type == 'captioned-image-list' %}
<ol>
{% for image in spec.value %}