aboutsummaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
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>