28 lines
774 B
Twig
28 lines
774 B
Twig
|
{% extends 'form.html.twig' %}
|
||
|
|
||
|
{% block title %}Edit Socket{% endblock %}
|
||
|
|
||
|
{% block form %}
|
||
|
<h1>Edit Socket</h1>
|
||
|
|
||
|
<div class="small callout">
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a href="{{ path('socket_index') }}">Back to the list</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div class="large primary callout">
|
||
|
{{ form_start(form) }}
|
||
|
{{ form_widget(form) }}
|
||
|
<button type="submit" class="success button expanded">Update</button>
|
||
|
{{ form_end(form) }}
|
||
|
|
||
|
<form method="post" action="{{ path('socket_delete', {'id': socket.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ socket.id) }}">
|
||
|
<button type="submit" class="alert button expanded">Delete</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endblock %}
|