This commit is contained in:
2025-05-22 08:18:06 +00:00
parent f3a71e8d12
commit 497e6a0bdf
11 changed files with 320 additions and 32 deletions

View File

@ -10,7 +10,7 @@
<a href="/post/{{ $post->getId() }}">{{ $post->getTitle() }}</a>
<p>{{ $post->getContent(50) }}</p>
<p>Datum: 2025-03-04</p>
<p>Autor: Beispielautor</p>
<p>Autor: {{ $post->getAuthor() }}</p>
</div>
{% endforeach; %}
</div>

View File

@ -8,6 +8,8 @@
</head>
<body>
<div class="container" id="blog">
<a href="/">Home</a> - <a href="/login">Login</a>
<hr>
{% yield content %}
</div>
</body>

View File

@ -3,10 +3,10 @@
{% block title %}Login{% endblock %}
{% block content %}
<form method="POST" action="/login">
<input type="text" name="username" placeholder="Benutzername" required>
<input type="password" name="password" placeholder="Passwort" required>
<input type="hidden" name="_csrf_token" value="{{ $csrf }}">
<button type="submit">Einloggen</button>
</form>
<form method="POST" action="/login">
<input type="text" name="username" placeholder="Benutzername" required>
<input type="password" name="password" placeholder="Passwort" required>
<input type="hidden" name="_csrf_token" value="{{ $csrf }}">
<button type="submit">Einloggen</button>
</form>
{% endblock %}