aboutsummaryrefslogtreecommitdiff
path: root/src/View/templates/new_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/View/templates/new_page.php')
-rw-r--r--src/View/templates/new_page.php38
1 files changed, 38 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..535d88d
--- /dev/null
+++ b/src/View/templates/new_page.php
@@ -0,0 +1,38 @@
1<?php
2declare(strict_types=1);
3use App\Service\URL;
4?>
5<section class="new_page">
6 <h3>Création d'une nouvelle page</h3>
7 <div class="form_zone">
8 <form method="post" action="<?= new URL ?>">
9 <p>
10 <label for="page_name">Nom de la page</label>
11 <input id="page_name" type="text" name="page_name" onchange="makePageNamePath()" required>
12 </p>
13 <p>
14 <label for="page_name_path">Chemin de l'URL</label>
15 <input id="page_name_path" type="text" name="page_name_path" placeholder="ex: nouvelle_page" required>
16 </p>
17 <p>
18 <label for="page_location">Placer la page juste après cette entrée</label>
19 <select id="page_location" name="page_location">
20 <?= $this->options ?>
21 </select>
22 </p>
23 <input type="hidden" name="new_page_hidden">
24 <p>
25 <label class="label_textarea" for="page_description">Description qui apparaît sous le titre dans les moteurs de recherche</label>
26 <textarea id="page_description" name="page_description" cols="35" rows="3" placeholder="ex: nous faisons ceci et cela, etc"></textarea>
27 </p>
28 <input type="submit" value="Créer la page">
29 </form>
30 </div>
31</section>
32<section>
33 <div class="basic_div">
34 <a href="<?= new URL ?>">
35 <button>Retour au site</button>
36 </a>
37 </div>
38</section> \ No newline at end of file