Show errors on forms. Additional work on confirm email screen.

This commit is contained in:
Matt Young 2024-05-26 23:01:51 -05:00
parent 5e9f7f3359
commit f4e16aa451
2 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@
If you didn't receive the email, we will gladly send you another.
@if(session('status') == 'verification-link-sent')
<div class="text-green-600">
<div class="text-green-600 mt-6">
A new verification link has been sent to the email address you provided during registration.
</div>
@endif

View File

@ -1,7 +1,7 @@
@props([
'name',
'type',
'label' => 'text'
'label' => 'text',
])
@php
$labelClasses = "block text-sm font-medium leading-6 text-gray-900";
@ -10,7 +10,8 @@
'id' => $name,
'name' => $name,
'type' => $type,
'class' => $inputClasses
'class' => $inputClasses,
'value' => old($name)
];
@endphp
<div>
@ -18,4 +19,7 @@
<div class="mt-2">
<input {{$attributes->merge($inputAttributes)}}>
</div>
@error($name)
<p class="text-xs text-red-500 font-semibold mt-1 ml-3">{{ $message }}</p>
@enderror
</div>