createProjectView.php 1.22 KB
Newer Older
1 2
<?php
	if(!isset($admin)){
3
		header('Location:/patate');
4 5 6 7 8 9 10 11 12
		exit();
	}

	$date = new datetime();
?>

<article>
	<h3>Post d'un nouveau projet</h3>

13
	<form action="/patate/project/submit" method="post" accept-charset="utf-8">
14 15 16

		<input type="hidden" name="id" value="<?php echo $project['id']; ?>"  />

17
		<section class="input">
18 19
			<label for="inputTitle">Nom du projet</label>
			<input type="text" name="name" placeholder="Nom du projet" id="inputName" />
20
		</section>
21
		
22
		<section class="input">
23 24
			<label for="inputLink">Lien vers le projet</label>
			<input type="url" name="link" placeholder="Lien vers le projet" id="inputLink" />
25
		</section>
26

27
		<section class="input">
28 29
			<label for="inputShortContent">Résumé</label>
			<textarea name="shortContent" id="inputShortContent"></textarea>
30
		</section>
31
		
32
		<section class="input">
33
			<label for="inputContent">Description (code)</label>
34
			<textarea name="content" id="inputContent"></textarea>
35
		</section>
36

37 38 39 40 41
		<section class="input">
			<label for="editContent">Description</label>
			<div id="editContent" contentEditable="true"><h4>Titre de section</h4><p>Contenu.</p><pre><code>Hey du code !</code></pre></div>	
		</section>

42 43 44 45
		<input type="submit" value="Envoyer" />

	</form>
</article>