60 lines
2.2 KiB
Twig
60 lines
2.2 KiB
Twig
|
|
{% extends 'base.html.twig' %}
|
||
|
|
|
||
|
|
{% block title %}Nouvelle Contribution{% endblock %}
|
||
|
|
|
||
|
|
{% block body %}
|
||
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
||
|
|
<h1>Nouvelle Contribution</h1>
|
||
|
|
<a href="{{ path('app_contribution_index') }}" class="btn btn-secondary">
|
||
|
|
<i class="fas fa-arrow-left"></i> Retour à la liste
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-8">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body">
|
||
|
|
{{ form_start(form) }}
|
||
|
|
<div class="mb-3">
|
||
|
|
{{ form_label(form.membre) }}
|
||
|
|
{{ form_widget(form.membre) }}
|
||
|
|
{{ form_errors(form.membre) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="mb-3">
|
||
|
|
{{ form_label(form.projet) }}
|
||
|
|
{{ form_widget(form.projet) }}
|
||
|
|
{{ form_errors(form.projet) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="mb-3">
|
||
|
|
{{ form_label(form.dateContribution) }}
|
||
|
|
{{ form_widget(form.dateContribution) }}
|
||
|
|
{{ form_errors(form.dateContribution) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="mb-3">
|
||
|
|
{{ form_label(form.duree) }}
|
||
|
|
{{ form_widget(form.duree) }}
|
||
|
|
{{ form_errors(form.duree) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="mb-3">
|
||
|
|
{{ form_label(form.commentaire) }}
|
||
|
|
{{ form_widget(form.commentaire) }}
|
||
|
|
{{ form_errors(form.commentaire) }}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="d-flex gap-2">
|
||
|
|
<button type="submit" class="btn btn-success">
|
||
|
|
<i class="fas fa-save"></i> Créer
|
||
|
|
</button>
|
||
|
|
<a href="{{ path('app_contribution_index') }}" class="btn btn-secondary">Annuler</a>
|
||
|
|
</div>
|
||
|
|
{{ form_end(form) }}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|