Skip to content

Commit

Permalink
Partially addresses issue #344 by adding I18n for navigation and butt…
Browse files Browse the repository at this point in the history
…ons in views and specs. Admin buttons are namespaced with "admin".
  • Loading branch information
tannerj committed Aug 30, 2015
1 parent 0919045 commit c60c448
Show file tree
Hide file tree
Showing 143 changed files with 496 additions and 433 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/contacts/forms/_danger.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
%p
Once you delete a contact, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this contact', { action: :destroy, id: @contact.id }, method: :delete, class: 'boxed-action'
= link_to t('admin.buttons.delete_contact'), { action: :destroy, id: @contact.id }, method: :delete, class: 'boxed-action'
2 changes: 1 addition & 1 deletion app/views/admin/contacts/forms/_editing.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Editing
%strong
#{@contact.name}
= f.submit 'Save changes & apply edits to database', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.save_changes'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/contacts/forms/_new_contact.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
Creating contact for
%strong
#{@location.name}
= f.submit 'Create contact', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_contact'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/contacts/forms/_new_org_contact.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
Creating contact for
%strong
#{@organization.name}
= f.submit 'Create contact', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_contact'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
Creating contact for
%strong
#{@service.name}
= f.submit 'Create contact', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_contact'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
16 changes: 8 additions & 8 deletions app/views/admin/dashboard/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
%p
Welcome back, #{current_admin.name}!
%p
= link_to 'Organizations', admin_organizations_path, class: 'btn btn-primary'
= link_to t('admin.buttons.organizations'), admin_organizations_path, class: 'btn btn-primary'
%p
= link_to 'Locations', admin_locations_path, class: 'btn btn-primary'
= link_to t('admin.buttons.locations'), admin_locations_path, class: 'btn btn-primary'
%p
= link_to 'Services', admin_services_path, class: 'btn btn-primary'
= link_to t('admin.buttons.services'), admin_services_path, class: 'btn btn-primary'
%p
= link_to 'Programs', admin_programs_path, class: 'btn btn-primary'
= link_to t('admin.buttons.programs'), admin_programs_path, class: 'btn btn-primary'

- if current_admin.super_admin?
%p
= link_to 'Add a new organization', new_admin_organization_path, class: 'btn btn-primary'
= link_to t('admin.buttons.add_organization'), new_admin_organization_path, class: 'btn btn-primary'
- if @orgs.present?
%p
= link_to 'Add a new location', new_admin_location_path, class: 'btn btn-primary'
= link_to t('admin.buttons.add_location'), new_admin_location_path, class: 'btn btn-primary'
%p
= link_to 'Add a new program', new_admin_program_path, class: 'btn btn-primary'
= link_to t('admin.buttons.add_program'), new_admin_program_path, class: 'btn btn-primary'

- if current_admin.super_admin?
%h2 CSV Downloads

%p= zip_file_status

%hr
Ohana API #{link_to "v#{version}", 'https://github.com/codeforamerica/ohana-api/blob/master/CHANGELOG.md'}
Ohana API #{link_to "v#{version}", 'https://github.com/codeforamerica/ohana-api/blob/master/CHANGELOG.md'}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
permanently.
.modal-footer
%button.btn.btn-default{ 'data-dismiss' => 'modal' } Close
= link_to 'I understand the consequences, delete this location', { action: :destroy, id: location_id }, method: :delete, class: 'btn btn-danger'
= link_to t('admin.buttons.confirm_delete_location'), { action: :destroy, id: location_id }, method: :delete, class: 'btn btn-danger'
8 changes: 4 additions & 4 deletions app/views/admin/locations/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= link_to contact.name, edit_admin_location_contact_path(@location, contact)
%br
%p
= link_to 'Add a new contact', new_admin_location_contact_path(@location), class: 'btn btn-primary'
= link_to t('admin.buttons.add_contact'), new_admin_location_contact_path(@location), class: 'btn btn-primary'

.content-box
%h2 Services
Expand All @@ -19,7 +19,7 @@
= link_to service.name || "Service ##{i + 1}", edit_admin_location_service_path(@location, service)
%br
%p
= link_to 'Add a new service', new_admin_location_service_path(@location), class: 'btn btn-primary'
= link_to t('admin.buttons.add_service'), new_admin_location_service_path(@location), class: 'btn btn-primary'

.danger-zone
%header
Expand All @@ -30,7 +30,7 @@
%p
Once you delete a location, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this location', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to t('admin.buttons.delete_location'), {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/locations/confirm_delete_location', location_id: @location.id, loc_name: @location.name, org_name: @org.name

Expand All @@ -39,4 +39,4 @@
Editing
%strong
#{@org.name} / #{@location.name}
= f.submit 'Save changes & apply edits to database', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.save_changes'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/locations/forms/_address.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
= f.fields_for :address do |builder|
= render 'admin/locations/forms/address_fields', f: builder
- unless @location.address.present?
= link_to_add_fields 'Add a street address', f, :address
= link_to_add_fields t('admin.buttons.add_street_address'), f, :address
2 changes: 1 addition & 1 deletion app/views/admin/locations/forms/_address_fields.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
.col-sm-2
= f.text_field :country, maxlength: 2, class: 'form-control'
= f.hidden_field :_destroy
= link_to 'Delete this address permanently', '#', class: 'btn btn-danger delete_association'
= link_to t('admin.buttons.delete_street_address'), '#', class: 'btn btn-danger delete_association'
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
.row
.col-sm-6
= email_field_tag 'location[admin_emails][]', '', class: 'form-control'
= link_to 'Delete this admin permanently', '#', class: 'btn btn-danger delete_attribute'
= link_to t('admin.buttons.delete_admin'), '#', class: 'btn btn-danger delete_attribute'
%hr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
= field_set_tag do
= text_field_tag 'location[admin_emails][]', current_admin.email, class: 'form-control'
%br
= link_to 'Delete this admin permanently', '#', class: 'btn btn-danger delete_attribute'
= link_to t('admin.buttons.delete_admin'), '#', class: 'btn btn-danger delete_attribute'
%hr
4 changes: 2 additions & 2 deletions app/views/admin/locations/forms/_admin_emails.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
.row
%div{ class: "col-sm-6 #{error_class_for(@location, :admin_emails, admin)}" }
= email_field_tag 'location[admin_emails][]', admin, class: 'form-control', id: "location_admin_emails_#{i}"
= link_to 'Delete this admin permanently', '#', class: 'btn btn-danger delete_attribute'
= link_to t('admin.buttons.delete_admin'), '#', class: 'btn btn-danger delete_attribute'
%hr
= link_to_add_array_fields 'Add a new admin email', :locations, :admin_email
= link_to_add_array_fields t('admin.buttons.add_admin'), :locations, :admin_email
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
= f.time_select :closes_at, minute_step: 15, prompt: true, ampm: true, ignore_date: true

= f.hidden_field :_destroy
= link_to 'Remove this holiday schedule', '#', class: 'btn btn-danger delete_association'
= link_to t('admin.buttons.remove_holiday_schedule'), '#', class: 'btn btn-danger delete_association'
%hr
2 changes: 1 addition & 1 deletion app/views/admin/locations/forms/_mail_address.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
= f.fields_for :mail_address do |builder|
= render 'admin/locations/forms/mail_address_fields', f: builder
- unless @location.mail_address.present?
= link_to_add_fields 'Add a mailing address', f, :mail_address
= link_to_add_fields t('admin.buttons.add_mailing_address'), f, :mail_address
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
.col-sm-2
= f.text_field :country, maxlength: 2, class: 'form-control'
= f.hidden_field :_destroy
= link_to 'Delete this mailing address permanently', '#', class: 'btn btn-danger delete_association'
= link_to t('admin.buttons.delete_mailing_address'), '#', class: 'btn btn-danger delete_association'
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= render 'admin/locations/forms/fields', f: f

= f.submit 'Create location', class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_location'), class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/locations/forms/_phone_fields.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
.col-md-4
= f.telephone_field :country_prefix, maxlength: 4, class: 'form-control'
= f.hidden_field :_destroy
= link_to 'Delete this phone permanently', '#', class: 'btn btn-danger delete_association'
= link_to t('admin.buttons.delete_phone'), '#', class: 'btn btn-danger delete_association'
%hr
2 changes: 1 addition & 1 deletion app/views/admin/locations/forms/_phones.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
If the phone number belongs to a contact, please move it to the existing contact, or add a new contact.
= f.fields_for :phones do |builder|
= render 'admin/locations/forms/phone_fields', f: builder
= link_to_add_fields 'Add a new phone number', f, :phones
= link_to_add_fields t('admin.buttons.add_phone'), f, :phones
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
= f.time_select :closes_at, minute_step: 15, prompt: true, ampm: true

= f.hidden_field :_destroy
= link_to 'x', '#', class: 'btn-sm btn-danger delete_association'
= link_to t('admin.buttons.delete_symbol'), '#', class: 'btn-sm btn-danger delete_association'
2 changes: 1 addition & 1 deletion app/views/admin/locations/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

- if @locations.present?
%p
= link_to 'Add a new location', new_admin_location_path, class: 'btn btn-primary'
= link_to t('admin.buttons.add_location'), new_admin_location_path, class: 'btn btn-primary'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
and all of its associated locations permanently.
.modal-footer
%button.btn.btn-default{ 'data-dismiss' => 'modal' } Close
= link_to 'I understand the consequences, delete this organization', { action: :destroy, id: org_id }, method: :delete, class: 'btn btn-danger'
= link_to t('admin.buttons.confirm_delete_organization'), { action: :destroy, id: org_id }, method: :delete, class: 'btn btn-danger'
6 changes: 3 additions & 3 deletions app/views/admin/organizations/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= link_to contact.name, edit_admin_organization_contact_path(@organization, contact)
%br
%p
= link_to 'Add a new contact', new_admin_organization_contact_path(@organization), class: 'btn btn-primary'
= link_to t('admin.buttons.add_contact'), new_admin_organization_contact_path(@organization), class: 'btn btn-primary'

.danger-zone
%header
Expand All @@ -20,7 +20,7 @@
%p
Once you delete an organization, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this organization', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to t('admin.buttons.delete_organization'), {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/organizations/confirm_delete_organization', org_id: @organization.id, org_name: @organization.name

Expand All @@ -29,4 +29,4 @@
Editing
%strong
#{@organization.name}
= f.submit 'Save changes & apply edits to database', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.save_changes'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= render 'admin/organizations/forms/fields', f: f

= f.submit 'Create organization', class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_organization'), class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/programs/_confirm_delete_program.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
and all of its associated services permanently.
.modal-footer
%button.btn.btn-default{ 'data-dismiss' => 'modal' } Close
= link_to 'I understand the consequences, delete this program', { action: :destroy, id: program_id }, method: :delete, class: 'btn btn-danger'
= link_to t('admin.buttons.confirm_delete_program'), { action: :destroy, id: program_id }, method: :delete, class: 'btn btn-danger'
2 changes: 1 addition & 1 deletion app/views/admin/programs/forms/_danger.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
%p
Once you delete a program, there is no going back. All of the program's services will be deleted as well. Please be certain.
%p
= link_to 'Permanently delete this program', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to t('admin.buttons.delete_program'), {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/programs/confirm_delete_program', program_id: @program.id, program_name: @program.name
2 changes: 1 addition & 1 deletion app/views/admin/programs/forms/_editing.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Editing
%strong
#{@program.name}
= f.submit 'Save changes & apply edits to database', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.save_changes'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/programs/forms/_new_program_form.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= render 'admin/programs/forms/fields', f: f

= f.submit 'Create program', class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_program'), class: 'btn btn-primary btn-lg', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/programs/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
= paginate @programs

- if Pundit.policy_scope!(current_admin, Organization).present?
= link_to 'Add a new program', new_admin_program_path, class: 'btn btn-primary'
= link_to t('admin.buttons.add_program'), new_admin_program_path, class: 'btn btn-primary'
2 changes: 1 addition & 1 deletion app/views/admin/services/_confirm_delete_service.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#{service_name || service_id}.
.modal-footer
%button.btn.btn-default{ 'data-dismiss' => 'modal' } Close
= link_to 'I understand the consequences, delete this service', { action: :destroy, id: service_id, name: service_name }, method: :delete, class: 'btn btn-danger'
= link_to t('admin.buttons.confirm_delete_service'), { action: :destroy, id: service_id, name: service_name }, method: :delete, class: 'btn btn-danger'
6 changes: 3 additions & 3 deletions app/views/admin/services/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= link_to contact.name, edit_admin_location_service_contact_path(@location, @service, contact)
%br
%p
= link_to 'Add a new contact', new_admin_location_service_contact_path(@location, @service), class: 'btn btn-primary'
= link_to t('admin.buttons.add_contact'), new_admin_location_service_contact_path(@location, @service), class: 'btn btn-primary'

= render 'admin/services/forms/service_locations'

Expand All @@ -22,7 +22,7 @@
%p
Once you delete a service, there is no going back. Please be certain.
%p
= link_to 'Permanently delete this service', {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
= link_to t('admin.buttons.delete_service'), {}, href: '', data: { toggle: 'modal', target: '#modal-window' }, class: 'boxed-action'
.modal.fade#modal-window{ 'aria-hidden' => 'true', 'aria-labelledby' => 'myModalLabel', 'role' => 'dialog', 'tabindex' => '-1' }
= render 'admin/services/confirm_delete_service', service_id: @service.id, service_name: @service.name

Expand All @@ -31,4 +31,4 @@
Editing
%strong
#{@service.name} / #{@location.name}
= f.submit 'Save changes & apply edits to database', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.save_changes'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
2 changes: 1 addition & 1 deletion app/views/admin/services/forms/_new_service_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
Creating service for
%strong
#{@location.name}
= f.submit 'Create service', class: 'btn btn-success', data: { disable_with: 'Please wait...' }
= f.submit t('admin.buttons.create_service'), class: 'btn btn-success', data: { disable_with: 'Please wait...' }
10 changes: 5 additions & 5 deletions app/views/admin/shared/_navigation_links.html.haml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
- if admin_signed_in?
%li
= link_to 'Edit account', edit_admin_registration_path
= link_to t('navigation.edit_account'), edit_admin_registration_path
%li
= link_to 'Organizations', admin_organizations_path
= link_to t('admin.buttons.organizations'), admin_organizations_path
%li
= link_to 'Locations', admin_locations_path
= link_to t('admin.buttons.locations'), admin_locations_path
%li
= link_to 'Services', admin_services_path
= link_to t('admin.buttons.services'), admin_services_path
%li
= link_to 'Sign out', destroy_admin_session_path, method: 'delete'
= link_to t('navigation.sign_out'), destroy_admin_session_path, method: 'delete'
%ul.nav.navbar-nav.navbar-right
%li
= link_to "Hi, #{current_admin.name}", '#', class: 'logged-in'
2 changes: 1 addition & 1 deletion app/views/admin/shared/forms/_holiday_hours.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
Holiday Hours of operation
= f.fields_for :holiday_schedules do |builder|
= render 'admin/locations/forms/holiday_schedule_fields', f: builder
= link_to_add_fields 'Add holiday schedule', f, :holiday_schedules
= link_to_add_fields I18n.t('admin.buttons.add_holiday_schedule'), f, :holiday_schedules
2 changes: 1 addition & 1 deletion app/views/admin/shared/forms/_hours.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
Hours of operation
= f.fields_for :regular_schedules do |builder|
= render 'admin/locations/forms/regular_schedule_fields', f: builder
= link_to_add_fields 'Add hours of operation', f, :regular_schedules
= link_to_add_fields I18n.t('admin.buttons.add_hours_of_operation'), f, :regular_schedules
6 changes: 3 additions & 3 deletions app/views/api_applications/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
= f.text_field :callback_url, class: 'form-control'
- if f.object.new_record?
.actions
= f.submit 'Register application', class: 'btn btn-primary'
= f.submit t('buttons.register_application'), class: 'btn btn-primary'
- else
.actions
= f.submit 'Update application', class: 'btn btn-success'
= link_to 'Delete application', { action: :destroy, id: @api_application.id }, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
= f.submit t('buttons.update_application'), class: 'btn btn-success'
= link_to t('buttons.delete_application'), { action: :destroy, id: @api_application.id }, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
2 changes: 1 addition & 1 deletion app/views/api_applications/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
%li
= link_to "#{api_application.name} (#{api_application.main_url})", api_application_path(api_application)
%br
= link_to 'Register new application', new_api_application_path, class: 'btn btn-primary'
= link_to t('buttons.register_new_application'), new_api_application_path, class: 'btn btn-primary'
4 changes: 2 additions & 2 deletions app/views/devise/confirmations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
.form-group
= f.label :email
= f.email_field :email, autofocus: true, class: 'form-control'
= f.submit 'Resend confirmation instructions', class: 'button center'
= f.submit t('buttons.resend_confirmation_instructions'), class: 'button center'
%br
= render 'devise/shared/links'
= render 'devise/shared/links'
2 changes: 1 addition & 1 deletion app/views/devise/passwords/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
.form-group
= f.label :password_confirmation, 'Confirm new password'
= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control'
= f.submit 'Change my password', class: 'button right'
= f.submit t('buttons.change_my_password'), class: 'button right'
%br
= render 'devise/shared/links'
2 changes: 1 addition & 1 deletion app/views/devise/passwords/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
.form-group
= f.label :email
= f.email_field :email, autofocus: true, class: 'form-control'
= f.submit 'Send me reset password instructions', class: 'button center'
= f.submit t('buttons.send_reset_password_instructions'), class: 'button center'
%br
= render 'devise/shared/links'
Loading

0 comments on commit c60c448

Please sign in to comment.