Snips/templates/snip/edit.html.twig

18 lines
494 B
Twig
Raw Normal View History

2023-04-04 00:36:35 +02:00
{% extends 'base/base.html.twig' %}
{% block title %}Edit {{ snip }}{% endblock %}
2023-04-04 00:36:35 +02:00
{% 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>
2023-04-04 01:39:08 +02:00
{{ form(form) }}
2023-04-04 00:36:35 +02:00
{% endblock %}