Minor corrections
This commit is contained in:
@@ -6,7 +6,6 @@ require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Slim\Factory\AppFactory;
|
||||
use Slim\Views\TwigMiddleware;
|
||||
use Throwable;
|
||||
|
||||
// Charger et créer les services centralisés
|
||||
$services = App\Factories\ServiceFactory::createServices();
|
||||
|
||||
@@ -10,4 +10,5 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<p>Aucun article publié.</p>
|
||||
{% endblock %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "layout.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% if post is defined and post.id is defined %}
|
||||
{% if post is defined and post is not null and post.id is defined %}
|
||||
Éditer l’article
|
||||
{% else %}
|
||||
Créer un article
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
{% block content %}
|
||||
<h2>
|
||||
{% if post is defined and post.id is defined %}
|
||||
{% if post is defined and post is not null and post.id is defined %}
|
||||
Éditer l’article
|
||||
{% else %}
|
||||
Créer un article
|
||||
@@ -28,12 +28,12 @@
|
||||
|
||||
<p>
|
||||
<label>Contenu<br>
|
||||
<textarea id="editor" name="content" rows="6" >{{ post.content|default('') }}</textarea>
|
||||
<textarea id="editor" name="content" rows="6">{{ post.content|default('') }}</textarea>
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<button type="submit">
|
||||
{% if post is defined and post.id is defined %}Mettre à jour{% else %}Enregistrer{% endif %}
|
||||
{% if post is defined and post is not null and post.id is defined %}Mettre à jour{% else %}Enregistrer{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user