diff --git a/app/models/staff_account.rb b/app/models/staff_account.rb index e6867a3c4..caa1fa210 100644 --- a/app/models/staff_account.rb +++ b/app/models/staff_account.rb @@ -27,4 +27,8 @@ class StaffAccount < ApplicationRecord def email user.email.to_s end + + def status + user.invited_to_sign_up? ? :invitation_sent : :enabled + end end diff --git a/app/views/organizations/staff/index.html.erb b/app/views/organizations/staff/index.html.erb index 9e87695ee..d4a00b9d1 100644 --- a/app/views/organizations/staff/index.html.erb +++ b/app/views/organizations/staff/index.html.erb @@ -59,7 +59,7 @@
Status - Enabled + <%= t("staff_accounts.status.#{staff.status}") %>
@@ -110,7 +110,7 @@ <%= staff.created_at.strftime("%d %B, %Y") %> - Enabled + <%= t("staff_accounts.status.#{staff.status}") %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 1278c8d6e..78d1a07ae 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -101,9 +101,9 @@ en: transport before an adoption can be approved. after_you_adopt: "After you apply to adopt" after_you_adopt_items_html: | -
  • Your application history will be shown on 'My Applications' page
  • -
  • Application reviews generally take 4-6 days, depending on volume
  • -
  • We will contact you for further discussion if you are shortlisted
  • +
  • Your application history will be shown on 'My Applications' page
  • +
  • Application reviews generally take 4-6 days, depending on volume
  • +
  • We will contact you for further discussion if you are shortlisted
  • We work hard to match pets and adopters, so please try again if you are not successful first time round
  • create_an_account: "Create an account to apply for this pet" status: @@ -207,3 +207,7 @@ en: will_you_pick_up_the_pet: "Will you or a friend be in La Ventana in person to pick up the pet?" what_dates_will_you_be: "What dates will you be in La Ventana?" how_did_you_hear: "How did you find out about Baja Pet Rescue?" + staff_accounts: + status: + invitation_sent: "Invitation sent" + enabled: "Enabled"