<%= form_for @attendance do %>

  <!-- Send the meeting_id as a hidden field -->
  <%= hidden_field_tag(:meeting_id, Meeting.find(params[:id]).id) %>

  <!-- Create a check box object for each user enrolled in the inititative, -->
  <!--   populate attendance[] array with their user_ids -->
  <% @initiative.users.each do |user| %>
      <% if user.privilege == 2 %>
          <h2 class="enrol"><%= user.name %></h2>
          <%= check_box_tag('attendance[]', user.id) %>
      <% end %>
  <% end %>
  <%= submit_tag "Submit", class: "btn btn-default enrol-btn" %>
<% end %>

<%= form_for @attendance do %>

  <!-- Send the meeting_id as a hidden field -->
  <%= hidden_field_tag(:meeting_id, Meeting.find(params[:id]).id) %>

  <!-- Create a check box object for each user enrolled in the inititative, -->
  <!--   populate attendance[] array with their user_ids -->
  <% @initiative.users.each do |user| %>
        <% if user.privilege == 2 || user.privilege == 1 %>
            <h2 class="enrol"><%= user.known_as %></h2>
          <%= check_box_tag('attendance[]', user.id) %>
      <% end %>
  <% end %>
  <%= submit_tag "Submit", class: "btn btn-default enrol-btn" %>
<% end %>

Allow volunteers to be included in attendance taking.
Allow volunteers to be included in attendance taking.
