templates/home/index.html.twig line 1
{% extends 'base.html.twig' %}{% block title %}Gestion des rappel{% endblock %}{% block body %}<style>.reminder {margin: 0 20px 0 0;width: 40px;float: left;position: relative;top: 8px;}.robot {margin: 0 20px 0 0;width: 50px;float: left;position: relative;top: -10px;}.reminders button {background-color: #fa2a25;border-color: #fb1914;font-size: 14px;position: relative;top: 15px;}</style><section><img src="/img/reminder.png" class="reminder"><h1>Créer un nouveau rappel :</h1>{{ form_start(form) }}{{ form_row(form.url) }}{{ form_row(form.created) }}{{ form_row(form.reminder) }}{{ form_row(form.submit, {label_html: true,label: 'Enregistrer',}) }}{{ form_end(form) }}</section><br><section>{# Affiche la liste des Updates #}<img src="/img/robot.png" class="robot"><h1>Rappels en attente :</h1>{{ form_start(formDelete) }}<table class="reminders"><thead><tr><th>Url</th><th>Crée le</th><th>Rappel le</th></tr></thead><tbody>{% for update in updates %}<tr><td>{{ update.url }}</td><td>{{ update.created|date('d/m/Y') }}</td><td>{{ update.reminder|date('d/m/Y') }}</td><td>{# Obligé de faire comme ça Symfony ne veux pas render plusieurs fois les elem d'un form #}<button type="submit" formaction="{{ path('app_home', {'id': update.id}) }}">Supprimer</button></td></tr>{% endfor %}</tbody></table>{{ form_end(formDelete) }}</section>{% endblock %}