<commit_before><% content_for :header_title, "Your Household" %>
<div class="form-card">
  <header class="form-card__header">
    <div class="form-card__title">
      <%= t("snap.household_more_info_per_member.edit.title") %>
    </div>
  </header>

  <div class="form-card__content">
    <%= form_for @step, as: :step, builder: MbFormBuilder, url: current_path, method: :put do |f| %>

      <% if !current_application.everyone_a_citizen? %>
        <fieldset class="form-group">
          <legend class="form-question" id="citizen__legend">
            <%= t("snap.household_more_info_per_member.edit.prompt") %>
            <span class="form-card__optional">(optional)</span>
          </legend>
          <% @step.members.each do |member| %>
            <%= f.fields_for('members[]', member) do |ff| %>
              <%= ff.mb_checkbox(
                :citizen,
                member.display_name,
                legend_id: "citizen__legend",
                options: {checked_value: "0", unchecked_value: "1"},
              ) %>
            <% end %>
          <% end %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_disabled? %>
        <fieldset class="form-group">
          <legend class="form-question" id="disabled__legend">Who has a disability?<span class="form-card__optional">(optional)</span></legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :disabled, legend_id: "disabled__legend" %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_new_mom? %>
        <fieldset class="form-group">
          <legend class="form-question" id="pregnant__legend">Who is pregnant or has been pregnant recently?<span class="form-card__optional">(optional)</span></legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :new_mom, legend_id: "pregnant__legend"  %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_in_college? %>
        <fieldset class="form-group">
          <legend class="form-question" id="college__legend">Who is enrolled in college?<span class="form-card__optional">(optional)</span></legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :in_college, legend_id: "college__legend"  %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_living_elsewhere? %>
        <fieldset class="form-group">
          <legend class="form-question" id="elsewhere__legend">Who is temporarily living outside the home?<span class="form-card__optional">(optional)</span></legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :living_elsewhere, legend_id: "elsewhere__legend"  %>
        </fieldset>
      <% end %>

      <%= render 'shared/next_step' %>
    <% end %>
  </div>
</div><commit_msg>Remove (optional) from fields we want clients to fill<commit_after><% content_for :header_title, "Your Household" %>
<div class="form-card">
  <header class="form-card__header">
    <div class="form-card__title">
      <%= t("snap.household_more_info_per_member.edit.title") %>
    </div>
  </header>

  <div class="form-card__content">
    <%= form_for @step, as: :step, builder: MbFormBuilder, url: current_path, method: :put do |f| %>

      <% if !current_application.everyone_a_citizen? %>
        <fieldset class="form-group">
          <legend class="form-question" id="citizen__legend">
            <%= t("snap.household_more_info_per_member.edit.prompt") %>
          </legend>
          <% @step.members.each do |member| %>
            <%= f.fields_for('members[]', member) do |ff| %>
              <%= ff.mb_checkbox(
                :citizen,
                member.display_name,
                legend_id: "citizen__legend",
                options: {checked_value: "0", unchecked_value: "1"},
              ) %>
            <% end %>
          <% end %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_disabled? %>
        <fieldset class="form-group">
          <legend class="form-question" id="disabled__legend">Who has a disability?</legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :disabled, legend_id: "disabled__legend" %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_new_mom? %>
        <fieldset class="form-group">
          <legend class="form-question" id="pregnant__legend">Who is pregnant or has been pregnant recently?</legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :new_mom, legend_id: "pregnant__legend"  %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_in_college? %>
        <fieldset class="form-group">
          <legend class="form-question" id="college__legend">Who is enrolled in college?</legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :in_college, legend_id: "college__legend"  %>
        </fieldset>
      <% end %>

      <% if current_application.anyone_living_elsewhere? %>
        <fieldset class="form-group">
          <legend class="form-question" id="elsewhere__legend">Who is temporarily living outside the home?</legend>
          <%= render 'member_checkboxes', f: f, step: @step, method: :living_elsewhere, legend_id: "elsewhere__legend"  %>
        </fieldset>
      <% end %>

      <%= render 'shared/next_step' %>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.1576308949127367, 'fraction_numerical': 0.0007426661715558856, 'mean_word_length': 2.817859673990078, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5522652', 'n_tokens_mistral': 1799, 'n_tokens_neox': 1628, 'n_words': 331}