abschluss
This commit is contained in:
16
views/post_new.twig
Normal file
16
views/post_new.twig
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends layout %}
|
||||
|
||||
{% block title %}Neuen Post anlegen{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Neuen Blogpost anlegen</h1>
|
||||
<form method="post" action="/post/new">
|
||||
<label for="title">Titel:</label><br>
|
||||
<input type="text" id="title" name="title" required><br><br>
|
||||
<label for="content">Inhalt:</label><br>
|
||||
<textarea id="content" name="content" rows="10" cols="80" required></textarea><br><br>
|
||||
<input type="hidden" name="_csrf_token" value="{{ $csrf }}">
|
||||
<button type="submit">Anlegen</button>
|
||||
</form>
|
||||
<a href="/">Zurück</a>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user