Skip to content

Commit 34eb5a4

Browse files
committed
feat: move toast parent into footer
1 parent 55e20d4 commit 34eb5a4

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

apollo/templates/admin/form_list.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ <h5 id="formImportModalLabel" class="modal-title">{{ _('Import Form') }}</h5>
173173
</div>
174174
</div>
175175
</form>
176-
{{ render_toast_parent(toast_app_id) }}
177176
{% endblock %}
178-
177+
{% block footer %}
178+
{{ render_toast_parent(toast_app_id) }}
179+
{% endblock footer %}
179180
{%- block tail_js %}
180181
{{ super() }}
181182
{{ render_toast_template() }}

apollo/templates/admin/locations_list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ <h3>{{ _('Finalize') }}</h3>
128128
<div class="card-footer">
129129
{{ render_pager(locations, 'locationset.locations_list', args) }}
130130
</div>
131-
{{ render_toast_parent(toast_app_id) }}
132131
</div>
133132
{% endblock %}
134133

134+
{% block footer %}
135+
{{ render_toast_parent(toast_app_id) }}
136+
{% endblock footer %}
135137

136138
{%- block tail_js -%}
137139
{{ super() }}

apollo/templates/admin/participant_list.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
{{ render_pager(participants, 'participants.participant_list', args) }}
211211
{%- endif %}
212212
</div>
213-
{{ render_toast_parent(toast_app_id) }}
214213

215214
<div class="wizard" id="import-wizard" data-title="{{ _('Import Participants') }}">
216215
<div class="wizard-card" data-cardname="uploadFile">
@@ -248,6 +247,10 @@ <h3>{{ _('Finalize') }}</h3>
248247
</div>
249248
{%- endblock -%}
250249

250+
{% block footer %}
251+
{{ render_toast_parent(toast_app_id) }}
252+
{% endblock footer %}
253+
251254
{%- block tail_js -%}
252255
{{ super() }}
253256
{{ render_toast_template() }}

apollo/templates/admin/task_toast.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
{% macro render_toast_parent(toast_app_id) %}
4141
<div aria-live="polite" aria-atomic="true" id="{{ toast_app_id }}">
42-
<div style="position: absolute; bottom: 2rem; right: 2rem;">
42+
<div style="position: relative; margin-bottom: 2rem; margin-right: 2rem;">
4343
<task-toast v-for="task in tasks" :key="task.id" :task-info="task"></task-toast>
4444
</div>
4545
</div>

0 commit comments

Comments
 (0)