{% extends "generic/object.html" %} {% load render_table from django_tables2 %} {% load custom_links %} {% load perms %} {% load buttons %} {% load plugins %} {% load fwadmin_buttons %} {% comment %} __author__ = "Andrea Dainese" __contact__ = "andrea@adainese.it" __copyright__ = "Copyright 2022, Andrea Dainese" __license__ = "GPLv3" {% endcomment %} {% block title %}Request #{{ object.id }}{% endblock title %} {% block controls %} {# Disable Edit/Delete Buttons #}
{% plugin_buttons object %} {# Extra buttons #} {% block extra_controls %} {% if request.user|can_change:object %} {% approve_button object %} {% reject_button object %} {% elif request.user|can_view:object %} {% self_approve_button object %} {% endif %} {% endblock extra_controls %} {% if request.user|can_add:object %} {% clone_button object %} {% endif %}
{% custom_links object %}
{% endblock controls %} {% block content %}
Session request
Requested by {{ object.requested_by }}
Reason {{ object.request_reason }}
Status {{ object.status }}
Start at {{ object.start_at }}
End at {{ object.end_at }}
Cleared {{ object.cleared }}
{% include "inc/panels/custom_fields.html" %}
{% include "inc/panels/tags.html" %} {% include "inc/panels/comments.html" %}
Dynamic lists
{% render_table dynamiclist_table %}
{% endblock content %}