diff options
author | polo <ordipolo@gmx.fr> | 2025-09-05 23:19:59 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-09-05 23:19:59 +0200 |
commit | 7be773469a719d4170dcb6418b85277540c08b3f (patch) | |
tree | 0dbfe06c80c0a0977ba6689c1b86f66be1f521af /src/view/templates/modify_block.php | |
parent | a595663f5ccba28ccdca919f89612ce0a3f579c3 (diff) | |
download | cms-7be773469a719d4170dcb6418b85277540c08b3f.zip |
html dans MainBuilder déplacé dans la vue modify_block.php
Diffstat (limited to 'src/view/templates/modify_block.php')
-rw-r--r-- | src/view/templates/modify_block.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php new file mode 100644 index 0000000..dae8994 --- /dev/null +++ b/src/view/templates/modify_block.php | |||
@@ -0,0 +1,37 @@ | |||
1 | <div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>"> | ||
2 | <div class="block_options"> | ||
3 | <label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= Blocks::getNameFromType($child_node->getName()) ?></b> | ||
4 | </label> | ||
5 | <p> | ||
6 | <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required> | ||
7 | <button onclick="renamePageBloc(<?= $child_node->getId() ?>)">Renommer</button> | ||
8 | </p> | ||
9 | <div> | ||
10 | <p> | ||
11 | <img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'up')" src="assets/arrow-up.svg"> | ||
12 | <img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'down')" src="assets/arrow-down.svg"> | ||
13 | </p> | ||
14 | <form method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>"> | ||
15 | <input type="hidden" name="delete_bloc_id" value="<?= $child_node->getId() ?>"> | ||
16 | <input type="hidden" name="delete_bloc_hidden"> | ||
17 | <input type="submit" value="Supprimer" onclick="return confirm('Voulez-vous vraiment supprimer ce bloc?');"> | ||
18 | </form> | ||
19 | </div> | ||
20 | </div> | ||
21 | <?php | ||
22 | if($child_node->getNodeData()->getPresentation() !== null){ | ||
23 | ?> | ||
24 | <div class="grid_options"><p> | ||
25 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> | ||
26 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> | ||
27 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()->getName()) ?> | ||
28 | </select> | ||
29 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation()->getName() === 'grid' ? '' : 'hidden') ?>"> | ||
30 | <label for="cols_min_width_select_' . $child_node->getId() . '">Largeur minimum </label> | ||
31 | <input type="number" id="cols_min_width_select_<?= $child_node->getId() ?>" onchange="changeColsMinWidth(<?= $child_node->getId() ?>)" min="150" max="400" value="<?= $child_node->getNodeData()->getColsMinWidth() ?>"> pixels | ||
32 | </div> | ||
33 | </div> | ||
34 | <?php | ||
35 | } | ||
36 | ?> | ||
37 | </div> \ No newline at end of file | ||