Skip to content

Commit cbe554a

Browse files
author
Funasitien DreamCloud
authored
📝 Contenu final
1 parent d9c0a77 commit cbe554a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/pages/form.astro

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
6464
</label>
6565
<input
6666
type="text"
67-
name="fullname"
68-
placeholder="Votre nom"
67+
name="projet"
68+
placeholder="Votre nom de projet"
6969
class="input input-bordered"
7070
required
7171
minlength="3"
@@ -151,7 +151,8 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
151151
<span class="label-text">Évènement (-1 mois)</span>
152152
<input
153153
type="radio"
154-
name="radio-10"
154+
name="temps"
155+
value="event-cours"
155156
class="radio checked:bg-violet-500"
156157
checked="checked"
157158
/>
@@ -162,7 +163,8 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
162163
<span class="label-text">Évènement (+1 mois)</span>
163164
<input
164165
type="radio"
165-
name="radio-10"
166+
name="temps"
167+
value="event-long"
166168
class="radio checked:bg-blue-500"
167169
checked="checked"
168170
/>
@@ -172,7 +174,8 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
172174
<span class="label-text">Définitif</span>
173175
<input
174176
type="radio"
175-
name="radio-10"
177+
name="temps"
178+
value="projet"
176179
class="radio checked:bg-red-500"
177180
checked="checked"
178181
/>
@@ -183,7 +186,7 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
183186
<label class="label">
184187
<span class="label-text">Slots</span>
185188
</label>
186-
<input type="range" min="1" max="10" value="1" class="range" step="1" />
189+
<input type="range" min="1" max="10" value="1" class="range" step="1" id="slots" name="slots" />
187190
<div class="flex w-full justify-between px-2 text-xs mb-2">
188191
<span>1</span>
189192
<span>2</span>
@@ -250,7 +253,7 @@ const CAPTCHA_SITE_KEY = import.meta.env.CLOUDFLARE_CAPTCHA_KEY;
250253
content: "Nouvelle soumission de formulaire",
251254
embeds: [
252255
{
253-
title: "Nouveau formulaire soumis",
256+
title: `Nouveau formulaire soumis - ${document.getElementById('slots').value}S`,
254257
description: document.getElementById('desciption').value,
255258
fields: Array.from(formData.entries()).map(([name, value]) => ({
256259
name,

0 commit comments

Comments
 (0)