Clean up html

This commit is contained in:
zandercymatics 2024-01-04 13:53:59 -07:00
parent 9d11653386
commit 01a6de2392
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -43,27 +43,28 @@
<td data-label="Role">{{ permission.role|title }}</td> <td data-label="Role">{{ permission.role|title }}</td>
<td class="shift-action-button"> <td class="shift-action-button">
<a <a
id="button-toggle-user-alert-{{ forloop.counter }}" id="button-toggle-user-alert-{{ forloop.counter }}"
href="#toggle-user-alert-{{ forloop.counter }}" href="#toggle-user-alert-{{ forloop.counter }}"
class="usa-button--unstyled" class="usa-button--unstyled"
aria-controls="toggle-user-alert-{{ forloop.counter }}" aria-controls="toggle-user-alert-{{ forloop.counter }}"
data-open-modal data-open-modal
>Remove</a >
> Remove
{# Use data-force-action to take esc out of the equation and pass cancel_button_resets_ds_form to effectuate a reset in the view #} </a>
<div
class="usa-modal" <div
id="toggle-user-alert-{{ forloop.counter }}" class="usa-modal"
aria-labelledby="Are you sure you want to continue?" id="toggle-user-alert-{{ forloop.counter }}"
aria-describedby="User will be removed" aria-labelledby="Are you sure you want to continue?"
data-force-action aria-describedby="User will be removed"
> data-force-action
<form method="POST" action="{% url "domain-user-delete" pk=domain.id user_pk=permission.user.id %}"> >
{% with heading="Are you sure you want to remove <"|add:permission.user.email|add:">?" %} <form method="POST" action="{% url "domain-user-delete" pk=domain.id user_pk=permission.user.id %}">
{% include 'includes/modal.html' with modal_heading=heading modal_description="<"|add:permission.user.email|add:"> will no longer be able to manage the domain "|add:domain.name|add:"." modal_button=modal_button|safe %} {% with heading="Are you sure you want to remove <"|add:permission.user.email|add:">?" %}
{% endwith %} {% include 'includes/modal.html' with modal_heading=heading modal_description="<"|add:permission.user.email|add:"> will no longer be able to manage the domain "|add:domain.name|add:"." modal_button=modal_button|safe %}
</form> {% endwith %}
</div> </form>
</div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}