<commit_before><%= render 'enrollment/navigation' %>
<%= render 'enrollment/guardian2_errors' %>

<div class="enrollment-form">
  <div class="instructions">Tell us about <%= @student.first_name %>'s family.</div>

<%= form_for(@guardian_2, url: wizard_path, method: :put, id: 'editable-fields') do |c| %>
    <div>
        <table>
          <tr>
            <td colspan="2"><span>Does <%= @student.first_name %> have another parent, legal guardian or caregiver?</span> 
              <div class="btn-group" data-toggle="buttons">
                <label class="btn btn-primary">
                    <input type="radio" name="has_additional_guardian" value="true">Yes</label>
                <label class="btn btn-primary">
                    <input type="radio" name="has_additional_guardian" value="false">No</label>
              </div>
            </td>
          </tr>

          <tr>
            <td class="row-break hidden" id="guardian2_first_name"><span>First Name:</span> <span><%= c.text_field :first_name, class: 'enrollment-form-input', id: 'guardian2_firstname', placeholder: 'Alice'%></span></td>
            <td class="hidden" id="guardian2_last_name"><span>Last Name:</span> <%= c.text_field :last_name, class: 'enrollment-form-input', id: 'guardian2_lastname', placeholder: 'Williams' %></span></td>
          </tr>
          <tr>
            <td class="padding-right hidden" colspan="2" id="guardian2_relationship">Individual's relationship to <%= @student.first_name %>:
              <%= c.text_field :relationship, class: 'enrollment-form-popover input-pointer capitalize', 'data-toggle' => 'modal', 'data-target' => '#guardian1RelationshipModal', id: 'guardian1RelationshipSelected', readonly: true, placeholder: 'Choose Relationship'  %>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="hidden" id="guardian2_lives_with_question">How often does <%= @student.first_name %> live with this individual?</td>
          </tr>
          <tr>
            <td class="hidden" id="guardian2_lives_with_slider"><input id="lives_with_g2_slider" type="text" data-slider-min="0" data-slider-max="100" data-slider-step="10" data-slider-value="50" class="pull-right"></td>
            <td class="slider-result hidden" id="guardian2_slider_result"><span id="lives_with_g2_val">50</span>%</td>
          </tr>
        </div>
      </table>
    </div>

    <ul class="pager">
      <li><%= link_to "Previous", previous_wizard_path %></li>
      
<!-- TODO: Make this link skip to Guardian Complete if no is selected -->
      <li><%= c.submit 'Next', class: 'nav-button pull-right' %></li>
    </ul>

      <div class="modal fade" id="guardian1RelationshipModal" tabindex="-1" role="dialog" aria-labelledby="guardian1RelationshipModal" aria-hidden="true">
        <div class="modal-dialog modal-sm">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
              <h4 class="modal-title" id="firstLanguageLabel">How are you related to <%= @student.first_name %>?</h4>
            </div>
            <div class="modal-body single-col-modal">
              <div class="btn-group" data-toggle="buttons">
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :mother, class: 'second' %>Mother
                </label><br/>
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :father, class: 'second' %>Father
                </label><br/>
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :guardian, class: 'second' %>Guardian
                </label><br/>
                <%= text_field_tag 'choose_relationship', nil, class: 'enrollment-form-input second', id: 'choose_relationship_input_text', placeholder: 'Other' %>
                <br/>
              </div>
            </div>
            <div class="modal-footer">
              <!-- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> -->
              <button type="button" id="btnGuardian1Relationship" class="nav-button pull-right" data-dismiss="modal">Save
                changes
              </button>
            </div>
          </div>
        </div>
      </div>
      </div>
<% end %>

<%= render 'shared/scenery_guardian' %><commit_msg>Removed a comment and div<commit_after><%= render 'enrollment/navigation' %>
<%= render 'enrollment/guardian2_errors' %>

<div class="enrollment-form">
  <div class="instructions">Tell us about <%= @student.first_name %>'s family.</div>

<%= form_for(@guardian_2, url: wizard_path, method: :put, id: 'editable-fields') do |c| %>
    <div>
        <table>
          <tr>
            <td colspan="2"><span>Does <%= @student.first_name %> have another parent, legal guardian or caregiver?</span> 
              <div class="btn-group" data-toggle="buttons">
                <label class="btn btn-primary">
                    <input type="radio" name="has_additional_guardian" value="true">Yes</label>
                <label class="btn btn-primary">
                    <input type="radio" name="has_additional_guardian" value="false">No</label>
              </div>
            </td>
          </tr>

          <tr>
            <td class="row-break hidden" id="guardian2_first_name"><span>First Name:</span> <span><%= c.text_field :first_name, class: 'enrollment-form-input', id: 'guardian2_firstname', placeholder: 'Alice'%></span></td>
            <td class="hidden" id="guardian2_last_name"><span>Last Name:</span> <%= c.text_field :last_name, class: 'enrollment-form-input', id: 'guardian2_lastname', placeholder: 'Williams' %></span></td>
          </tr>
          <tr>
            <td class="padding-right hidden" colspan="2" id="guardian2_relationship">Individual's relationship to <%= @student.first_name %>:
              <%= c.text_field :relationship, class: 'enrollment-form-popover input-pointer capitalize', 'data-toggle' => 'modal', 'data-target' => '#guardian1RelationshipModal', id: 'guardian1RelationshipSelected', readonly: true, placeholder: 'Choose Relationship'  %>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="hidden" id="guardian2_lives_with_question">How often does <%= @student.first_name %> live with this individual?</td>
          </tr>
          <tr>
            <td class="hidden" id="guardian2_lives_with_slider"><input id="lives_with_g2_slider" type="text" data-slider-min="0" data-slider-max="100" data-slider-step="10" data-slider-value="50" class="pull-right"></td>
            <td class="slider-result hidden" id="guardian2_slider_result"><span id="lives_with_g2_val">50</span>%</td>
          </tr>
        </div>
      </table>
    </div>

    <ul class="pager">
      <li><%= link_to "Previous", previous_wizard_path %></li>
      <li><%= c.submit 'Next', class: 'nav-button pull-right' %></li>
    </ul>

      <div class="modal fade" id="guardian1RelationshipModal" tabindex="-1" role="dialog" aria-labelledby="guardian1RelationshipModal" aria-hidden="true">
        <div class="modal-dialog modal-sm">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
              <h4 class="modal-title" id="firstLanguageLabel">How are you related to <%= @student.first_name %>?</h4>
            </div>
            <div class="modal-body single-col-modal">
              <div class="btn-group" data-toggle="buttons">
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :mother, class: 'second' %>Mother
                </label><br/>
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :father, class: 'second' %>Father
                </label><br/>
                <label class="btn btn-primary">
                  <%= radio_button_tag 'choose_relationship', :guardian, class: 'second' %>Guardian
                </label><br/>
                <%= text_field_tag 'choose_relationship', nil, class: 'enrollment-form-input second', id: 'choose_relationship_input_text', placeholder: 'Other' %>
                <br/>
              </div>
            </div>
            <div class="modal-footer">
              <!-- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> -->
              <button type="button" id="btnGuardian1Relationship" class="nav-button pull-right" data-dismiss="modal">Save
                changes
              </button>
            </div>
          </div>
        </div>
      </div>
<% end %>
<%= render 'shared/scenery_guardian' %>
{'fraction_non_alphanumeric': 0.16645976752059588, 'fraction_numerical': 0.007448369258548696, 'mean_word_length': 2.6186198448346265, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 229, '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': '138954', 'n_tokens_mistral': 2764, 'n_tokens_neox': 2589, 'n_words': 541}