🚑️ Ajout du fonctionnement du formulaire de contact en production, utilisation de PHPMailer.
This commit is contained in:
@@ -47,7 +47,7 @@ include_template('navbar', compact('currentPage'));
|
||||
type="text"
|
||||
id="nom"
|
||||
name="nom"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
required
|
||||
maxlength="100"
|
||||
autocomplete="family-name"
|
||||
@@ -65,7 +65,7 @@ include_template('navbar', compact('currentPage'));
|
||||
type="text"
|
||||
id="prenom"
|
||||
name="prenom"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
required
|
||||
maxlength="100"
|
||||
autocomplete="given-name"
|
||||
@@ -86,7 +86,7 @@ include_template('navbar', compact('currentPage'));
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
required
|
||||
maxlength="255"
|
||||
autocomplete="email"
|
||||
@@ -104,7 +104,7 @@ include_template('navbar', compact('currentPage'));
|
||||
type="text"
|
||||
id="entreprise"
|
||||
name="entreprise"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
maxlength="200"
|
||||
autocomplete="organization"
|
||||
placeholder="Nom de votre entreprise"
|
||||
@@ -120,13 +120,13 @@ include_template('navbar', compact('currentPage'));
|
||||
<select
|
||||
id="categorie"
|
||||
name="categorie"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
required
|
||||
>
|
||||
<option value="" disabled selected>Sélectionnez une catégorie...</option>
|
||||
<option value="projet">Je souhaite parler de mon projet</option>
|
||||
<option value="poste">Je souhaite vous proposer un poste</option>
|
||||
<option value="autre">Autre</option>
|
||||
<option value="autre">J'ai une autre idée en tête</option>
|
||||
</select>
|
||||
<p class="text-error text-sm mt-1 hidden" data-error="categorie"></p>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ include_template('navbar', compact('currentPage'));
|
||||
type="text"
|
||||
id="objet"
|
||||
name="objet"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
|
||||
required
|
||||
maxlength="200"
|
||||
placeholder="Résumez votre demande en quelques mots"
|
||||
@@ -156,7 +156,7 @@ include_template('navbar', compact('currentPage'));
|
||||
<textarea
|
||||
id="message"
|
||||
name="message"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors resize-y min-h-[150px]"
|
||||
class="w-full px-4 py-3 bg-surface-alt border border-border rounded-lg text-text-muted placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors resize-y min-h-[150px]"
|
||||
required
|
||||
maxlength="5000"
|
||||
rows="6"
|
||||
|
||||
Reference in New Issue
Block a user