parent
34be1dadcb
commit
889e16fb25
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1 @@
|
||||
@import url(./style.css); /* Import de style.css */
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
global $twig;
|
||||
|
||||
|
||||
echo $twig->render('head.html.twig', [
|
||||
'title' => "Quiz",
|
||||
'style' => "public/styles/styleCreate.css",
|
||||
'scripts' => array("public/script/theme-toggle.js")
|
||||
]);
|
||||
|
||||
|
||||
// Rendu du bandeau
|
||||
echo $twig->render('bandeau.html.twig');
|
||||
|
||||
echo $twig->render('create.html.twig', [
|
||||
'src' => $src,
|
||||
'char' => $char
|
||||
]);
|
||||
?>
|
@ -0,0 +1,16 @@
|
||||
<div class="creation">
|
||||
<form class="add" method="post" action="{{racine}}/add">
|
||||
{% if src == true %}
|
||||
<h1>Source</h1>
|
||||
<label for="titre">Titre de la source *</label>
|
||||
<input type="text" class="champ" id="titre" name="titre" placeholder="Titre de la source" required/>
|
||||
<label for="quantity">Année de sortie *</label>
|
||||
<input type="number" id="quantity" name="quantity" min="1850" max="{{ "now"|date("Y") }}" required>
|
||||
{% endif %}
|
||||
{% if char == true %}
|
||||
|
||||
{% endif %}
|
||||
<input type="submit" class="btn" name="action" value="Soumettre"/>
|
||||
</form>
|
||||
<body>
|
||||
<html>
|
Loading…
Reference in new issue