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

{% block title %}Curso{% endblock %}

{% block body %}
    <h1>Curso</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ curso.id }}</td>
            </tr>
            <tr>
                <th>Nome</th>
                <td>{{ curso.nome }}</td>
            </tr>
            <tr>
                <th>Descricao</th>
                <td>{{ curso.descricao }}</td>
            </tr>
            <tr>
                <th>Preco</th>
                <td>{{ curso.preco }}</td>
            </tr>
            <tr>
                <th>UpdatedAt</th>
                <td>{{ curso.updatedAt ? curso.updatedAt|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>Imagem</th>
                <td>{{ curso.imagem }}</td>
            </tr>
        </tbody>
    </table>

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

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

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