Skip to content

Commit

Permalink
Ref #8 : joli formulaire de créa d'event
Browse files Browse the repository at this point in the history
  • Loading branch information
DarckCrystale committed Jun 25, 2017
1 parent fc10229 commit 1fbfeb9
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions app/Resources/views/evenement/nouveau.html.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{% extends 'base.html.twig' %}

{% block title %}Nouvel événement{% endblock %}

{% block body %}
<h1>Evenement creation</h1>
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="/">AAAccueil</a></li>
<li><a href="{{ path('evenement_liste') }}">Événements</a></li>
<li class="active">Créer un nouvel événement</li>
</ol>

<h1>Créer un nouvel événement</h1>
</div>

{{ form_start(form) }}
{{ form_widget(form) }}
<input type="submit" value="Create" />
{{ form_end(form) }}
<div class="col-md-12">
{{ form_start(form, {'attr': {'id': 'form_creer_evenement'}}) }}
{{ form_widget(form) }}
{{ form_end(form) }}
</div>

<ul>
<li>
<a href="{{ path('evenement_liste') }}">Back to the list</a>
</li>
</ul>
<div class="col-md-6"></div>
<div class="col-md-6 text-right">
<a href="{{ path('evenement_liste') }}" class="btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> Annuler</a>
<button class="btn btn-primary" form="form_creer_evenement"><span class="glyphicon glyphicon-ok"></span> Créer l'événement</button>
</div>
{% endblock %}

0 comments on commit 1fbfeb9

Please sign in to comment.