18 lines
733 B
HTML
18 lines
733 B
HTML
{#
|
|
Standalone swap target for every form POST — crate::ui::Alert.
|
|
Rendered into the page's #submission-status / #login-status div.
|
|
|
|
A success is an inline alert and nothing more. A failure also gets the
|
|
dialog: these divs sit at the bottom of their form, so on any page long
|
|
enough to scroll — the validation forms, the import form, the table builder
|
|
— the alert alone lands off screen and the page looks like it did nothing.
|
|
#}
|
|
{% import "ui/alert.html" as alert %}
|
|
{% import "ui/dialog.html" as dialog %}
|
|
{%- if success -%}
|
|
{% call alert::success(title, message) %}{% endcall %}
|
|
{%- else -%}
|
|
{% call alert::error(title, message) %}{% endcall %}
|
|
{% call dialog::error(title, message) %}{% endcall %}
|
|
{%- endif -%}
|