This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/templates/user/index.html.twig

56 lines
1.8 KiB
Twig
Raw Normal View History

2021-05-03 18:32:31 +02:00
{% extends 'base.html.twig' %}
{% block title %}User{% endblock %}
{% block body %}
2021-05-11 12:00:53 +02:00
{% for message in app.flashes('error') %}
<div class="alert alert-danger" role="alert">
{{ message }}
</div>
{% endfor %}
2021-05-03 18:32:31 +02:00
{% for message in app.flashes('success') %}
<div class="alert alert-success" role="alert">
{{ message }}
</div>
{% endfor %}
2021-05-05 21:59:30 +02:00
<div class="alert alert-info" role="alert">
Please note: This is not yet functional!
</div>
2021-05-03 18:32:31 +02:00
<div class="mb-3">
<h1>Hello {{ user.username }}!</p>
</div>
<div class="mb-3">
<form method="post">
<h3 class="mb-3 font-weight-normal">Change your user data</h3>
<div class="mb-3">
<label for="inputEmail" class="form-label">Email address</label>
2021-05-04 11:53:08 +02:00
<input name="email" type="email" class="form-control" id="inputEmail" aria-describedby="emailHelp" placeholder="{{ app.user.email }}" readonly>
2021-05-03 18:32:31 +02:00
</div>
<div class="mb-3">
<label for="inputPassword">Password</label>
2021-06-14 14:09:44 +02:00
<input type="password" name="password" id="inputPassword" class="form-control">
</div>
<div class="mb-3">
<label for="inputPlz">PLZ</label>
<input name="plz" id="inputPlz" class="form-control" value="{{ user.zipcode }}">
2021-05-03 18:32:31 +02:00
</div>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<button class="btn btn-lg btn-primary" type="submit">
Save
</button>
</form>
</div>
<div class="mb-3">
<h3 class="mb-3">Delete Account</h3>
<button class="btn btn-danger">Delete Account</button>
</div>
{% endblock %}