From 3593fb22cb19366fb1bf30c4ecfbf4428b8aad82 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 24 Oct 2016 15:40:58 -0400 Subject: key/value pairs in enums --- examples/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples/index.js') diff --git a/examples/index.js b/examples/index.js index 15de909..998aa1d 100644 --- a/examples/index.js +++ b/examples/index.js @@ -35,6 +35,15 @@ var app = okcms.createApp({ title: {type: 'string'}, description: {type: 'text'}, color: {type: 'enum', options: ["red","blue","green"]}, + rating: {type: 'enum', options: { + "e": "Everyone", + "ec": "Early Childhood", + "e10": "Everyone 10+", + "t": "Teen", + "m": "Mature", + "ao": "Adults Only", + "rp": "Rating Pending", + }}, video: {type: 'video'}, images: {type: 'gallery'} }, -- cgit v1.2.3-70-g09d2 From bc38a56567c20f3205b89dae710d131655b0220d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 24 Oct 2016 15:48:10 -0400 Subject: customize link-list placeholder text --- examples/index.js | 2 +- package.json | 2 +- themes/okadmin/templates/partials/inputs.liquid | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'examples/index.js') diff --git a/examples/index.js b/examples/index.js index 998aa1d..e72a9ce 100644 --- a/examples/index.js +++ b/examples/index.js @@ -28,7 +28,7 @@ var app = okcms.createApp({ id: {type: 'string'}, title: {type: 'string'}, body: {type: 'text'}, - links: {type: 'link-list'}, + links: {type: 'link-list', textLabel: "A", linkLabel: "B"}, }, bread: { type: {type: 'string', id: true}, diff --git a/package.json b/package.json index 7d0647a..74cf612 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "okcms", - "version": "0.2.2", + "version": "0.2.3", "description": "The dopest CMS on the planet.", "main": "app/index.js", "scripts": { diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid index 063f9b7..60466de 100644 --- a/themes/okadmin/templates/partials/inputs.liquid +++ b/themes/okadmin/templates/partials/inputs.liquid @@ -98,13 +98,11 @@ name="{{name}}[{{forloop.index0}}][text]" value="{{link.text | escape}}" type="text" - placeholder="Link text" class="link-input link-text">