diff options
Diffstat (limited to 'src/view/templates/modify_block.php')
| -rw-r--r-- | src/view/templates/modify_block.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php deleted file mode 100644 index e966ee3..0000000 --- a/src/view/templates/modify_block.php +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | <?php declare(strict_types=1); ?> | ||
| 2 | <div class="modify_one_block" id="bloc_edit_<?= $child_node->getId() ?>"> | ||
| 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> | ||
| 5 | </label> | ||
| 6 | <p> | ||
| 7 | <input type="text" id="bloc_rename_<?= $child_node->getId() ?>" name="bloc_rename_title" value="<?= $child_node->getNodeData()->getdata()['title'] ?>" required> | ||
| 8 | <button onclick="renamePageBloc(<?= $child_node->getId() ?>)">Renommer</button> | ||
| 9 | </p> | ||
| 10 | <div> | ||
| 11 | <p> | ||
| 12 | <img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'up')" src="assets/arrow-up.svg"> | ||
| 13 | <img class="action_icon" onclick="switchBlocsPositions(<?= $child_node->getId() ?>, 'down')" src="assets/arrow-down.svg"> | ||
| 14 | </p> | ||
| 15 | <form method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>"> | ||
| 16 | <input type="hidden" name="delete_bloc_id" value="<?= $child_node->getId() ?>"> | ||
| 17 | <input type="hidden" name="delete_bloc_hidden"> | ||
| 18 | <input type="submit" value="Supprimer" onclick="return confirm('Voulez-vous vraiment supprimer ce bloc?');"> | ||
| 19 | </form> | ||
| 20 | </div> | ||
| 21 | </div> | ||
| 22 | <?php | ||
| 23 | if($child_node->getName() === 'news_block'){ | ||
| 24 | ?> | ||
| 25 | <div class="news_order"> | ||
| 26 | <label>Ordre des articles</label> | ||
| 27 | <select id="articles_order_select_<?= $child_node->getId() ?>" onchange="articlesOrderSelect(<?= $child_node->getId() ?>)"> | ||
| 28 | <option value="antichrono" <?= $order === 'antichrono' ? 'selected' : '' ?>>Antichronologique</option> | ||
| 29 | <option value="chrono" <?= $order === 'chrono' ? 'selected' : '' ?>>Chronologique</option> | ||
| 30 | </select> | ||
| 31 | </div> | ||
| 32 | <?php | ||
| 33 | } | ||
| 34 | if(App\Entity\Presentation::hasPresentation($child_node->getName())){ | ||
| 35 | ?> | ||
| 36 | <div class="grid_options"> | ||
| 37 | <div> | ||
| 38 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> | ||
| 39 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> | ||
| 40 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?> | ||
| 41 | </select> | ||
| 42 | </div> | ||
| 43 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>"> | ||
| 44 | <label for="cols_min_width_select_<?= $child_node->getId() ?>">Largeur minimum </label> | ||
| 45 | <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 | ||
| 46 | </div> | ||
| 47 | </div> | ||
| 48 | <div class="pagination_limit"> | ||
| 49 | <label for="pagination_limit_<?= $child_node->getId() ?>"> | ||
| 50 | Nombre max d'articles affichés | ||
| 51 | <input type="number" id="pagination_limit_<?= $child_node->getId() ?>" name="pagination_limit" onchange="changePaginationLimit(<?= $child_node->getId() ?>)" min="0" max="30" value="<?= $child_node->getNodeData()->getPaginationLimit() ?>"> | ||
| 52 | <i>(mettre 0 désactive la pagination)</i> | ||
| 53 | </label> | ||
| 54 | </div> | ||
| 55 | <?php | ||
| 56 | } | ||
| 57 | ?> | ||
| 58 | </div> \ No newline at end of file | ||
