diff options
author | polo <ordipolo@gmx.fr> | 2025-05-10 20:16:56 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-05-10 20:16:56 +0200 |
commit | aa8898ae00beaa0ac7e65e45c5f28199b25a9267 (patch) | |
tree | 19cde1aa42478bc594f4a2ea71b8cecdcdcdda85 /src/view/templates/new_page.php | |
parent | d2bdfa7d0f746f060090a9e8c8ad6e376b5a1480 (diff) | |
download | cms-aa8898ae00beaa0ac7e65e45c5f28199b25a9267.zip |
modification de page en mode modif page, déplacement modif_page js et css et MAJ BDD, vue page nouvelle page
Diffstat (limited to 'src/view/templates/new_page.php')
-rw-r--r-- | src/view/templates/new_page.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/view/templates/new_page.php b/src/view/templates/new_page.php new file mode 100644 index 0000000..db48496 --- /dev/null +++ b/src/view/templates/new_page.php | |||
@@ -0,0 +1,27 @@ | |||
1 | <?php declare(strict_types=1); ?> | ||
2 | <section class="new_page"> | ||
3 | <h3>Création d'une nouvelle page</h3> | ||
4 | <div class="form_zone"> | ||
5 | <form method="post" action="<?= new URL(['from' => 'nouvelle_page']) ?>"> | ||
6 | <p> | ||
7 | <label for="new_page_name">Nom de la page</label> | ||
8 | <input id="page_name" type="text" name="new_page_name" onchange="makePageNamePath()" required> | ||
9 | </p> | ||
10 | <p> | ||
11 | <label for="new_page_name_path">Chemin de l'URL</label> | ||
12 | <input id="page_name_path" type="text" name="new_page_name_path" placeholder="ex: nouvelle_page" required> | ||
13 | </p> | ||
14 | <p> | ||
15 | <label for="page_location">Placer la page juste après cette entrée</label> | ||
16 | <select id="page_location" name="page_location"> | ||
17 | <?= $this->options ?> | ||
18 | </select> | ||
19 | </p> | ||
20 | <p> | ||
21 | <label class="label_textarea" for="new_page_description">Description qui apparaît sous le titre dans les moteurs de recherche</label> | ||
22 | <textarea id="new_page_description" name="new_page_description" cols="40" rows="3" placeholder="ex: nous faisons ceci et cela, etc" required></textarea> | ||
23 | </p> | ||
24 | <input type="submit" value="Créer la page"> | ||
25 | </form> | ||
26 | </div> | ||
27 | </section> \ No newline at end of file | ||