17 lines
563 B
Twig
17 lines
563 B
Twig
{% 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 %}
|