Skip to content

Commit

Permalink
feat(templates): add link to referenced object above reference form
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Aug 26, 2024
1 parent 82a9cf1 commit 27aaf96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apis_bibsonomy/templates/apis_bibsonomy/reference_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

{% block content %}
<div class="container">
<h3 class="text-center">
{% if form.instance %}
{% if form.instance.referenced_object %}
Edit reference on <a href="{{ form.instance.referenced_object.get_absolute_url }}">{{ form.instance.referenced_object }}</a>
{% endif %}
{% endif %}
</h3>
{% crispy form form.helper %}
</div>
{% endblock content %}

0 comments on commit 27aaf96

Please sign in to comment.