SciPost Code Repository

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

Add admin edit link for Submission

parent 2210c6f6
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<h3 class="mt-2">Administration</h3> <h3 class="mt-2">Administration</h3>
<ul> <ul>
{% if user.is_superuser %} {% if user.is_superuser %}
<li><a href="{% url 'admin:submissions_report_change' report.id %}" target="_blank">Edit in admin (superusers only)</a> <li><a href="{% url 'admin:submissions_report_change' report.id %}" target="_blank">Edit in admin (superusers only)</a></li>
{% endif %} {% endif %}
<li><a href="{% url 'submissions:report_pdf_compile' report.id %}">Update/Compile the Report pdf</a></li> <li><a href="{% url 'submissions:report_pdf_compile' report.id %}">Update/Compile the Report pdf</a></li>
<li>Mark DOI as <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=1 %}">needed</a> / <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=0 %}">not needed</a></li> <li>Mark DOI as <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=1 %}">needed</a> / <a href="{% url 'journals:mark_report_doi_needed' report_id=report.id needed=0 %}">not needed</a></li>
......
...@@ -102,6 +102,9 @@ ...@@ -102,6 +102,9 @@
</div> </div>
<h3 class="mt-4">Submission summary</h3> <h3 class="mt-4">Submission summary</h3>
{% if user.is_superuser %}
<p><a href="{% url 'admin:submissions_submission_change' submission.id %}" target="_blank" class="p-1 border border-danger text-danger">Edit in admin (superusers only)</a></p>
{% endif %}
{% include 'submissions/_submission_summary.html' with submission=submission hide_title=1 show_abstract=1 %} {% include 'submissions/_submission_summary.html' with submission=submission hide_title=1 show_abstract=1 %}
{% include 'submissions/_submission_topics.html' with submission=submission %} {% include 'submissions/_submission_topics.html' with submission=submission %}
......
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