fix: makes email field required in contact form

This commit is contained in:
2024-12-10 12:38:02 -03:00
parent 93bb84f2a2
commit ff18cd63bc

View File

@@ -25,7 +25,9 @@
class="form-control" class="form-control"
{% if user != none %} disabled {% endif %} {% if user != none %} disabled {% endif %}
id="email" id="email"
pattern="[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}$"
placeholder="name@example.com" placeholder="name@example.com"
required
{% if user != none %} value="{{user.email}}" {% endif %} {% if user != none %} value="{{user.email}}" {% endif %}
> >
</div> </div>