From c11ea4732f2b75f19963ef697aa335830da4a4ec Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 15 Aug 2018 13:59:57 +1000 Subject: [PATCH 1/2] Comment system This adds some templating to handle some extra form fields,. --- templates/form/input--email.html.twig | 20 ++++++++++++++++++++ templates/form/input--url.html.twig | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 templates/form/input--email.html.twig create mode 100644 templates/form/input--url.html.twig diff --git a/templates/form/input--email.html.twig b/templates/form/input--email.html.twig new file mode 100644 index 0000000..c987627 --- /dev/null +++ b/templates/form/input--email.html.twig @@ -0,0 +1,20 @@ +{# +/** + * @file + * Theme override for an 'input' #type form element. + * + * Available variables: + * - attributes: A list of HTML attributes for the input element. + * - children: Optional additional rendered elements. + * + * @see template_preprocess_input() + */ + /** + * @TODO: Add templating to add the correct classes via a preprocess function. + * They need to be based on the eventual output of this, such as a button + * (.au-btn), or a text field (.au-text-input). +#} + +{% set classes=['au-text-input',] %} + +{{ children }} diff --git a/templates/form/input--url.html.twig b/templates/form/input--url.html.twig new file mode 100644 index 0000000..c987627 --- /dev/null +++ b/templates/form/input--url.html.twig @@ -0,0 +1,20 @@ +{# +/** + * @file + * Theme override for an 'input' #type form element. + * + * Available variables: + * - attributes: A list of HTML attributes for the input element. + * - children: Optional additional rendered elements. + * + * @see template_preprocess_input() + */ + /** + * @TODO: Add templating to add the correct classes via a preprocess function. + * They need to be based on the eventual output of this, such as a button + * (.au-btn), or a text field (.au-text-input). +#} + +{% set classes=['au-text-input',] %} + +{{ children }} From 51cf21b691c021a7b64db61b71db0c691be8a7f6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 15 Aug 2018 15:30:24 +1000 Subject: [PATCH 2/2] Updated the ` +