<%= t('members.edit.title') %>

<%= form_with(model: @member) do |form| %> <% if @member.errors.any? %>

<%= pluralize(@member.errors.count, "error") %> prohibited this member from being saved:

<% end %>
<%= form.text_field :display_name, required: true %>
<%= form.text_field :legal_name %>
<%= form.text_field :pronouns %>
<%= form.email_field :email, required: true %>
<%= form.select :category, %w{student retired unemployed employed} %>
<%= form.text_field :identification_number %>
<%= form.text_area :address %>
<%= form.check_box :wants_mailing_list %>
<%= form.check_box :prefers_postal %>
<%= t('members.edit.edit_dates_warning') %>
<%= form.date_field :joined_on %>
<%= form.date_field :expires_on %>
<%= form.submit %>
<% end %>
<%= link_to t('members.edit.actions.back_to_show'), @member %>