|
51 | 51 | <%= f.label :email, t('.fields.email.label'), class: 'form-label' %> |
52 | 52 | <%= f.email_field :email, autofocus: true, required: true, |
53 | 53 | class: "form-control#{' is-invalid' if @form.errors[:email].any?}", |
54 | | - data: { action: 'blur->better_together--form-validation#validate' } %> |
| 54 | + data: { action: 'blur->better_together--form-validation#checkValidity' } %> |
55 | 55 | <small class="form-text text-muted"><%= t('.fields.email.help') %></small> |
56 | 56 | <% if @form.errors[:email].any? %> |
57 | 57 | <div class="invalid-feedback d-block"><%= @form.errors[:email].join(', ') %></div> |
|
63 | 63 | <%= f.label :password, t('.fields.password.label'), class: 'form-label' %> |
64 | 64 | <%= f.password_field :password, required: true, minlength: min_password_length, |
65 | 65 | class: "form-control#{' is-invalid' if @form.errors[:password].any?}", |
66 | | - data: { action: 'blur->better_together--form-validation#validate', 'better_together--form-validation-min-length-value': min_password_length } %> |
| 66 | + data: { action: 'blur->better_together--form-validation#checkValidity', 'better_together--form-validation-min-length-value': min_password_length } %> |
67 | 67 | <small class="form-text text-muted"> |
68 | 68 | <%= t('.fields.password.help', min_length: min_password_length) %> |
69 | 69 | </small> |
|
77 | 77 | <%= f.label :password_confirmation, t('.fields.password_confirmation.label'), class: 'form-label' %> |
78 | 78 | <%= f.password_field :password_confirmation, required: true, minlength: min_password_length, |
79 | 79 | class: "form-control#{' is-invalid' if @form.errors[:password_confirmation].any?}", |
80 | | - data: { action: 'blur->better_together--form-validation#validate', 'better_together--form-validation-min-length-value': min_password_length } %> |
| 80 | + data: { action: 'blur->better_together--form-validation#checkValidity', 'better_together--form-validation-min-length-value': min_password_length } %> |
81 | 81 | <% if @form.errors[:password_confirmation].any? %> |
82 | 82 | <div class="invalid-feedback d-block"><%= @form.errors[:password_confirmation].join(', ') %></div> |
83 | 83 | <% end %> |
|
95 | 95 | <%= person_form.label :name, t('.fields.name.label'), class: 'form-label' %> |
96 | 96 | <%= person_form.text_field :name, required: true, |
97 | 97 | class: "form-control#{' is-invalid' if @form.errors[:name].any?}", |
98 | | - data: { action: 'blur->better_together--form-validation#validate' } %> |
| 98 | + data: { action: 'blur->better_together--form-validation#checkValidity' } %> |
99 | 99 | <small class="form-text text-muted"> |
100 | 100 | <%= t('.fields.name.help') %> |
101 | 101 | </small> |
|
109 | 109 | <%= person_form.label :identifier, t('.fields.identifier.label'), class: 'form-label' %> |
110 | 110 | <%= person_form.text_field :identifier, required: true, |
111 | 111 | class: "form-control#{' is-invalid' if @form.errors[:identifier].any?}", |
112 | | - data: { action: 'blur->better_together--form-validation#validate' } %> |
| 112 | + data: { action: 'blur->better_together--form-validation#checkValidity' } %> |
113 | 113 | <small class="form-text text-muted"> |
114 | 114 | <%= t('.fields.identifier.help') %> |
115 | 115 | </small> |
|
123 | 123 | <%= person_form.label :description, t('.fields.description.label'), class: 'form-label' %> |
124 | 124 | <%= person_form.text_area :description, required: true, rows: 3, |
125 | 125 | class: "form-control#{' is-invalid' if @form.errors[:description].any?}", |
126 | | - data: { action: 'blur->better_together--form-validation#validate' } %> |
| 126 | + data: { action: 'blur->better_together--form-validation#checkValidity' } %> |
127 | 127 | <small class="form-text text-muted"> |
128 | 128 | <%= t('.fields.description.help') %> |
129 | 129 | </small> |
|
0 commit comments