div
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 %}
|
||||
|
Reference in New Issue
Block a user