-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #319 from moneyadviceservice/change_flash_messages
Change flash messages
- Loading branch information
Showing
9 changed files
with
23 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% flash.to_hash.slice('notice', 'success', 'info', 'alert', 'error').each do |name, msg| %> | ||
<%= render 'shared/notification', name: name, title: name.titleize, msg: msg, test_class: 't-flash-message' %> | ||
<%= render 'shared/notification', name: name, title: t("notification.#{name}"), msg: msg, test_class: 't-flash-message' %> | ||
<% end %> |
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,6 +80,14 @@ en: | |
travel_distance: | ||
inclusion: "- please select at least one" | ||
|
||
notification: | ||
notice: Notice | ||
success: Success | ||
info: Information | ||
alert: Alert | ||
error: There's an error | ||
onboarding: Welcome | ||
|
||
error_message: Error | ||
authentication_sign_in: Sign in | ||
authentication_sign_up: Register | ||
|
@@ -145,7 +153,7 @@ en: | |
email_address: Email address * | ||
telephone_number: Telephone number * | ||
fca_number_unmatched: could not be matched | ||
validation_error_html: If you have any queries, please contact <a href="mailto:[email protected]">[email protected]</a>. | ||
validation_error_html: We weren't able to sign you up. If you have any queries, please contact <a href="mailto:[email protected]">[email protected]</a>. | ||
register_button: Register my firm | ||
user: | ||
password: Password * | ||
|
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
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
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