contact-form/templates/form.html
2024-08-16 21:11:42 +02:00

40 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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">
<textarea class="textarea" id="message" name="message" rows="20" minlength="50" maxlength="10000" required>{{message}}</textarea>
</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">
<input class="input {% if captcha_error %}form-alert{% endif %}" id="captcha" type="number" name="captcha" min="0" max="81" required />
</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>