This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let the browser take care of required fields
- Loading branch information
Showing
3 changed files
with
7 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,17 +80,17 @@ title = _("Bank Account") | |
|
||
<label> | ||
<span>{{ _("Name on Bank Account") }}</span> | ||
<input id="account_name" autofocus /> | ||
<input id="account_name" required autofocus /> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Changaco
Author
Contributor
|
||
</label> | ||
|
||
<label> | ||
<span>{{ _("Routing Number") }}</span> | ||
<input id="routing_number" /> | ||
<input id="routing_number" required /> | ||
</label> | ||
|
||
<label> | ||
<span>{{ _("Bank Account Number") }}</span> | ||
<input id="account_number" /> | ||
<input id="account_number" required /> | ||
</label> | ||
|
||
<button class="selected larger" id="save" type="submit">{{ _("Save") }}</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This makes for a worse user experience, because the browser tooltips are different than the tooltips we implement ourselves in ... where do we implement that?
Furthermore, the browser implementation appears to only highlight one missing field at a time. It's better for users if we display all errors on the form at once, as we were doing before.