Skip to content

Commit

Permalink
Make nonprofits bank_accounts views translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
jvBatista committed Jun 6, 2023
1 parent f60e33d commit 874688f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
17 changes: 10 additions & 7 deletions app/views/nonprofits/bank_accounts/_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<div class='modal-body'>
<p>To make payouts, we need to connect to your organization's bank account. All data is sent over a 256-bit secured SSL encryption and stored in a encrypted, PCI-DSS Level 1 Compliant database.</p>
<p><%= t('nonprofits.page.bank_accounts.modal.payout_instruction') %></p>
<p>This connection only allows for <strong>deposits</strong> to your bank account.</p>
<p><%= t('nonprofits.page.bank_accounts.modal.allow_deposits') %></p>
<form id='bank-account-form' parsley-validate>
<!--= on 'submit' (create_bank_account form_object) -->
Expand All @@ -19,19 +19,22 @@
<div class='fields'>
<div class='field'>
<label>Account Holder's Name</label>
<label><%= t('nonprofits.page.bank_accounts.modal.account_holder_label') %></label>
<input name='name' required parsley-trigger='change'></input>
</div>
<div class='field'>
<label>Routing Number</label>
<label><%= t('nonprofits.page.bank_accounts.modal.rounting_number_label') %></label>
<input name='routing_number' required parsley-type='number' parsley-trigger='change' parsley-rangelength='[9,9]' parsley-rangelength-message='This must be exactly 9 digits long'></input>
</div>
<div class='field'>
<label>Account Number</label>
<label><%= t('nonprofits.page.bank_accounts.modal.account_number_label') %></label>
<input name='account_number' required parsley-type='number' parsley-trigger='change'></input>
</div>
<div class='field'>
<label>Your <%= Houdini.general.name %> Password <br><small>(to confirm this change)</small></label>
<label>
<%= t('nonprofits.page.bank_accounts.modal.your_houdini_password', houdini_general_name: Houdini.general.name) %><br>
<small><%= t('nonprofits.page.bank_accounts.modal.to_confirm_change') %></small>
</label>
<input name='user_password' required type='password' parsley-trigger='change'></input>
</div>
</div>
Expand All @@ -48,4 +51,4 @@

</div>

</div>
</div>
10 changes: 5 additions & 5 deletions app/views/nonprofits/bank_accounts/cancellation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Full license explanation at https://github.com/houdiniproject/houdini/blob/main/LICENSE -%>
<div class='container'>
<h2>Cancel bank account change</h2>
<h2><%= t('nonprofits.page.bank_accounts.cancellation.cancel_bank_account') %></h2>
<% if @bank_account.nil? %>
<p>This nonprofit has no connected bank account.</p>
<p><%= t('nonprofits.page.bank_accounts.cancellation.no_bank_account_label') %></p>
<% elsif @bank_account.pending %>
<%= render 'bank_account_info' %>
Expand All @@ -15,8 +15,8 @@
<%= submit_tag 'Cancel', :class => 'btn btn-large' %>
<% end %>
<% else %>
<p>The bank account for this nonprofit was never initially confirmed.</p>
<p><%= t('nonprofits.page.bank_accounts.cancellation.bank_account_not_confirmed_label') %></p>
<% end %>
<p>If you think this was in error, please contact <%= mail_to Houdini.hoster.support_email %></p>
</div>
<p><%= t('nonprofits.page.bank_accounts.cancellation.contact_label') %> <%= mail_to Houdini.hoster.support_email %></p>
</div>
16 changes: 15 additions & 1 deletion config/locales/en/nonprofits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,18 @@ en:
actions:
start_campaign: Start a Campaign
start_campaign_for: "Start a Campaign for %{nonprofit_name}"
create_event: Create an Event
create_event: Create an Event
bank_accounts:
modal:
payout_instruction: To make payouts, we need to connect to your organization's bank account. All data is sent over a 256-bit secured SSL encryption and stored in a encrypted, PCI-DSS Level 1 Compliant database.
allow_deposits: This connection only allows for <strong>deposits</strong> to your bank account.
account_holder_label: Account Holder's Name
rounting_number_label: Routing Number
account_number_label: Account Number
your_houdini_password: "Your %{houdini_general_name} Password"
to_confirm_change: (to confirm this change)
cancellation:
cancel_bank_account: Cancel bank account change
no_bank_account_label: This nonprofit has no connected bank account.
bank_account_not_confirmed_label: The bank account for this nonprofit was never initially confirmed.
contact_label: If you think this was in error, please contact

0 comments on commit 874688f

Please sign in to comment.