diff --git a/templates/ccpo/users.html b/templates/ccpo/users.html index 086219e3..5181df5b 100644 --- a/templates/ccpo/users.html +++ b/templates/ccpo/users.html @@ -53,7 +53,6 @@ {% if user_can(permissions.DELETE_CCPO_USER) %} {% for user, form in data.items() %} {% set modal_id = "disable_ccpo_user_{}".format(user.dod_id) %} - {% set confirmation_text = 'remove' %} {% call Modal(name=modal_id) %} {{ Alert( @@ -62,30 +61,15 @@ level="warning" ) }} - - - - - - - {{ "common.delete_confirm" | translate({"word": confirmation_text.upper()}) }} - - - - - - - {{ form.csrf_token }} - - {{ 'ccpo.disable_user.remove_button' | translate }} - - - - {{ "common.cancel" | translate }} - - - - + {{ + DeleteConfirmation( + modal_id=modal_id, + delete_text='Remove Access', + delete_action=(url_for('ccpo.remove_access', user_id=user.id)), + form=form, + confirmation_text='remove' + ) + }} {% endcall %} {% endfor %} {% endif %}