penguinui
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
{#
|
||||
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 %}
|
||||
{%- if success %}{% call alert::success(title, message) %}{% endcall %}{% else %}{% call alert::error(title, message) %}{% endcall %}{% endif -%}
|
||||
{% 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 -%}
|
||||
|
||||
Reference in New Issue
Block a user