From 32f87fcb58466e0e311349f96751c18e2a2cd7ea Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Wed, 8 Apr 2015 19:55:34 -0400 Subject: Administrate! --- themes/okadmin/templates/index.liquid | 26 +++++++++++++++++++++++++ themes/okadmin/templates/partials/head.liquid | 13 +++++++++++++ themes/okadmin/templates/partials/inputs.liquid | 19 ++++++++++++++++++ themes/okadmin/templates/partials/tail.liquid | 3 +++ themes/okadmin/templates/resource.liquid | 15 ++++++++++++++ themes/okadmin/templates/resource_new.liquid | 15 ++++++++++++++ 6 files changed, 91 insertions(+) create mode 100644 themes/okadmin/templates/index.liquid create mode 100644 themes/okadmin/templates/partials/head.liquid create mode 100644 themes/okadmin/templates/partials/inputs.liquid create mode 100644 themes/okadmin/templates/partials/tail.liquid create mode 100644 themes/okadmin/templates/resource.liquid create mode 100644 themes/okadmin/templates/resource_new.liquid (limited to 'themes/okadmin/templates') diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid new file mode 100644 index 0000000..95c64dd --- /dev/null +++ b/themes/okadmin/templates/index.liquid @@ -0,0 +1,26 @@ +{% include 'partials/head' %} + +
+ {% for pair in resources %} + {% assign name = pair[0] %} + {% assign resource = pair[1] %} + {% assign spec = resource.spec %} + +
+
+

{{name | capitalize}}

+
+
    + {% for data in resource.data %} +
  • {{data.id}}
  • + {% endfor %} +
+
+ + +
+
+ + {% endfor %} +
+ +{% include 'partials/tail' %} 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 @@ + + + + + {{meta.title}} + + + +
+ Admin + View Site +
+
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 %} + +
+ {% if type == 'string' %} + + + {% else %} +

Admin template doesn't support '{{type}}' properties!

+ {% endif %} +
+ +{% 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 @@ +
{% comment %} closes container tag {% endcomment %} + + diff --git a/themes/okadmin/templates/resource.liquid b/themes/okadmin/templates/resource.liquid new file mode 100644 index 0000000..9c1b71c --- /dev/null +++ b/themes/okadmin/templates/resource.liquid @@ -0,0 +1,15 @@ +{% include 'partials/head' %} + +
+ +
+ + {% include 'partials/inputs' %} + +
+
+
+ +{% include 'partials/tail' %} diff --git a/themes/okadmin/templates/resource_new.liquid b/themes/okadmin/templates/resource_new.liquid new file mode 100644 index 0000000..1e414be --- /dev/null +++ b/themes/okadmin/templates/resource_new.liquid @@ -0,0 +1,15 @@ +{% include 'partials/head' %} + +
+ +
+ + {% include 'partials/inputs' %} + +
+
+
+ +{% include 'partials/tail' %} -- cgit v1.2.3-70-g09d2