aboutsummaryrefslogtreecommitdiff
path: root/src/view/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/templates')
-rw-r--r--src/view/templates/modify_block.php2
-rw-r--r--src/view/templates/modify_page.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php
index 3620100..75cb218 100644
--- a/src/view/templates/modify_block.php
+++ b/src/view/templates/modify_block.php
@@ -1,6 +1,6 @@
1<div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>"> 1<div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>">
2 <div class="block_options"> 2 <div class="block_options">
3 <label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= Blocks::$blocks[$child_node->getName()] ?></b> 3 <label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= Blocks::$blocks[$child_node->getName()] ?? '<i>erreur base de données</i>' ?></b>
4 </label> 4 </label>
5 <p> 5 <p>
6 <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required> 6 <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required>
diff --git a/src/view/templates/modify_page.php b/src/view/templates/modify_page.php
index c9da4a4..ecacb02 100644
--- a/src/view/templates/modify_page.php
+++ b/src/view/templates/modify_page.php
@@ -5,28 +5,28 @@
5 <div class="edit_page_title_zone"> 5 <div class="edit_page_title_zone">
6 <p id="edit_page_title"> 6 <p id="edit_page_title">
7 <label for="page_name">Titre de la page</label> 7 <label for="page_name">Titre de la page</label>
8 <input type="text" id="page_name" name="edit_page_title" value="<?= Director::$page_path->getLast()->getPageName() ?>" onchange="makePageNamePath()" required> 8 <input type="text" id="page_name" name="edit_page_title" value="<?= Model::$page_path->getLast()->getPageName() ?>" onchange="makePageNamePath()" required>
9 <button onclick="changePageTitle('<?= Director::$page_path->getLast()->getId() ?>')">Renommer</button> 9 <button onclick="changePageTitle('<?= Model::$page_path->getLast()->getId() ?>')">Renommer</button>
10 </p> 10 </p>
11 <form id="edit_page_menu_path" method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>"> 11 <form id="edit_page_menu_path" method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>">
12 <label for="page_name_path">Chemin en "snake_case"</label> 12 <label for="page_name_path">Chemin en "snake_case"</label>
13 <input type="text" id="page_name_path" name="page_menu_path" value="<?= Director::$page_path->getLast()->getEndOfPath() ?>" placeholder="ex: nouvelle_page" required> 13 <input type="text" id="page_name_path" name="page_menu_path" value="<?= Model::$page_path->getLast()->getEndOfPath() ?>" placeholder="ex: nouvelle_page" required>
14 <input type="hidden" name="page_id" value="<?= Director::$page_path->getLast()->getId() ?>"><input type="hidden" name="page_name_path_hidden"> 14 <input type="hidden" name="page_id" value="<?= Model::$page_path->getLast()->getId() ?>"><input type="hidden" name="page_name_path_hidden">
15 <input type="submit" value="Modifier"> 15 <input type="submit" value="Modifier">
16 </form> 16 </form>
17 </div> 17 </div>
18 <div id="edit_description"> 18 <div id="edit_description">
19 <label for="description_textarea">Description sous le titre dans les moteurs de recherche</label> 19 <label for="description_textarea">Description sous le titre dans les moteurs de recherche</label>
20 <div> 20 <div>
21 <textarea id="description_textarea" name="edit_description" cols="40" rows="3" placeholder="ex: nous faisons ceci et cela, etc" required><?= Director::$page_path->getLast()->getDescription(); ?></textarea> 21 <textarea id="description_textarea" name="edit_description" cols="40" rows="3" placeholder="ex: nous faisons ceci et cela, etc" required><?= Model::$page_path->getLast()->getDescription(); ?></textarea>
22 <button onclick="changeDescription('<?= Director::$page_path->getLast()->getId() ?>')">Modifier</button> 22 <button onclick="changeDescription('<?= Model::$page_path->getLast()->getId() ?>')">Modifier</button>
23 </div> 23 </div>
24 </div> 24 </div>
25 </div> 25 </div>
26 <div class="delete_page_zone"> 26 <div class="delete_page_zone">
27 <form method="post" action="<?= new URL ?>"> 27 <form method="post" action="<?= new URL ?>">
28 <label>Supprimer cette page</label> 28 <label>Supprimer cette page</label>
29 <input type="hidden" name="page_id" value="<?= Director::$page_path->getLast()->getId() ?>"> 29 <input type="hidden" name="page_id" value="<?= Model::$page_path->getLast()->getId() ?>">
30 <input type="hidden" name="submit_hidden"> 30 <input type="hidden" name="submit_hidden">
31 <input type="submit" value="Supprimer" onclick="return confirm('Voulez-vous vraiment supprimer cette page?');"> 31 <input type="submit" value="Supprimer" onclick="return confirm('Voulez-vous vraiment supprimer cette page?');">
32 </form> 32 </form>