From 632b6b6640e0bc8f95c7d72d1b2eb2d13d6258b8 Mon Sep 17 00:00:00 2001
From: nicod_ <nicod@lerebooteux.fr>
Date: Sun, 16 Apr 2023 18:32:13 +0200
Subject: [PATCH] =?UTF-8?q?Type=20de=20bloc=20texte=20simple=20avec=20un?=
 =?UTF-8?q?=20titre,=20et=20les=20squelettes=20=C3=A0=20jour?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 blocks/texte_simple.html       |  2 +-
 blocks_administrations.php     | 12 +++++++++++-
 blocks_prive/texte_simple.html |  2 +-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/blocks/texte_simple.html b/blocks/texte_simple.html
index 5c1dc3a..b1c6410 100644
--- a/blocks/texte_simple.html
+++ b/blocks/texte_simple.html
@@ -1,2 +1,2 @@
-<h2>#INPUT_1</h2>
+[<h2>(#INPUT_1)</h2>]
 [(#TEXTAREA_1|propre)]
diff --git a/blocks_administrations.php b/blocks_administrations.php
index a7e19bf..478cc40 100644
--- a/blocks_administrations.php
+++ b/blocks_administrations.php
@@ -80,12 +80,22 @@ function blocks_installe_config() {
 				[
 					'options'     =>
 						[
+							'nom'              => 'titre',
+							'label'            => 'Titre',
+							'conteneur_class'  => 'pleine_largeur',
+						],
+					'identifiant' => uniqid('@'),
+					'saisie'      => 'input',
+				],
+				[
+					'options'     =>
+						[
+							'nom'              => 'texte',
 							'label'            => 'Texte',
 							'conteneur_class'  => 'pleine_largeur',
 							'rows'             => '10',
 							'inserer_barre'    => 'edition',
 							'previsualisation' => 'on',
-							'nom'              => 'textarea_1',
 						],
 					'identifiant' => uniqid('@'),
 					'saisie'      => 'textarea',
diff --git a/blocks_prive/texte_simple.html b/blocks_prive/texte_simple.html
index 5c1dc3a..b1c6410 100644
--- a/blocks_prive/texte_simple.html
+++ b/blocks_prive/texte_simple.html
@@ -1,2 +1,2 @@
-<h2>#INPUT_1</h2>
+[<h2>(#INPUT_1)</h2>]
 [(#TEXTAREA_1|propre)]
-- 
GitLab