blob: 22a29327dbf76a583c9538faebf7b582d1b4c0b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>">
<div class="block_options">
<label for="bloc_rename_<?= $child_node->getId() ?>">Type <b><?= Blocks::$blocks[$child_node->getName()] ?></b>
</label>
<p>
<input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required>
<button onclick="renamePageBloc(<?= $child_node->getId() ?>)">Renommer</button>
</p>
<div>
<p>
<img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'up')" src="assets/arrow-up.svg">
<img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'down')" src="assets/arrow-down.svg">
</p>
<form method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>">
<input type="hidden" name="delete_bloc_id" value="<?= $child_node->getId() ?>">
<input type="hidden" name="delete_bloc_hidden">
<input type="submit" value="Supprimer" onclick="return confirm('Voulez-vous vraiment supprimer ce bloc?');">
</form>
</div>
</div>
<?php
if($child_node->getNodeData()->getPresentation() !== null){
?>
<div class="grid_options"><p>
<label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label>
<select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)">
<?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?>
</select>
<div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>">
<label for="cols_min_width_select_<?= $child_node->getId() ?>">Largeur minimum </label>
<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
</div>
</div>
<?php
}
?>
</div>
|