{% load custom_tags_and_filters %}
Created | Access | Requested start | Requested end | Users | {% if request_status == 'pending' and user_is_reviewer %} Action {% elif request_status == 'approved' %} Approved by {% elif request_status == 'denied' %} Denied by {% endif %} |
---|---|---|---|---|---|
{% if a_request.id in access_request_notifications %}New {% endif %}{{ a_request.creation_time|date:'SHORT_DATETIME_FORMAT' }} | {{ a_request.physical_access_level.display_value_for_select }} | {{ a_request.start_time|date:'SHORT_DATETIME_FORMAT' }} | {{ a_request.end_time|date:'SHORT_DATETIME_FORMAT' }} |
|
{% if request_status == 'pending' and user in a_request.reviewers %} Review {% elif request_status == 'pending' and a_request.creator == user %} {% url 'edit_access_request' a_request.id as edit_request_url %} {% url 'delete_access_request' a_request.id as delete_request_url %} {% button type="edit" size="small" value="Edit" title="Edit request" url=edit_request_url %} {% button type="delete" size="small" value="Delete" title="Delete request" url=delete_request_url onclick="return confirm('Are you sure you want to delete this request?');" %} {% elif request_status == 'approved' or request_status == 'denied' %} {{ a_request.reviewer.get_name }} {% endif %} |
{% if a_request.description %}Description: {{ a_request.description|linebreaksbr }}{% endif %} |
{% endif %}