|
10 | 10 | import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo.svelte'
|
11 | 11 | import JetButton from '@/Jetstream/Button.svelte'
|
12 | 12 | import JetInput from '@/Jetstream/Input.svelte'
|
13 |
| - // import JetCheckbox from '@/Jetstream/Checkbox.svelte' |
| 13 | + import JetInputError from '@/Jetstream/InputError.svelte' |
14 | 14 | import JetLabel from '@/Jetstream/Label.svelte'
|
15 |
| - import JetValidationErrors from '@/Jetstream/ValidationErrors.svelte' |
16 | 15 |
|
17 | 16 | $title = 'Register';
|
18 | 17 |
|
|
34 | 33 | <JetAuthenticationCard>
|
35 | 34 | <JetAuthenticationCardLogo slot="logo"/>
|
36 | 35 |
|
37 |
| - <JetValidationErrors class="mb-4"/> |
38 |
| - |
39 | 36 | <form on:submit|preventDefault={register}>
|
40 | 37 | <div>
|
41 | 38 | <JetLabel id="name" label="Name"/>
|
42 | 39 | <JetInput id="name" class="mt-1 block w-full" bind:value={$form.name} required autofocus
|
43 | 40 | autocomplete="name"/>
|
| 41 | + <JetInputError message={$form.errors.name}/> |
44 | 42 | </div>
|
45 | 43 |
|
46 | 44 | <div class="mt-4">
|
47 | 45 | <JetLabel id="email" label="Email"/>
|
48 | 46 | <JetInput id="email" type="email" class="mt-1 block w-full" bind:value={$form.email} required/>
|
| 47 | + <JetInputError message={$form.errors.email}/> |
49 | 48 | </div>
|
50 | 49 |
|
51 | 50 | <div class="mt-4">
|
52 | 51 | <JetLabel id="password" label="Password"/>
|
53 | 52 | <JetInput id="password" type="password" class="mt-1 block w-full" bind:value={$form.password} required
|
54 | 53 | autocomplete="new-password"/>
|
| 54 | + <JetInputError message={$form.errors.password}/> |
55 | 55 | </div>
|
56 | 56 |
|
57 | 57 | <div class="mt-4">
|
58 | 58 | <JetLabel id="password_confirmation" label="Confirm Password"/>
|
59 | 59 | <JetInput id="password_confirmation" type="password" class="mt-1 block w-full"
|
60 | 60 | bind:value={$form.password_confirmation} required autocomplete="new-password"/>
|
| 61 | + <JetInputError message={$form.errors.password_confirmation}/> |
61 | 62 | </div>
|
62 | 63 |
|
63 | 64 | <!--
|
|
0 commit comments