diff --git a/base/blocks.php b/base/blocks.php index 85c33acc3f267b5b907b520ed396b4cd93060311..921f99968339c0da5135efd86d5472ed129e9061 100644 --- a/base/blocks.php +++ b/base/blocks.php @@ -91,7 +91,6 @@ function blocks_declarer_tables_objets_sql($tables) { 'field' => [ 'id_blocs_type' => 'bigint(21) NOT NULL', 'titre' => 'text NOT NULL DEFAULT ""', - 'id_blocs_type_parent' => 'bigint(21) NOT NULL DEFAULT 0', 'saisies' => 'text NOT NULL DEFAULT ""', 'maj' => 'timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', ], @@ -100,8 +99,8 @@ function blocks_declarer_tables_objets_sql($tables) { ], 'titre' => 'titre AS titre, "" AS lang', #'date' => '', - 'champs_editables' => ['titre', 'id_blocs_type_parent', 'saisies'], - 'champs_versionnes' => ['titre', 'id_blocs_type_parent', 'saisies'], + 'champs_editables' => ['titre', 'saisies'], + 'champs_versionnes' => ['titre', 'saisies'], 'rechercher_champs' => ["titre" => 10], 'tables_jointures' => [], diff --git a/formulaires/editer_blocs_type.php b/formulaires/editer_blocs_type.php index 2ef186fb46d597e525a2a96e1fb01cb8ee3bd6de..9b0145ed055a4829e6087040076e10a200c113f3 100644 --- a/formulaires/editer_blocs_type.php +++ b/formulaires/editer_blocs_type.php @@ -45,16 +45,6 @@ function formulaires_editer_blocs_type_saisies_dist($id_blocs_type = 'new', $ret ], ], - - [ - 'saisie' => 'blocs_types', - 'options' => [ - 'nom' => 'id_blocs_type_parent', - 'label' => _T('blocs_type:champ_id_blocs_type_parent_label'), - 'exclus' => [(int)$id_blocs_type], - ], - ], - ]; return $saisies; } diff --git a/lang/blocs_type_fr.php b/lang/blocs_type_fr.php index 3010c89f4f2ff632252813b07c81be5b10e6a457..eafebb33d66789caf5d7a46dc101d88a4c9d2f5f 100644 --- a/lang/blocs_type_fr.php +++ b/lang/blocs_type_fr.php @@ -11,7 +11,6 @@ $GLOBALS[$GLOBALS['idx_lang']] = [ 'ajouter_lien_blocs_type' => 'Ajouter ce type de bloc', // C - 'champ_id_blocs_type_parent_label' => 'Type de bloc parent', 'champ_saisies_label' => 'Paramètres de ce type de bloc', 'champ_titre_label' => 'Titre', 'confirmer_supprimer_blocs_type' => 'Confirmez-vous la suppression de cet type de bloc ?', diff --git a/prive/objets/contenu/blocs_type.html b/prive/objets/contenu/blocs_type.html index 8b8e718e958ceaf8e43ad058bf3f9596e10c53ff..127b65e86e50fb2461b74e3ea9a87d272d4336b4 100644 --- a/prive/objets/contenu/blocs_type.html +++ b/prive/objets/contenu/blocs_type.html @@ -4,11 +4,6 @@ <span dir="#LANG_DIR" class="#EDIT{titre} titre">(#TITRE)</span> </div>] -[<div class="champ contenu_id_blocs_type_parent[ (#ID_BLOCS_TYPE_PARENT*|strlen|?{'',vide})]"> - <div class="label"><:blocs_type:champ_id_blocs_type_parent_label:/> : </div> - <span dir="#LANG_DIR" class="#EDIT{id_blocs_type_parent} id_blocs_type_parent">(#ID_BLOCS_TYPE_PARENT)</span> -</div>] - #SET{saisies, #SAISIES|json_decode{1}} [(#GET{saisies}|oui) <h2><:blocs_type:champ_saisies_label:/></h2> diff --git a/prive/objets/liste/blocs_types.html b/prive/objets/liste/blocs_types.html index 8ac556c0b26265639da7de3b31b6a929f6539fcc..2abfe428c340bce09b8c2eeaa0f48a166596cfcb 100644 --- a/prive/objets/liste/blocs_types.html +++ b/prive/objets/liste/blocs_types.html @@ -15,7 +15,7 @@ </tr> </thead> <tbody> - <BOUCLE_liste_blocs_types(BLOCS_TYPES){id_blocs_type_parent?}{id_mot?}{id_auteur?}{where?}{recherche?}{tri #ENV{par,num titre},#GET{defaut_tri}}{par titre}{pagination #ENV{nb,10}}> + <BOUCLE_liste_blocs_types(BLOCS_TYPES){id_mot?}{id_auteur?}{where?}{recherche?}{tri #ENV{par,num titre},#GET{defaut_tri}}{par titre}{pagination #ENV{nb,10}}> <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]"> <td class="picto">[(#CHEMIN_IMAGE{blocs_type-16.png}|balise_img)]</td> <td class="titre principale">[(#LOGO_BLOCS_TYPE|image_reduire{20,26})]<a href="[(#ID_BLOCS_TYPE|generer_url_entite{blocs_type})]" title="<:info_numero_abbreviation|attribut_html:/> #ID_BLOCS_TYPE">[(#RANG). ]#TITRE</a></td> diff --git a/saisies/blocs_types.html b/saisies/blocs_types.html index 9209c3d1778b2bcfc02b85cbd91f86b88f994787..9fbb6f4800c1dc05c3b01611dc281395501d5df7 100644 --- a/saisies/blocs_types.html +++ b/saisies/blocs_types.html @@ -3,7 +3,7 @@ <option value="">[(#ENV{option_intro})]</option>] <BOUCLE_blocs_types(BLOCS_TYPES) {id_blocs_type !IN #ENV{exclus}} - {id_blocs_type?}{id_blocs_type_parent?}{recherche?} + {id_blocs_type?}{recherche?} {tout}{par num titre, titre}> <option value="#ID_BLOCS_TYPE"[(#ID_BLOCS_TYPE|=={#ENV{valeur_forcee,#ENV{valeur,#ENV{defaut}}}}|oui) selected="selected"]>#TITRE</option> </BOUCLE_blocs_types>