2022-06-29 11:28:26 +02:00
|
|
|
<button class="btn btn-sm {% if contact.block_forward %}
|
|
|
|
text-primary {% else %} text-warning {% endif %}" hx-post="{{ url_for('dashboard.toggle_contact', contact_id=contact.id) }}" hx-swap="outerHTML">
|
2021-11-03 11:29:46 +01:00
|
|
|
{% if contact.block_forward %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
|
|
<i class="fe fe-play-circle"
|
|
|
|
data-toggle="tooltip"
|
|
|
|
title="Unblock sender"></i>
|
2021-11-03 11:29:46 +01:00
|
|
|
{% else %}
|
2021-11-03 12:36:20 +01:00
|
|
|
<i class="fe fe-pause-circle" data-toggle="tooltip" title="Block sender"></i>
|
2021-11-03 11:29:46 +01:00
|
|
|
{% endif %}
|
|
|
|
</button>
|
2022-06-29 11:28:26 +02:00
|
|
|
{% if toast_msg %}<script>toastr.success("{{ toast_msg }}");</script>{% endif %}
|