fix: makes email field required in contact form
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user