profile.html

29 Zeilen · 1,7 KB · HTML
Rohdatei
{% extends 'base.html' %}
{% block title %}Profil{% endblock %}
{% block content %}
<div class="page-head"><h1>Mein Profil</h1>
  <div class="actions"><a class="btn" href="/personal/{{ user.id }}">Meine Nachweise</a></div></div>
<div class="grid two">
  <div class="panel">
    <h2>Passwort ändern</h2>
    <p class="muted">Für die Anmeldung am PC.</p>
    <form method="post" action="/profil/passwort">
      <input type="hidden" name="csrf_token" value="{{ csrf }}">
      {% if user.password_hash %}<div class="field"><label>Aktuelles Passwort</label><input type="password" name="current" autocomplete="current-password" required></div>{% endif %}
      <div class="field"><label>Neues Passwort</label><input type="password" name="new" minlength="8" autocomplete="new-password" required></div>
      <div class="field"><label>Wiederholen</label><input type="password" name="new2" minlength="8" autocomplete="new-password" required></div>
      <button class="primary">Speichern</button>
    </form>
  </div>
  <div class="panel">
    <h2>PIN für das Tablet</h2>
    <p class="muted">4–8 Ziffern für die Schnellanmeldung am Praxis-Tablet. {{ 'Eine PIN ist gesetzt.' if user.pin_hash else 'Noch keine PIN gesetzt.' }}</p>
    <form method="post" action="/profil/pin">
      <input type="hidden" name="csrf_token" value="{{ csrf }}">
      <div class="field"><label>Neue PIN</label><input type="password" name="pin" inputmode="numeric" pattern="[0-9]{4,8}" required></div>
      <div class="field"><label>Wiederholen</label><input type="password" name="pin2" inputmode="numeric" pattern="[0-9]{4,8}" required></div>
      <button class="primary">PIN speichern</button>
    </form>
  </div>
</div>
{% endblock %}