From 521c8a9f9e20d7c6b1d165ce33f4b0cd3ad97239 Mon Sep 17 00:00:00 2001 From: blgo Date: Sun, 10 Jun 2018 12:02:10 +0100 Subject: [PATCH] Enfoce lowercase on destination countries except first letter of each word --- site/static/admin/config.yml | 21 +++++++++------- site/static/admin/index.html | 46 +++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 10 deletions(-) diff --git a/site/static/admin/config.yml b/site/static/admin/config.yml index 132d5973..b07fd3c0 100644 --- a/site/static/admin/config.yml +++ b/site/static/admin/config.yml @@ -1,6 +1,9 @@ backend: name: git-gateway branch: master + # name: github + # repo: blgo/test + # branch: master publish_mode: editorial_workflow media_folder: "site/static/img/" @@ -15,9 +18,9 @@ collections: # A list of collections the CMS should be able to edit value: en create: true # Allow users to create new documents in this collection fields: # The fields each document in this collection have - - {label: "Title", name: "title", widget: "string", tagname: "h1"} - - {label: "Description", name: "description", widget: "string", tagname: "h1", required: false} - - {label: "Country of destination", name: "destinations", widget: "string" , required: true} + - {label: "Title", name: "title", widget: "string", required: true} + - {label: "Description", name: "description", widget: "string", required: false} + - {label: "Country of destination", name: "destinations", widget: "capitalisefirst" , required: true} - {label: "Heading - Image filename", name: "featured", widget: "string", required: false} - {label: "Images provider", name: "featuredpath", widget: "hidden", default: "cloudinary" } - {label: "Body", name: "body", widget: "markdown", required: false} @@ -37,9 +40,9 @@ collections: # A list of collections the CMS should be able to edit extension: "pl.md" format: "frontmatter" fields: # The fields each document in this collection have - - {label: "Title", name: "title", widget: "string", tagname: "h1"} - - {label: "Description", name: "description", widget: "string", tagname: "h1", required: false} - - {label: "Country of destination", name: "destinations", widget: "string" , required: true} + - {label: "Title", name: "title", widget: "string", required: true} + - {label: "Description", name: "description", widget: "string", required: false} + - {label: "Country of destination", name: "destinations", widget: "capitalisefirst" , required: true} - {label: "Heading - Image filename", name: "featured", widget: "string", required: false} - {label: "Images provider", name: "featuredpath", widget: "hidden", default: "cloudinary" } - {label: "Body", name: "body", widget: "markdown", required: false} @@ -48,11 +51,11 @@ collections: # A list of collections the CMS should be able to edit - {label: "author", name: "author", widget: "hidden", default: "Kitty R."} - {label: "featured path", name: "featuredpath", widget: "hidden", default: "cloudinary"} - {label: "featured alt", name: "featuredalt", widget: "hidden", default: "Image hosted by Cloudinary"} - - {label: "Language", name: "language", widget: "hidden", default: "pl"} + - {label: "Language", name: "language", widget: "hidden", default: "en"} - label: "About Pages" name: "pages" files: - - name: "enabout" + - name: "enabout" label: "English About page" file: "site/content/about/_index.md" description: "About page in English" @@ -60,7 +63,7 @@ collections: # A list of collections the CMS should be able to edit - {label: "Title", name: "title", widget: "string", tagname: "h1"} - {label: "Body", name: "body", widget: "markdown", required: false} - {label: "Publish Date", name: "date", widget: "datetime"} - - name: "plabout" + - name: "plabout" label: "Polish About page" file: "site/content/about/_index.pl.md" description: "About page in Polish" diff --git a/site/static/admin/index.html b/site/static/admin/index.html index 68d15757..72cd2de8 100644 --- a/site/static/admin/index.html +++ b/site/static/admin/index.html @@ -13,6 +13,9 @@