fixed edit/create messages
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
{# Header commun #}
|
||||
{% include 'partials/_header.twig' %}
|
||||
|
||||
|
||||
{# Zone principale – chaque page injecte son contenu #}
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
@@ -25,8 +24,8 @@
|
||||
{# Footer commun #}
|
||||
{% include 'partials/_footer.twig' %}
|
||||
|
||||
|
||||
{# Scripts globaux #}
|
||||
<script src="/js/app.js"></script>
|
||||
{# <script src="/js/app.js"></script> #}
|
||||
{% block scripts %}{% endblock %}</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
{% extends "layout.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% if post is defined %}Éditer l’article{% else %}Créer un article{% endif %}
|
||||
{% if post is defined and post.id is defined %}
|
||||
Éditer l’article
|
||||
{% else %}
|
||||
Créer un article
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>
|
||||
{% if post is defined %}Éditer{% else %}Créer{% endif %} un article
|
||||
{% if post is defined and post.id is defined %}
|
||||
Éditer l’article
|
||||
{% else %}
|
||||
Créer un article
|
||||
{% endif %}
|
||||
</h2>
|
||||
|
||||
<form method="post" action="{{ action }}">
|
||||
Reference in New Issue
Block a user