5.5: <x-session-status> + 4 Auth-Seiten umgestellt
Self-conditional Component fuer den session('status')-Block (field-status +
role=status); Margin per class. Ersetzt den identischen 5-Zeilen-Block in
login, forgot-password, register, magic-link.
Bewusst NICHT umgestellt: verify-email (fixe Meldung statt session('status'),
Bedingung ===verification-link-sent, mb-6) und settings/profile (eigener
Kontext) — bleiben unveraendert. Alle Views kompilieren, 95 Auth-Tests gruen.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
587d1fd312
commit
b1b832df4c
5 changed files with 14 additions and 20 deletions
10
resources/views/components/session-status.blade.php
Normal file
10
resources/views/components/session-status.blade.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{--
|
||||
Status-Meldung aus der Session (z. B. „Reset-Link versendet"). Rendert nur,
|
||||
wenn session('status') gesetzt ist. Margin o. Ä. per class übergeben:
|
||||
<x-session-status class="mb-4" />
|
||||
--}}
|
||||
@if (session('status'))
|
||||
<div {{ $attributes->class('field-status') }} role="status">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -27,11 +27,7 @@ new #[Layout('components.layouts.auth.pressekonto', ['heading' => 'Passwort verg
|
|||
{{ __('Geben Sie die E-Mail-Adresse Ihres Kontos ein. Sie erhalten innerhalb weniger Minuten einen Link, mit dem Sie ein neues Passwort vergeben können.') }}
|
||||
</p>
|
||||
|
||||
@if (session('status'))
|
||||
<div class="field-status mb-4" role="status">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
<x-session-status class="mb-4" />
|
||||
|
||||
<form wire:submit="sendPasswordResetLink" class="space-y-[18px]" novalidate>
|
||||
|
||||
|
|
|
|||
|
|
@ -125,11 +125,7 @@ new #[Layout('components.layouts.auth.pressekonto', ['heading' => 'Willkommen zu
|
|||
}; ?>
|
||||
|
||||
<div>
|
||||
@if (session('status'))
|
||||
<div class="field-status mb-4" role="status">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
<x-session-status class="mb-4" />
|
||||
|
||||
<form wire:submit="login" class="space-y-[18px]" x-data="{ showPassword: false }" novalidate>
|
||||
|
||||
|
|
|
|||
|
|
@ -84,11 +84,7 @@ new #[Layout('components.layouts.auth.pressekonto', ['heading' => 'Anmeldung per
|
|||
}; ?>
|
||||
|
||||
<div>
|
||||
@if (session('status'))
|
||||
<div class="field-status mb-4" role="status">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
<x-session-status class="mb-4" />
|
||||
|
||||
<p class="text-[13.5px] text-ink-2 leading-[1.65] !-mt-2 mb-6">
|
||||
{{ __('Geben Sie Ihre E-Mail-Adresse ein – wir senden Ihnen einen Anmeldelink, mit dem Sie sich ohne Passwort anmelden können. Das funktioniert für bestehende Konten ebenso wie für jede E-Mail, die bei einer') }}
|
||||
|
|
|
|||
|
|
@ -54,11 +54,7 @@ new #[Layout('components.layouts.auth.pressekonto', ['heading' => 'Konto erstell
|
|||
}; ?>
|
||||
|
||||
<div>
|
||||
@if (session('status'))
|
||||
<div class="field-status mb-4" role="status">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
<x-session-status class="mb-4" />
|
||||
|
||||
<form wire:submit="register" class="space-y-[18px]" x-data="{ showPassword: false, showPasswordConfirmation: false }" novalidate>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue