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