From 494426f011281d60b6a1b778c0faa50ff3f03b38 Mon Sep 17 00:00:00 2001 From: ovidiu Date: Fri, 22 Sep 2023 13:34:12 +0300 Subject: [PATCH] twig templates for tfa --- public/sites/default/local.services.yml | 9 --------- .../templates/form/form--tfa-overview.html.twig | 15 +++++++++++++++ .../templates/form/form--tfa-setup.html.twig | 15 +++++++++++++++ 3 files changed, 30 insertions(+), 9 deletions(-) delete mode 100644 public/sites/default/local.services.yml create mode 100644 public/themes/custom/hdbt_subtheme/templates/form/form--tfa-overview.html.twig create mode 100644 public/themes/custom/hdbt_subtheme/templates/form/form--tfa-setup.html.twig diff --git a/public/sites/default/local.services.yml b/public/sites/default/local.services.yml deleted file mode 100644 index d2857c6..0000000 --- a/public/sites/default/local.services.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Local development services. -# -# To activate this feature, follow the instructions at the top of the -# 'example.settings.local.php' file, which sits next to this file. -parameters: - http.response.debug_cacheability_headers: true -services: - cache.backend.null: - class: Drupal\Core\Cache\NullBackendFactory diff --git a/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-overview.html.twig b/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-overview.html.twig new file mode 100644 index 0000000..d01b748 --- /dev/null +++ b/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-overview.html.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Theme override for a 'form' element. + * + * Available variables + * - attributes: A list of HTML attributes for the wrapper element. + * - children: The child elements of the form. + * + * @see template_preprocess_form() + */ +#} +
+ {{ children }} +
diff --git a/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-setup.html.twig b/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-setup.html.twig new file mode 100644 index 0000000..19e0184 --- /dev/null +++ b/public/themes/custom/hdbt_subtheme/templates/form/form--tfa-setup.html.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Theme override for a 'form' element. + * + * Available variables + * - attributes: A list of HTML attributes for the wrapper element. + * - children: The child elements of the form. + * + * @see template_preprocess_form() + */ +#} +
+ {{ children }} +