Skip to content

Instantly share code, notes, and snippets.

@AndrianD
Created January 20, 2015 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrianD/bde13368c9e356f9ee34 to your computer and use it in GitHub Desktop.
Save AndrianD/bde13368c9e356f9ee34 to your computer and use it in GitHub Desktop.
Symfony2
{% extends '::base.html.twig' %}
{% block body -%}
<h1>Toys</h1>
<table class="record_properties">
<tbody>
<tr>
<th>Id</th>
<td>{{ entity.id }}</td>
</tr>
<tr>
<th>Nom</th>
<td>{{ entity.nom }}</td>
</tr>
<tr>
<th>Type</th>
<td>{{ entity.type }}</td>
</tr>
<tr>
<th>Poids</th>
<td>{{ entity.poids }}</td>
</tr>
</tbody>
</table>
<ul class="record_actions">
<li>
<a href="{{ path('toys') }}">
Back to the list
</a>
</li>
<li>
<a href="{{ path('toys_edit', { 'id': entity.id }) }}">
Edit
</a>
</li>
<li>{{ form(delete_form) }}</li>
</ul>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment