From 0763d09eb55b4f1828db435faeaa94e5e91aee63 Mon Sep 17 00:00:00 2001 From: hatuhay <hatuhay@827704.no-reply.drupal.org> Date: Sat, 30 Jul 2022 12:02:12 -0500 Subject: [PATCH] Issue #3133643 by selinav, hatuhay: form-required class doesnt display the asterisk --- templates/form/webform.html.twig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/form/webform.html.twig diff --git a/templates/form/webform.html.twig b/templates/form/webform.html.twig new file mode 100644 index 0000000..b77c9cc --- /dev/null +++ b/templates/form/webform.html.twig @@ -0,0 +1,29 @@ +{# +/** + * @file + * Theme implementation for a 'webform' element. + * + * This is an copy of the webform.html.twig theme_wrapper which includes the + * 'title_prefix' and 'title_suffix' variables needed for + * contextual links to appear. + * + * Available variables + * - attributes: A list of HTML attributes for the wrapper element. + * - children: The child elements of the webform. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * + * @see template_preprocess_webform() + * @see _webform_form_after_build() + * + * @ingroup themeable + */ +#} +{{ attach_library('bootstrap_barrio/form') }} +<form{{ attributes }}> + {{ title_prefix }} + {{ children }} + {{ title_suffix }} +</form> -- GitLab