Skip to content

fix: render Drupal hidden form fields explicitly in contact page template - #93

Merged
doljak merged 5 commits into
mainfrom
feat/contact-page-79-twig-template-css-layout-and-drupal-form-integration
May 6, 2026
Merged

doljak merged 5 commits into
mainfrom
feat/contact-page-79-twig-template-css-layout-and-drupal-form-integration

Conversation

@doljak

@doljak doljak commented May 6, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Replaced {{ form|without(...) }} with explicit rendering of {{ form.form_token }}, {{ form.form_build_id }} and {{ form.form_id }} in contact-site-page.html.twig

Why

The form|without() approach relied on catching leftover fields implicitly. Rendering the Drupal security tokens explicitly guarantees form submission works correctly and makes the template intent clear.

What to review

  • web/themes/custom/doljak_theme/templates/contact-site-page.html.twig — confirm hidden fields are present and form can submit

Issue #79 remains open for further work.

@doljak
doljak merged commit 9b77fe0 into main May 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant