{% if user.is_admin %}
{% for project in projects %}
{% with project_id=project.pk|stringformat:"s" %}
{% url 'project_delete' project.pk as delete_url %}
{% include "components/delete_modal.html" with modal_id="delete-project-"|add:project_id title="Delete Project" message="Are you sure you want to delete this project? This action cannot be undone." delete_url=delete_url %}
{% endwith %}
{% endfor %}
{% endif %}
{% endblock %}