collection-crud/templates/camera/edit.html.twig

27 lines
622 B
Twig
Raw Normal View History

2017-11-09 11:53:01 -05:00
{% extends 'form.html.twig' %}
{% block form %}
<h1>Edit Camera</h1>
2017-11-22 13:49:31 -05:00
<div class="small callout">
2017-11-09 11:53:01 -05:00
<ul>
<li>
<a href="{{ path('camera_index') }}">Back to the list</a>
</li>
</ul>
</div>
2017-11-22 13:49:31 -05:00
<div class="large primary callout">
2017-11-09 11:53:01 -05:00
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
2017-11-22 13:49:31 -05:00
<button type="submit" class="success button">Update</button>
2017-11-09 11:53:01 -05:00
{{ form_end(edit_form) }}
<hr />
{{ form_start(delete_form) }}
<button type="submit" class="alert button">Delete</button>
{{ form_end(delete_form) }}
</div>
{% endblock %}