contact-form/templates/form.html

40 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2024-08-16 15:40:49 +02:00
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/frombulma.css">
<link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<form method="post">
<input type="hidden" name="token" value={{token}}>
<div class="form-line field">
<label class="label" for=email>Adresse de courriel</label>
<div class="form-line control">
<input class="input" id="email" type="email" name="email" value="{{email}}" required/>
</div>
</div>
<div class="form-line field">
<label class="label" for="message">Votre message</label>
</div>
<div class="form-line field">
2024-08-16 21:11:42 +02:00
<textarea class="textarea" id="message" name="message" rows="20" minlength="50" maxlength="10000" required>{{message}}</textarea>
2024-08-16 15:40:49 +02:00
</div>
<div class="form-line field">
<label class="label" for="captcha">Vérification dhumanité: combien font {{first_number}} {{op_text}} {{second_number}} ?</label>
</div>
<div class="form-line field">
2024-08-16 19:15:17 +02:00
<input class="input {% if captcha_error %}form-alert{% endif %}" id="captcha" type="number" name="captcha" min="0" max="81" required />
2024-08-16 15:40:49 +02:00
</div>
{% if captcha_error %}
<div class="form-error">Le captcha est invalide veuillez réessayer</div>
{% endif %}
<div class="form-line field">
<input class="button is-link" type="submit" value="Envoyer" />
</div>
</form>
</body>
</html>