Skip to content

Commit

Permalink
Ref #4 : joli formulaire de création d'une notification
Browse files Browse the repository at this point in the history
  • Loading branch information
DarckCrystale committed Jul 4, 2017
1 parent 06ecf88 commit e81d559
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions app/Resources/views/notification/nouveau.html.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{% extends 'base.html.twig' %}

{% block title %}Nouvelle notification{% endblock %}

{% block body %}
<h1>Notification creation</h1>
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="/">AAAccueil</a></li>
<li><a href="{{ path('notification_liste') }}">Notifications</a></li>
<li class="active">Créer une nouvelle notification</li>
</ol>

<h1>Créer une nouvelle notification</h1>
</div>

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

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

0 comments on commit e81d559

Please sign in to comment.