misc: add style to edit links

This commit is contained in:
2024-11-07 12:54:01 +01:00
parent c102cf936e
commit 129360f89d
4 changed files with 11 additions and 8 deletions

View File

@ -56,7 +56,7 @@ Styling related context:
<div class="actions">
{% block actions %}
{% if admin and object.edit_url_name %}
<a href="{% url object.edit_url_name pk=object.pk %}" target="_self">{% translate "Edit" %}</a>
<a href="{% url object.edit_url_name pk=object.pk %}" target="_self" class="button secondary withmargin">{% translate "Edit" %}</a>
{% endif %}
{% endblock %}
</div>