diff --git a/app/views/families/edit.html.erb b/app/views/families/edit.html.erb index 28595887..dbd28303 100644 --- a/app/views/families/edit.html.erb +++ b/app/views/families/edit.html.erb @@ -1,76 +1,74 @@
+
<%= t('families.edit.name_help', default: 'Choose a name that all family members will recognize.') %>
+
<%= t('families.index.description', default: 'Create or join a family to share your location data with loved ones.') %>
+
<%= t('families.index.invitation_instructions', default: 'If someone has invited you to join their family, you should have received an email with an invitation link.') %>
-
+
<%= "#{request.base_url}/invitations/..." %>
+
<%= t('families.new.description', default: 'Create a family to share your location data with your loved ones.') %>
+
<%= t('families.new.name_help', default: 'Choose a name that all family members will recognize, like "The Smith Family" or "Our Travel Group".') %>
+
<%= t('families.show.created_by', default: 'Created by') %> <%= @family.creator.email %> <%= t('families.show.on_date', default: 'on') %> @@ -16,7 +16,7 @@
+
<%= t('families.show.no_pending_invitations', default: 'No pending invitations') %>
<% end %> @@ -207,44 +207,40 @@ <% if policy(@family).invite? && @family.can_add_members? %>- Your family has reached the maximum of <%= @family.class::MAX_MEMBERS %> members (including pending invitations). - Cancel existing invitations or wait for them to expire to invite new members. -
-+ Your family has reached the maximum of <%= @family.class::MAX_MEMBERS %> members (including pending invitations). + Cancel existing invitations or wait for them to expire to invite new members. +
+
<%= t('family_invitations.index.no_invitations', default: 'No pending invitations') %>
- You've been invited by <%= @invitation.invited_by.email %> to join their family. Create your account to accept the invitation and start sharing location data. +
+ You've been invited by <%= @invitation.invited_by.email %> to join their family. Create your account to accept the invitation and start sharing location data.
-+
Share your location history with family members and see where they are
+
Access interactive maps and personal travel statistics
+
Keep track of your loved ones' travels and adventures in real-time
+
You control what and how long you share and can leave the family anytime
+
Logged in as <%= current_user.email %> · - <%= link_to destroy_user_session_path, method: :delete, class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300" do %> + <%= link_to destroy_user_session_path, method: :delete, class: "link link-info" do %> Logout <% end %>
<% else %> <%= link_to new_user_registration_path(invitation_token: @invitation.token), - class: "block w-full bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition-all duration-200 shadow-lg hover:shadow-xl text-center" do %> + class: "btn btn-primary btn-lg w-full text-lg shadow-lg" do %> Create Account & Join Family → <% end %>+
Already have an account?
<%= link_to new_user_session_path(invitation_token: @invitation.token), - class: "inline-block text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 font-medium" do %> + class: "link link-info font-medium" do %> Sign in to accept invitation <% end %>+
Not interested? You can simply close this page.