@extends('layouts.app')

@section('content')
    <div class="container">
        <div>
            <h2 class="pb-2">Ajouter une unité d'oeuvre</h2>
        </div>

        @include('layouts.commons.errors')
        @include('layouts.commons.success')

        <form method="POST" action="{{ route('action_unite_oeuvre.update', $action_unite_oeuvre->id) }}">
            @csrf
            {{ method_field('PUT') }}

            <!-- Libellé -->
            <div class="form-group row">
                <label for="libelle" class="col-md-4 col-form-label text-md-right required">Libellé</label>
                <div class="col-md-6">
                    <input id="libelle" type="text" class="form-control" name="libelle" value="{{ old('libelle', $action_unite_oeuvre->libelle) }}" required>
                </div>
            </div>

            <div class="form-group row mb-0">
                <div class="col-md-8 offset-md-4">
                    <button type="submit" class="btn btn-outline-success">
                        Sauvegarder
                    </button>
                    <a href="{{ route('resp-soc-env.index') }}" class="btn btn-outline-warning">Annuler</a>
                </div>
            </div>
        </form>
    </div>
@endsection
