<%= 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.email_field :email, required: true %>
<%= form.select :category, %w{student retired unemployed employed} %>
<%= form.text_field :identification_number %>
<%= form.text_area :address %>
<%= 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 %>