abschluss

This commit is contained in:
2025-06-20 07:55:37 +00:00
parent 497e6a0bdf
commit 6c2e71dd53
34 changed files with 1370 additions and 382 deletions

16
views/post_new.twig Normal file
View 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 %}