feat: Add links to edit and remove link to animal detail page
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h1 class="card-header-title">
|
<h1 class="card-header-title">
|
||||||
<a href="{% url 'animal-detail' animal_id=animal.pk %}">{{ animal.name }}</a>
|
{{ animal.name }}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
@@ -57,9 +57,9 @@
|
|||||||
<!--- Assume a user does not have edit permissions on animal if they have no other edit permission --->
|
<!--- Assume a user does not have edit permissions on animal if they have no other edit permission --->
|
||||||
{% if has_edit_permission %}
|
{% if has_edit_permission %}
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<a class="card-footer-item button"
|
<a class="card-footer-item"
|
||||||
href="{% url 'animal-edit' animal_id=animal.pk %}">{% translate 'Bearbeiten' %}</a>
|
href="{% url 'animal-edit' animal_id=animal.pk %}">{% translate 'Bearbeiten' %}</a>
|
||||||
<a class="card-footer-item button"
|
<a class="card-footer-item"
|
||||||
href="{% url 'animal-add-photo-bulma' animal_id=animal.pk %}">{% translate 'Foto hinzufügen' %}</a>
|
href="{% url 'animal-add-photo-bulma' animal_id=animal.pk %}">{% translate 'Foto hinzufügen' %}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user