use data-bouncer-message instead of title to display error message

This commit is contained in:
Son NK 2021-07-03 17:50:54 +02:00
parent 95d6fa3478
commit f59651045d
2 changed files with 9 additions and 2 deletions

View File

@ -33,7 +33,7 @@
type="text"
pattern="[0-9a-z-_.]{1,}"
maxlength="40"
title="Only lowercase letters, dots, numbers, dashes (-) and underscores (_) are currently supported."
data-bouncer-message="Only lowercase letters, dots, numbers, dashes (-) and underscores (_) are currently supported."
placeholder="Alias prefix, for example newsletter.com-123_xyz"
autofocus required>

View File

@ -103,7 +103,7 @@
type="text"
pattern="[0-9a-z-_]{1,}"
maxlength="40"
title="Only lowercase letters, dots, numbers, dashes (-) and underscores (_) are currently supported."
data-bouncer-message="Only lowercase letters, dots, numbers, dashes (-) and underscores (_) are currently supported."
placeholder="email alias"
autofocus>
</div>
@ -202,3 +202,10 @@
</div>
</form>
{% endblock %}
{% block script %}
<script>
// init bouncer
new Bouncer('form');
</script>
{% endblock %}