Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/issues-plans/issue-79-contact-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
issue: 79
title: "[Theme + Form API] Contact page — Twig template, CSS layout and Drupal form integration"
branch: feat/contact-page-79-twig-template-css-layout-and-drupal-form-integration
status: in-progress
last_updated: 04-20-2026
status: closed
last_updated: 05-07-2026
---

# Issue #79 — [Theme + Form API] Contact page — Twig template, CSS layout and Drupal form integration
Expand All @@ -26,7 +26,7 @@ Implement the Waggy Contact page at /contact by creating a custom Twig template
- [x] contact-message-form.html.twig criado
- [x] CSS do layout de contato aplicado (desktop, tablet, mobile)
- [x] Biblioteca registrada em libraries.yml e anexada via template
- [ ] Envio validado no Mailpit
- [x] Envio validado no Mailpit

## Notes
- Template suggestions: contact-site-page.html.twig > contact-message-form.html.twig
Expand Down
7 changes: 6 additions & 1 deletion web/themes/custom/doljak_theme/doljak_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ function _doljak_theme_preprocess_footer(array &$variables): void {
*/
function doljak_theme_preprocess_contact_message_form(array &$variables): void {
$form = $variables['form'];
$variables['attributes'] = new Attribute($form['#attributes'] ?? []);
$attributes = new Attribute($form['#attributes'] ?? []);
if (!empty($form['#action'])) {
$attributes->setAttribute('action', $form['#action']);
}
$attributes->setAttribute('method', $form['#method'] ?? 'post');
$variables['attributes'] = $attributes;
$variables['contact_form_title'] = $form['#title'] ?? t('Contact');
}

Expand Down
Loading