cleanup recipe edit

This commit is contained in:
vabene1111
2020-02-02 16:06:24 +01:00
parent 07502fecc0
commit 305a4949fb
2 changed files with 20 additions and 29 deletions

View File

@@ -22,7 +22,7 @@
{{ form|crispy }}
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
<a href="{% url 'redirect_delete' form.instance|get_class|lower form.instance.pk %}"
class="btn btn-danger">{% trans 'Delete' %}</a>
class="btn btn-danger"><i class="fas fa-trash-alt"></i> {% trans 'Delete' %}</a>
{% if view_url %}
<a href="{{ view_url }}" class="btn btn-info"><i class="far fa-eye"></i> {% trans 'View' %}</a>
{% endif %}