Skip to content
Snippets Groups Projects
Commit 9a75a911 authored by Gyan Gupta's avatar Gyan Gupta
Browse files

show message after accepted agreement

parent 85072835
Branches
Tags
1 merge request!334Re-enable user agreement
Pipeline #16848 passed
......@@ -334,7 +334,4 @@ form .field-wrapper label[required="required"]::after {
max-width: 33em;
margin: 4em auto 0;
padding: 20px;
div {
color: #a62323;
}
}
\ No newline at end of file
......@@ -4,7 +4,10 @@
<div class="agreement-wrapper">
<div class="dialog">
<div>
<%= t('rdms.users.agreement.after_accepted_message', date_string: current_user.agreement_accepted_at.strftime("%b %d, %Y"))%>
<%= sanitize(t('hyrax.passive_consent_to_agreement',
terms_of_use_url: link_to('Terms of use', hyrax.terms_path),
agreement_url: link_to(t('hyrax.pages.tabs.agreement_page'), hyrax.agreement_path, target: '_blank'),
agreement_accepted_at: current_user.agreement_accepted_at.strftime("%b %d, %Y"))) %>
</div>
</div>
</div>
......
......@@ -99,9 +99,6 @@ en:
file_not_allowed: "This file name is restricted. Delete this file and upload again after changing the name"
s3_server_error: "Apologies for the inconvenience. At the moment, this feature is not accessible. This is due to an issue with the connectivity to our research data storage. Our team is diligently working on resolving this. Please try again later. Thank you for your understanding and patience."
accept_agreement: "You need to accept the %{value} to use ReSeed as an authenticated user"
users:
agreement:
after_accepted_message: "You have already accepted the Terms of use on (%{date_string})"
simple_form:
hints:
defaults:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment