diff options
Diffstat (limited to 'src/view/templates/modify_block.php')
| -rw-r--r-- | src/view/templates/modify_block.php | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php index 22a2932..b44327f 100644 --- a/src/view/templates/modify_block.php +++ b/src/view/templates/modify_block.php | |||
| @@ -19,13 +19,26 @@ | |||
| 19 | </div> | 19 | </div> |
| 20 | </div> | 20 | </div> |
| 21 | <?php | 21 | <?php |
| 22 | if($child_node->getName() === 'news_block'){ | ||
| 23 | ?> | ||
| 24 | <div class="news_order"> | ||
| 25 | <label>Ordre des articles</label> | ||
| 26 | <select id="articles_order_select_<?= $child_node->getId() ?>" onchange="articlesOrderSelect(<?= $child_node->getId() ?>)"> | ||
| 27 | <option value="antichrono" <?= $order === 'antichrono' ? 'selected' : '' ?>>Antichronologique</option> | ||
| 28 | <option value="chrono" <?= $order === 'chrono' ? 'selected' : '' ?>>Chronologique</option> | ||
| 29 | </select> | ||
| 30 | </div> | ||
| 31 | <?php | ||
| 32 | } | ||
| 22 | if($child_node->getNodeData()->getPresentation() !== null){ | 33 | if($child_node->getNodeData()->getPresentation() !== null){ |
| 23 | ?> | 34 | ?> |
| 24 | <div class="grid_options"><p> | 35 | <div class="grid_options"> |
| 25 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> | 36 | <div> |
| 26 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> | 37 | <label for="presentation_select_<?= $child_node->getId() ?>">Présentation</label> |
| 27 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?> | 38 | <select id="presentation_select_<?= $child_node->getId() ?>" onchange="changePresentation(<?= $child_node->getId() ?>)"> |
| 28 | </select> | 39 | <?= $this->makePresentationOptions($child_node->getNodeData()->getPresentation()) ?> |
| 40 | </select> | ||
| 41 | </div> | ||
| 29 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>"> | 42 | <div id="cols_min_width_edit_<?= $child_node->getId() ?>" class="<?= ($child_node->getNodeData()->getPresentation() === 'grid' ? '' : 'hidden') ?>"> |
| 30 | <label for="cols_min_width_select_<?= $child_node->getId() ?>">Largeur minimum </label> | 43 | <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 | 44 | <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 |
