From c518e91bb941c27eba1bde8b0eaefc7aaeb95954 Mon Sep 17 00:00:00 2001
From: nicod_ <nicod@lerebooteux.fr>
Date: Sun, 16 Apr 2023 19:53:13 +0200
Subject: [PATCH] =?UTF-8?q?Champ=20titre=20obligatoire=20(pour=20tester=20?=
 =?UTF-8?q?la=20v=C3=A9rification)=20et=20mise=20=C3=A0=20jour=20des=20squ?=
 =?UTF-8?q?elettes=20de=20blocks?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 blocks/texte_simple.html       | 4 ++--
 blocks_administrations.php     | 7 ++++---
 blocks_prive/texte_simple.html | 4 ++--
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/blocks/texte_simple.html b/blocks/texte_simple.html
index b1c6410..e680098 100644
--- a/blocks/texte_simple.html
+++ b/blocks/texte_simple.html
@@ -1,2 +1,2 @@
-[<h2>(#INPUT_1)</h2>]
-[(#TEXTAREA_1|propre)]
+[<h2>(#TITRE)</h2>]
+[(#TEXTE|propre)]
diff --git a/blocks_administrations.php b/blocks_administrations.php
index 478cc40..4ac7a78 100644
--- a/blocks_administrations.php
+++ b/blocks_administrations.php
@@ -80,9 +80,10 @@ function blocks_installe_config() {
 				[
 					'options'     =>
 						[
-							'nom'              => 'titre',
-							'label'            => 'Titre',
-							'conteneur_class'  => 'pleine_largeur',
+							'nom'             => 'titre',
+							'label'           => 'Titre',
+							'conteneur_class' => 'pleine_largeur',
+							'obligatoire'     => 'oui',
 						],
 					'identifiant' => uniqid('@'),
 					'saisie'      => 'input',
diff --git a/blocks_prive/texte_simple.html b/blocks_prive/texte_simple.html
index b1c6410..e680098 100644
--- a/blocks_prive/texte_simple.html
+++ b/blocks_prive/texte_simple.html
@@ -1,2 +1,2 @@
-[<h2>(#INPUT_1)</h2>]
-[(#TEXTAREA_1|propre)]
+[<h2>(#TITRE)</h2>]
+[(#TEXTE|propre)]
-- 
GitLab