Clean up the interface with nice buttons

This commit is contained in:
Tim
2023-04-05 00:31:41 +02:00
parent 693f83ca4a
commit 22735cf884
5 changed files with 35 additions and 10 deletions

View File

@ -1,6 +1,18 @@
{% extends 'base/base.html.twig' %}
{% block title %}Edit {{ snip }}{% endblock %}
{% block body %}
{% if snip.id %}
<a href="{{ path('snip_single', {snip: snip.id}) }}" class="btn btn-primary">
<i class="fa fa-arrow-left"></i>
Back
</a>
{% endif %}
<a href="{{ path('snip_index') }}" class="btn btn-info">
<i class="fa fa-list"></i>
Index
</a><br><br>
<h2>Editing {{ snip }}</h2>
{{ form(form) }}
{% endblock %}