Skip to content

Conversation

yostashiro
Copy link
Member

The module adds configurable banners for backend form views. Define rules per model
(and optionally per view) to show context-aware alerts with a chosen severity (info/warning/danger).

Messages can be plain text with ${placeholders} or fully custom HTML; visibility,
severity, and values are computed server-side via a safe Python expression.

Banners are injected just before or after a target node (default: //sheet) and refresh
on form load/save/reload.

@qrtl QT5611

Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Choose a reason for hiding this comment

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

Code and functional review: LGTM

@yostashiro
Copy link
Member Author

@AungKoKoLin1997 Just added a commit since the message translation wasn't working. Also re-allocated some eval context vars from _get_banner_eval_context() to _banner_base_eval_ctx_static().

Please squash once you confirm this, and apply the same in the migration PR.

@yostashiro yostashiro force-pushed the 12.0-add-web_form_banner branch 2 times, most recently from ce13027 to 9503b73 Compare September 19, 2025 12:35
@yostashiro
Copy link
Member Author

@AungKoKoLin1997 It was mistaken when I said the update didn't work. The updated code actually works fine.

@yostashiro yostashiro force-pushed the 12.0-add-web_form_banner branch from 9503b73 to d5180e4 Compare September 19, 2025 14:07
@yostashiro yostashiro force-pushed the 12.0-add-web_form_banner branch from d5180e4 to 530c8c4 Compare September 20, 2025 10:00
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