<%= t('families.new.title', default: 'Create Your Family') %>
<%= t('families.new.description', default: 'Create a family to share your location data with your loved ones.') %>
<%= form_with url: family_path, model: @family, local: true, class: "space-y-6" do |form| %>
<% if @family.errors.any? %>
<%= t('families.new.error_title', default: 'There were problems with your submission:') %>
<% @family.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :name, t('families.form.name', default: 'Family Name'), class: "label label-text font-medium mb-2" %>
<%= form.text_field :name,
class: "input input-bordered w-full",
placeholder: t('families.form.name_placeholder', default: 'Enter your family name') %>
<%= 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.new.what_happens_title', default: 'What happens next?') %>
- • <%= t('families.new.what_happens_1', default: 'You will become the family owner') %>
- • <%= t('families.new.what_happens_2', default: 'You can invite others to join your family') %>
- • <%= t('families.new.what_happens_3', default: 'Family members can view shared location data') %>
- • <%= t('families.new.what_happens_4', default: 'You can manage family settings and members') %>
<%= form.submit t('families.new.create_family', default: 'Create Family'),
class: "btn btn-primary" %>
<%= link_to root_path,
class: "btn btn-ghost" do %>
<%= t('families.new.back', default: '← Back') %>
<% end %>
<% end %>