SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a9d5ae74 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add quick admin links in vet_registration_requests

parent a9666233
No related branches found
No related tags found
No related merge requests found
{% extends 'scipost/_personal_page_base.html' %} {% extends 'scipost/_personal_page_base.html' %}
{% load scipost_extras %}
{% block pagetitle %}: registrations to vet{% endblock pagetitle %} {% block pagetitle %}: registrations to vet{% endblock pagetitle %}
{% load bootstrap %} {% load bootstrap %}
...@@ -7,7 +9,7 @@ ...@@ -7,7 +9,7 @@
{% block breadcrumb_items %} {% block breadcrumb_items %}
{{block.super}} {{ block.super }}
<span class="breadcrumb-item">Registration requests to vet</span> <span class="breadcrumb-item">Registration requests to vet</span>
{% endblock %} {% endblock %}
...@@ -30,10 +32,20 @@ ...@@ -30,10 +32,20 @@
{% for contributor_to_vet in contributors_to_vet %} {% for contributor_to_vet in contributors_to_vet %}
{% if not forloop.first %}<hr class="small">{% endif %} {% if not forloop.first %}<hr class="small">{% endif %}
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-6">
{% include "scipost/_private_info_as_table.html" with contributor=contributor_to_vet %} {% include "scipost/_private_info_as_table.html" with contributor=contributor_to_vet %}
</div> </div>
<div class="col-md-8"> <div class="col-md-6">
{% if user.is_superuser %}
<a href="{{ contributor_to_vet|get_admin_url }}"
target="_blank" class="btn btn-sm btn-danger mb-2">
Edit User object in admin (su only)
</a>
<a href="{{ contributor_to_vet.profile|get_admin_url }}"
target="_blank" class="btn btn-sm btn-danger mb-2">
Edit Profile object in admin (su only)
</a>
{% endif %}
<form action="{% url 'scipost:vet_registration_request_ack' contributor_id=contributor_to_vet.id %}" method="post"> <form action="{% url 'scipost:vet_registration_request_ack' contributor_id=contributor_to_vet.id %}" method="post">
{% csrf_token %} {% csrf_token %}
{{form|bootstrap}} {{form|bootstrap}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment