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


{% block content %}
    <nav class="navbar navbar-fixed-top navbar-dark bg-inverse">
        <a class="navbar-brand" href="{{path('admin_homepage')}}" style="margin-right: 100px">GPC : Espace Admin</a>
        <ul class="nav navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="{{path('composant_index')}}">Composant Logiciel<span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('produit_index')}}">Produit Logiciel</a>
            </li>
            <li class="nav-item">
                <a class="nav-link active" href="{{path('version_index')}}">Version Composant</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('version_produit_index')}}">Version Produit</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{{path('admin_homepage_users')}}">Utilisateur</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>Modifier Version Composant</h1>
            <br>
            {{ form_start(edit_form) }}
            {{ form_label(edit_form.comp) }}
            {{ form_widget(edit_form.comp) }}
            <br><br>
            {{ form_label(edit_form.version) }}
            {{ form_widget(edit_form.version) }}
            <br><br>
            <input class="btn btn-success" type="submit" value="Modifier" />
            {{form_widget(edit_form._token)}}
{#            {{ form_end(edit_form) }}#}
        </form>

            <br><br>
            <a class="btn btn-info" href="{{ path('version_index') }}">Retour à la liste</a>
            <br><br>
            {{ form_start(delete_form) }}
            <input class="btn btn-danger" type="submit" value="Delete">                    
            {{ form_end(delete_form) }}
                

    </div>
{% endblock content %}




