Listing 34.16. Widok akcji Novel/index
{% extends '::layout.html.twig' %}

{% block contents %}
    <h2>Method</h2>
    <table class="record_properties">
        <tbody>
            <tr>
                <th>Name</th>
                <td>{{ entity }}</td>
            </tr>
        </tbody>
    </table>
    <h2>Novels</h2>
    {% include 'MyFrontendBundle:Novel:_list.html.twig'
            with {'entities': entity.novels } %}
{% endblock contents %}