Skip to content

Commit 9ab69d9

Browse files
committed
feat: (LAR-107) Mise a jour du formulaire de register et ajout des tests register et mise a jour des rules
1 parent 7a37f9d commit 9ab69d9

File tree

1 file changed

+0
-141
lines changed

1 file changed

+0
-141
lines changed

resources/views/livewire/pages/auth/register.blade.php

Lines changed: 0 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,3 @@
1-
{{-- <x-app-layout :title="__('pages/auth.register.page_title')">
2-
<x-container class="py-12 sm:py-16 lg:pt-20">
3-
<div class="lg:grid lg:gap-12 lg:grid-cols-2">
4-
<div class="hidden items-center justify-center lg:flex">
5-
<div>
6-
<h3 class="text-lg font-semibold leading-6 text-gray-700 dark:text-gray-300">
7-
{{ __('pages/auth.register.advantages.heading') }}
8-
</h3>
9-
<dl class="mt-10 grid gap-6 grid-cols-2">
10-
<x-site-feature
11-
:title="__('pages/auth.register.advantages.podcast')"
12-
:description="__('pages/auth.register.advantages.podcast_description')"
13-
>
14-
<x-slot:icon>
15-
<x-icon.podcast class="size-8" aria-hidden="true" />
16-
</x-slot:icon>
17-
</x-site-feature>
18-
19-
<x-site-feature
20-
:title="__('pages/auth.register.advantages.discussion')"
21-
:description="__('pages/auth.register.advantages.discussion_description')"
22-
>
23-
<x-slot:icon>
24-
<x-icon.discussion class="size-8" aria-hidden="true" />
25-
</x-slot:icon>
26-
</x-site-feature>
27-
28-
<x-site-feature
29-
:title="__('pages/auth.register.advantages.snippet')"
30-
:description="__('pages/auth.register.advantages.snippet_description')"
31-
>
32-
<x-slot:icon>
33-
<x-icon.code-snippet class="size-8" aria-hidden="true" />
34-
</x-slot:icon>
35-
</x-site-feature>
36-
37-
<x-site-feature
38-
:title="__('pages/auth.register.advantages.premium')"
39-
:description="__('pages/auth.register.advantages.premium_description')"
40-
>
41-
<x-slot:icon>
42-
<x-icon.premium class="size-8" aria-hidden="true" />
43-
</x-slot:icon>
44-
</x-site-feature>
45-
</dl>
46-
47-
<div class="mt-16 relative text-sm space-y-4 max-w-lg mx-auto">
48-
<svg class="absolute left-0 top-0 size-7 -translate-x-8 -translate-y-2 rotate-12 transform text-green-600" fill="currentColor" viewBox="0 0 32 32" aria-hidden="true">
49-
<path d="M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z" />
50-
</svg>
51-
<p class="relative text-gray-600 dark:text-gray-400">
52-
{{ __('pages/auth.register.advantages.quote') }}
53-
</p>
54-
<p class="mt-2 text-gray-900 dark:text-white">
55-
<span class="italic text-gray-400 dark:text-gray-500">"The Pragmatic Programmer"</span> {{ __('pages/auth.register.advantages.quote_authors') }}
56-
</p>
57-
</div>
58-
</div>
59-
</div>
60-
<div class="mx-auto max-w-md space-y-8">
61-
<div class="space-y-3 text-center">
62-
<h2 class="font-heading text-3xl font-extrabold text-gray-900 dark:text-white">
63-
{{ __('pages/auth.register.join_us') }}
64-
</h2>
65-
<x-profile-users />
66-
<p class="leading-6 text-gray-500 dark:text-gray-400">
67-
{{ __('pages/auth.register.joins_description') }}
68-
</p>
69-
</div>
70-
<div>
71-
<x-status-message />
72-
73-
<form class="space-y-6" action="{{ route('register') }}" method="POST">
74-
@csrf
75-
<div class="space-y-3">
76-
<x-filament::input.wrapper>
77-
<x-filament::input
78-
type="text"
79-
id="name"
80-
name="name"
81-
required="true"
82-
autocomplete="name"
83-
aria-label="{{ __('validation.attributes.name') }}"
84-
:placeholder="__('validation.attributes.name')"
85-
/>
86-
</x-filament::input.wrapper>
87-
<x-filament::input.wrapper>
88-
<x-filament::input
89-
type="email"
90-
id="email"
91-
name="email"
92-
required="true"
93-
autocomplete="email"
94-
aria-label="{{ __('validation.attributes.email') }}"
95-
:placeholder="__('validation.attributes.email')"
96-
/>
97-
</x-filament::input.wrapper>
98-
<x-filament::input.wrapper>
99-
<x-filament::input
100-
type="text"
101-
id="username"
102-
name="username"
103-
required="true"
104-
autocomplete="username"
105-
aria-label="{{ __('validation.attributes.username') }}"
106-
:placeholder="__('validation.attributes.username')"
107-
/>
108-
</x-filament::input.wrapper>
109-
<x-filament::input.wrapper>
110-
<x-filament::input
111-
type="password"
112-
id="password"
113-
name="password"
114-
required="true"
115-
aria-label="{{ __('validation.attributes.password') }}"
116-
:placeholder="__('pages/auth.register.password_placeholder')"
117-
/>
118-
</x-filament::input.wrapper>
119-
</div>
120-
121-
<div>
122-
<x-buttons.primary type="submit" class="group w-full relative">
123-
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
124-
<x-untitledui-lock class="size-5 text-green-500 group-hover:text-green-600" aria-hidden="true" />
125-
</span>
126-
{{ __('pages/auth.register.submit') }}
127-
</x-buttons.primary>
128-
</div>
129-
</form>
130-
</div>
131-
132-
@include('partials._socials-link')
133-
</div>
134-
</div>
135-
</x-container>
136-
137-
<x-join-sponsors :title="__('global.sponsor_thanks')" />
138-
</x-app-layout> --}}
139-
1401
<?php
1412
1423
use App\Models\User;
@@ -178,7 +39,6 @@ public function register(): void
17839
}
17940
}; ?>
18041
<div>
181-
{{-- <x-app-layout :title="__('pages/auth.register.page_title')"> --}}
18242
<x-container class="py-12 sm:py-16 lg:pt-20">
18343
<div class="lg:grid lg:gap-12 lg:grid-cols-2">
18444
<div class="hidden items-center justify-center lg:flex">
@@ -343,5 +203,4 @@ public function register(): void
343203
</x-container>
344204

345205
<x-join-sponsors :title="__('global.sponsor_thanks')" />
346-
{{-- </x-app-layout> --}}
347206
</div>

0 commit comments

Comments
 (0)