aboutsummaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-07-12 12:35:04 +0200
committerpolo <ordipolo@gmx.fr>2026-07-12 12:35:04 +0200
commitd0c39f9c0d2724111a7b1019eacb1b675fd5fd94 (patch)
tree546dc8520bd00eef59281b5ff786adc656fea03f /src/view
parent0fa852ee4e9c3060ba7fc0daf4b08a44ea151f7f (diff)
downloadcms-d0c39f9c0d2724111a7b1019eacb1b675fd5fd94.tar.gz
cms-d0c39f9c0d2724111a7b1019eacb1b675fd5fd94.tar.bz2
cms-d0c39f9c0d2724111a7b1019eacb1b675fd5fd94.zip
suppression colonnes dans NodeData, blocs et présentations dans des constantes
Diffstat (limited to 'src/view')
-rw-r--r--src/view/MainBuilder.php4
-rw-r--r--src/view/templates/modify_block.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/view/MainBuilder.php b/src/view/MainBuilder.php
index b888a56..1df5846 100644
--- a/src/view/MainBuilder.php
+++ b/src/view/MainBuilder.php
@@ -56,7 +56,7 @@ class MainBuilder extends AbstractBuilder
56 private function viewEditBlocks(Node $node): void 56 private function viewEditBlocks(Node $node): void
57 { 57 {
58 $options = ''; 58 $options = '';
59 foreach(Presentation::$blocks as $key => $value){ 59 foreach(Presentation::BLOCKS as $key => $value){
60 $options .= '<option value= "' . $key . '">' . $value . "</option>\n"; 60 $options .= '<option value= "' . $key . '">' . $value . "</option>\n";
61 } 61 }
62 62
@@ -87,7 +87,7 @@ class MainBuilder extends AbstractBuilder
87 private function makePresentationOptions(string $presentation): string 87 private function makePresentationOptions(string $presentation): string
88 { 88 {
89 $options = ''; 89 $options = '';
90 foreach(Presentation::$presentations as $key => $value){ 90 foreach(Presentation::PRESENTATIONS as $key => $value){
91 $options .= '<option value="' . $key . '" ' . ($presentation === $key ? 'selected' : '') . '>' . $value . '</option>'; 91 $options .= '<option value="' . $key . '" ' . ($presentation === $key ? 'selected' : '') . '>' . $value . '</option>';
92 } 92 }
93 return $options; 93 return $options;
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php
index 1da3176..e966ee3 100644
--- a/src/view/templates/modify_block.php
+++ b/src/view/templates/modify_block.php
@@ -1,7 +1,7 @@
1<?php declare(strict_types=1); ?> 1<?php declare(strict_types=1); ?>
2<div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>"> 2<div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>">
3 <div class="block_options"> 3 <div class="block_options">
4 <label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= App\Entity\Presentation::$blocks[$child_node->getName()] ?? '<i>erreur base de données</i>' ?></b> 4 <label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= App\Entity\Presentation::BLOCKS[$child_node->getName()] ?? '<i>erreur base de données</i>' ?></b>
5 </label> 5 </label>
6 <p> 6 <p>
7 <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required> 7 <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required>