{% extends 'GestionBundle:Layout:baseResponsable.html.twig' %}


{% block content %}
    <nav class="navbar navbar-fixed-top navbar-dark bg-inverse">
        <a class="navbar-brand" href="{{path('responsable_homepage')}}" style="margin-right: 100px">GPC : Espace Responsable</a>
        <ul class="nav navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="{{path('responsable_composant_index')}}">Composant Logiciel<span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('responsable_produit_index')}}">Produit Logiciel</a>
            </li>
            <li class="nav-item">
                <a class="nav-link active" href="{{path('responsable_version_index')}}">Version Composant</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('responsable_version_produit_index')}}">Version Produit</a>
            </li>
            <li class="nav-item">
                <a style="margin-left: 150px;" class="nav-link" href="{{ path('fos_user_security_logout') }}">Déconnexion</a>
            </li>
        </ul>
    </nav>

    <div class="container">
        <div class="starter-template">
            <h1>Version Composant "{{ version.comp.titre }}"</h1>

            <table class="table">
                <tbody>
                    <tr>
                        <th>Composant</th>
                        <td>{{ version.comp.titre }}</td>
                    </tr>
                    <tr>
                        <th>Version</th>
                        <td>{{ version.version }}</td>
                    </tr>
                </tbody>
            </table>



            <a class="btn btn-info" href="{{ path('responsable_version_index') }}">Retour à la liste</a>

            <a class="btn btn-warning" href="{{ path('responsable_version_edit', { 'id': version.id }) }}">Edit</a>
            <br><br>
            {{ form_start(delete_form) }}
            <input class="btn btn-danger" type="submit" value="Delete">                    
            {{ form_end(delete_form) }}



        </div>
    {% endblock content %}

