diff options
Diffstat (limited to 'src/view/templates')
-rw-r--r-- | src/view/templates/main.php | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/view/templates/main.php b/src/view/templates/main.php index 7ff03a8..c2b631d 100644 --- a/src/view/templates/main.php +++ b/src/view/templates/main.php | |||
@@ -24,22 +24,30 @@ | |||
24 | </div> | 24 | </div> |
25 | </div> | 25 | </div> |
26 | <div class="edit_bloc_zone"> | 26 | <div class="edit_bloc_zone"> |
27 | <div class="new_bloc"> | 27 | <div class="new_bloc"> |
28 | <p>Ajouter un bloc de page</p> | 28 | <p>Ajouter un bloc de page</p> |
29 | <form method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>"> | 29 | <form method="post" action="<?= new URL(['page' => CURRENT_PAGE]) ?>"> |
30 | <p><label for="bloc_title">Titre</label> | 30 | <p><label for="bloc_title">Titre</label> |
31 | <input type="text" id="bloc_title" name="bloc_title" required></p> | 31 | <input type="text" id="bloc_title" name="bloc_title" required></p> |
32 | <p><label for="bloc_select">Type</label> | 32 | <p><label for="bloc_select">Type</label> |
33 | <select id="bloc_select" name="bloc_select" required> | 33 | <select id="bloc_select" name="bloc_select" required> |
34 | <?= $options ?> | 34 | <?= $options ?> |
35 | </select> | 35 | </select> |
36 | <input type="hidden" name="bloc_title_hidden"> | 36 | <input type="hidden" name="bloc_title_hidden"> |
37 | <input type="submit" value="Valider"></p> | 37 | <input type="submit" value="Valider"></p> |
38 | </form> | 38 | </form> |
39 | </div> | ||
40 | <div class="modify_bloc"> | ||
41 | <p>Modifier un bloc</p> | ||
42 | <?= $bloc_edit ?> | ||
43 | </div> | 39 | </div> |
40 | <div class="modify_bloc"> | ||
41 | <p>Modifier un bloc</p> | ||
42 | <?= $bloc_edit ?> | ||
43 | </div> | ||
44 | </div> | ||
45 | <div class="delete_page_zone"> | ||
46 | <form method="post" action="<?= new URL ?>"> | ||
47 | <label>Supprimer cette page</label> | ||
48 | <input type="hidden" name="page_id" value="<?= Director::$page_path->getLast()->getId() ?>"> | ||
49 | <input type="hidden" name="submit_hidden"> | ||
50 | <input type="submit" value="Valider" onclick="return confirm('Voulez-vous vraiment supprimer cette page?');"> | ||
51 | </form> | ||
44 | </div> | 52 | </div> |
45 | </section> \ No newline at end of file | 53 | </section> \ No newline at end of file |