summaryrefslogtreecommitdiff
path: root/themes/okadmin/templates/partials
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-08 19:56:21 -0400
committerJules Laplace <jules@okfoc.us>2015-04-08 19:56:21 -0400
commitfe1ea91f73059c146369ccb2404fcaf6d03d2f4d (patch)
tree9b8c5e37821e147048e5d1ddbe5435af47716949 /themes/okadmin/templates/partials
parent0c6d7edc0042464c8f05d38e6933186719dd259e (diff)
parent32f87fcb58466e0e311349f96751c18e2a2cd7ea (diff)
k
Diffstat (limited to 'themes/okadmin/templates/partials')
-rw-r--r--themes/okadmin/templates/partials/head.liquid13
-rw-r--r--themes/okadmin/templates/partials/inputs.liquid19
-rw-r--r--themes/okadmin/templates/partials/tail.liquid3
3 files changed, 35 insertions, 0 deletions
diff --git a/themes/okadmin/templates/partials/head.liquid b/themes/okadmin/templates/partials/head.liquid
new file mode 100644
index 0000000..86915a4
--- /dev/null
+++ b/themes/okadmin/templates/partials/head.liquid
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf8">
+ <title>{{meta.title}}</title>
+ <link rel="stylesheet" href="{{meta.static}}/css/main.css">
+ </head>
+ <body>
+ <header class="admin-header">
+ <span class="breadcrumb">Admin</span>
+ <a class="site-link" href="/">View Site</a>
+ </header>
+ <div class="container">
diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid
new file mode 100644
index 0000000..4dd600d
--- /dev/null
+++ b/themes/okadmin/templates/partials/inputs.liquid
@@ -0,0 +1,19 @@
+{% for pair in resource.spec %}
+ {% assign name = pair[0] %}
+ {% assign spec = pair[1] %}
+ {% assign type = spec.type %}
+
+ <div class="property">
+ {% if type == 'string' %}
+ <label for="{{name}}">{{name | capitalize}}</label>
+ <input
+ {% if spec.disabled %}
+ disabled="true"
+ {% endif %}
+ name="{{name}}" type="text" value="{{spec.value}}">
+ {% else %}
+ <p><pre style="color: red">Admin template doesn't support '{{type}}' properties!</pre></p>
+ {% endif %}
+ </div>
+
+{% endfor %}
diff --git a/themes/okadmin/templates/partials/tail.liquid b/themes/okadmin/templates/partials/tail.liquid
new file mode 100644
index 0000000..773c8d4
--- /dev/null
+++ b/themes/okadmin/templates/partials/tail.liquid
@@ -0,0 +1,3 @@
+ </div> {% comment %} closes container tag {% endcomment %}
+ </body>
+</html>