summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-09 01:07:37 -0400
committerJules Laplace <jules@okfoc.us>2015-04-09 01:07:37 -0400
commit587c9f7d3f4ac9efbd8851dad1c2f62b9e7e6e61 (patch)
treec9db157ec956e9aaabf5924577034270b1a19940 /themes/okadmin/templates
parent9578d5d394ddb66dc4f2fd5ea2aaf66fa76ec270 (diff)
stub in video field
Diffstat (limited to 'themes/okadmin/templates')
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid14
-rw-r--r--themes/okadmin/templates/partials/tail.liquid1
2 files changed, 14 insertions, 1 deletions
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
index 551a66c..42e459f 100644
--- a/themes/okadmin/templates/partials/inputs.liquid
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -3,7 +3,7 @@
{% assign spec = pair[1] %}
{% assign type = spec.type %}
- <div class="property">
+ <div class="property {% if spec.disabled %}hidden{% endif %}">
<label for="{{name}}">{{name | capitalize}}</label>
{% if type == 'string' %}
@@ -18,6 +18,14 @@
disabled="true"
{% endif %}
name="{{name}}">{{spec.value}}</textarea>
+ {% elsif type == 'video' %}
+ <div class="video group">
+ <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.title}}" class="video-type" hidden>
+ <input name="{{name}}[token]" type="text" value="{{spec.value.title}}" class="video-token" hidden>
+ <input name="{{name}}[title]" type="text" value="{{spec.value.title}}" class="video-title" placeholder="Title">
+ <input name="{{name}}[thumb]" type="text" value="{{spec.value.thumb}}" class="video-thumb" placeholder="Thumbnail">
+ </div>
{% elsif type == 'enum' %}
<select
{% if spec.disabled %}
@@ -28,6 +36,10 @@
<option value="{{option}}" {% if option == spec.value %}selected{% endif %}>{{option}}</option>
{% endfor %}
</select>
+ {% elsif type == 'uri' %}
+ <div>
+ <input type="file" id="file">
+ </div>
{% else %}
<p><pre style="color: red">Admin template doesn't support '{{type}}' properties!</pre></p>
{% endif %}
diff --git a/themes/okadmin/templates/partials/tail.liquid b/themes/okadmin/templates/partials/tail.liquid
index 76d31b0..31da4ed 100644
--- a/themes/okadmin/templates/partials/tail.liquid
+++ b/themes/okadmin/templates/partials/tail.liquid
@@ -1,6 +1,7 @@
</div> {% comment %} closes container tag {% endcomment %}
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.6.0/lodash.min.js"></script>
<script src="/_admin/js/upload.js"></script>
<script src="/_admin/js/app.js"></script>
</html>