Umut hat den Namen festgelegt: aus dem Arbeitstitel "Kant CMS" wird KantSites. Geändert in allen Seitentiteln der Verwaltung, im Wortmarken-Schriftzug von Anmeldung und Seitenleiste, in den Fußzeilen, in den Demoinhalten für eine frische Installation, in package.json, .claude/launch.json und der Dokumentation. Die Bezeichnung der Website in der Datenbank heißt jetzt ebenfalls KantSites. Nicht angefasst: die bereits gespeicherten Demoinhalte der lokalen Installation. Titel wie "Die Grundlage · Kant CMS" und der Text im Kopfbereich sind Inhalt, nicht Systemname - die gehören in den Editor, nicht in ein Skript, das Revisionen umschreibt. 219 PHP-Tests / 881 Assertions grün, Playwright-Editortest grün. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
44 lines
2.3 KiB
Twig
44 lines
2.3 KiB
Twig
{% extends 'admin/shell.html.twig' %}
|
|
{% set nav = 'account' %}
|
|
{% block title %}Mein Konto{% endblock %}
|
|
{% block heading %}Mein Konto{% endblock %}
|
|
{% block lead %}Dein Passwort kannst du hier selbst ändern. Deine Rolle kann nur ein Administrator ändern.{% endblock %}
|
|
{% block content %}
|
|
|
|
<div class="card">
|
|
<div class="card-head"><h2>{{ app.user.userIdentifier }}</h2><span class="muted">{{ account ? roles[account.role] : 'Rolle unbekannt' }}</span></div>
|
|
<div class="card-body">
|
|
{% if account %}
|
|
<p class="muted">{{ roleHelp[account.role] }}</p>
|
|
<p class="field-help">
|
|
{% if account.lastLoginAt %}Zuletzt angemeldet am {{ account.lastLoginAt|date('d.m.Y H:i') }} UTC{% else %}Dies ist deine erste Sitzung{% endif %}.
|
|
{% if account.passwordChangedAt %} Passwort zuletzt geändert am {{ account.passwordChangedAt|date('d.m.Y') }}.{% endif %}
|
|
{% if account.createdAt %} Konto angelegt am {{ account.createdAt|date('d.m.Y') }}.{% endif %}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-head"><h2>Passwort ändern</h2><span class="muted">Andere Sitzungen werden abgemeldet</span></div>
|
|
<form action="{{ path('admin_account_password') }}" method="post" class="card-body">
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('account') }}">
|
|
<div class="fields">
|
|
<div>
|
|
<label for="current">Aktuelles Passwort</label>
|
|
<input id="current" name="current" type="password" required autocomplete="current-password" maxlength="{{ maxPassword }}">
|
|
<p class="field-help">Nötig, damit eine vergessene offene Sitzung nicht ausreicht, um dein Konto zu übernehmen.</p>
|
|
</div>
|
|
<div>
|
|
<label for="password">Neues Passwort</label>
|
|
<input id="password" name="password" type="password" required autocomplete="new-password" minlength="{{ minPassword }}" maxlength="{{ maxPassword }}">
|
|
<p class="field-help">Mindestens {{ minPassword }} Zeichen, höchstens {{ maxPassword }} Bytes. Diese Sitzung bleibt angemeldet, alle anderen dieses Kontos nicht.</p>
|
|
</div>
|
|
</div>
|
|
<button class="primary" type="submit">Passwort ändern</button>
|
|
</form>
|
|
</div>
|
|
|
|
<p class="footnote">KantSites · Arbeitsstand</p>
|
|
{% endblock %}
|