Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1039: Added overwriteables templates for flow pdfs #315

Merged
merged 5 commits into from
May 14, 2024

Conversation

jekuaitk
Copy link
Contributor

Moved from #291

@jekuaitk jekuaitk requested a review from rimi-itk May 14, 2024 11:59
Comment on lines 16 to 21
or in `settings.local.php` as

```sh
$config['os2forms_forloeb.settings']['templates']['notification_pdf'] = 'themes/custom/os2forms_selvbetjening_theme/templates/pdf/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig';
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

settings.local.php should be used for local (custom/non-default) settings (overriding settings.php), so if this can be set in settings.php (and we know it can) and it makes sense to set a default value, we should set it (in settings.php).

web/themes/custom/os2forms_selvbetjening_theme/README.md Outdated Show resolved Hide resolved
@jekuaitk jekuaitk requested a review from rimi-itk May 14, 2024 13:26
* themes/custom/os2forms_selvbetjening_theme/templates/pdf/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig,
* the template will be loaded from this path.
*/
$config['os2forms_forloeb.settings']['templates']['notification_pdf'] = 'themes/custom/os2forms_selvbetjening_theme/templates/pdf/os2forms-selvbetjening-maestro-notification-pdf-html.html.twig';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jekuaitk jekuaitk merged commit 8d2c32c into release/2.7.12 May 14, 2024
8 checks passed
@jekuaitk jekuaitk deleted the feature/1039-flows-pdf-style branch May 14, 2024 13:29
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.

2 participants