Refactor templates to be more structured

This commit is contained in:
Tim
2023-12-23 23:56:18 +01:00
parent be5e457d1b
commit a5619e2307
15 changed files with 46 additions and 45 deletions

View File

@ -1,6 +1,6 @@
{% extends 'base/base.html.twig' %}
{% extends 'base/single.column.html.twig' %}
{% block title %}Login{% endblock %}
{% set title %}Login{% endset %}
{% block body %}
<form action="{{ path('login') }}" method="post">
@ -12,7 +12,6 @@
You are already logged in as {{ app.user }}, <a href="{{ path('logout') }}">Logout</a>
</div>
{% endif %}
<h1 class="h3 mb-3 font-weight-normal">Please login</h1>
<label for="inputUsername">Username</label>
<input type="text" value="{{ last_username }}" name="_username" id="inputUsername" class="form-control" required
autofocus>

View File

@ -1,8 +1,7 @@
{% extends 'base/base.html.twig' %}
{% extends 'base/single.column.html.twig' %}
{% block title %}Register{% endblock %}
{% set title %}Register{% endset %}
{% block body %}
<h1 class="h3 mb-3 font-weight-normal">Register new user</h1>
{{ form(registrationForm) }}
{% endblock %}