{% extends 'base2.html.twig' %}

{% block title %}{{ parent() }} - Ebook{% endblock %}

{% block body %}
    <br/>
    <br/>
    <br/><br/>
    <h1>Ebook</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ ebook.id }}</td>
            </tr>
            <tr>
                <th>Nome</th>
                <td>{{ ebook.nome }}</td>
            </tr>
            <tr>
                <th>Descricao</th>
                <td>{{ ebook.descricao }}</td>
            </tr>
            <tr>
                <th>Preco</th>
                <td>{{ ebook.preco }}</td>
            </tr>
            <tr>
                <th>Imagem</th>
                <td>{{ ebook.imagem }}</td>
            </tr>
            <tr>
                <th>Arquivo</th>
                <td>{{ ebook.arquivo }}</td>
            </tr>
        </tbody>
    </table>

    <a href="{{ path('app_ebook_index') }}">back to list</a>

    <a href="{{ path('app_ebook_edit', {'id': ebook.id}) }}">edit</a>

    {{ include('ebook/_delete_form.html.twig') }}
{% endblock %}
