25 lines
1.1 KiB
HTML
25 lines
1.1 KiB
HTML
{#
|
|
The outcome of the last write, reported the way every page here reports it:
|
|
inline as an alert, as a modal that has to be dismissed, and — on success —
|
|
as a toast that outlives the swap.
|
|
|
|
Included at the top of each page's panel fragment, because the fragment is
|
|
what a write swaps, so this is the markup that has to carry the reason.
|
|
#}
|
|
{% import "ui/alert.html" as feedback_alert %}
|
|
{% import "ui/dialog.html" as feedback_dialog %}
|
|
{% import "ui/toast.html" as feedback_toast %}
|
|
|
|
{%- if let Some(message) = page.error %}{% call feedback_alert::error(nav.locale, nav.tr("td-could-not-continue"), message) %}{% endcall %}{% endif -%}
|
|
{%- if let Some(message) = page.status %}{% call feedback_toast::success(nav.tr("td-done"), message) %}{% endcall %}{% endif -%}
|
|
{%- if let Some(message) = page.error %}{% call feedback_dialog::error(nav.locale, nav.tr("td-could-not-continue"), message) %}{% endcall %}{% endif -%}
|
|
|
|
{% if let Some(sql) = page.sql %}
|
|
{% if !sql.is_empty() %}
|
|
<section class="panel">
|
|
<h2>{{ nav.tr("td-sql-ran") }}</h2>
|
|
<pre class="sql-preview">{{ sql }}</pre>
|
|
</section>
|
|
{% endif %}
|
|
{% endif %}
|