mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 03:39:29 -04:00
29 lines
652 B
HTML
29 lines
652 B
HTML
{% macro ajax_block(partials, url, key, finished=False, form='') %}
|
|
{% if not finished %}
|
|
<div
|
|
data-module="update-content"
|
|
data-resource="{{ url }}"
|
|
data-key="{{ key }}"
|
|
data-form="{{ form }}"
|
|
>
|
|
{% endif %}
|
|
{{ partials[key]|safe }}
|
|
{% if not finished %}
|
|
</div>
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro socket_block(partials, job_id, key, finished=False, form='') %}
|
|
{% if not finished %}
|
|
<div
|
|
data-module="live-content"
|
|
data-key="{{ key }}"
|
|
data-room="job-{{ job_id }}"
|
|
>
|
|
{% endif %}
|
|
{{ partials[key]|safe }}
|
|
{% if not finished %}
|
|
</div>
|
|
{% endif %}
|
|
{% endmacro %}
|