<table class="points_interest_table table-content-crud table table-hover table-striped">
  <thead>
    <tr>
      <th class="options"></th>
      <th class="options"></th>
      <th><%= _("Name") %></th>
      <th><%= _("Description") %></th>
    </tr>
  </thead>
  <tbody>
    <% @points_interests.each do |point| %>
      <tr>
        <td>
          <%= link_to '<i class="icon icon-trash"></i>'.html_safe, destroy_points_interest_path(@group, point) + '?' + request.query_parameters.to_query, remote: true, method: :delete, data: { confirm: _("Are you sure?") }, class: "icon-opt button-delete" if current_user.user_admin %>
        </td>
        <td>
          <%= link_to '<i class="icon icon-pencil"></i>'.html_safe, edit_points_interest_path(@group, point) + '?' + request.query_parameters.to_query, remote: true, method: :get, class: "icon-opt button-edit" if current_user.user_admin %>
        </td>
        <td><%= point.name %></td>
        <td><%= point.description %></td>
      </tr>
    <% end %>
  </tbody>
  <tfoot>
  <tr>
    <td colspan="100%" style="padding-top: 10px;">
      <div class="row" style="max-height: 40px;padding-top: 1px;">
        <div class="col-md-6" style="display: flex">
          <%= paginate @points_interests, :remote => true %>
        </div>
        <div class="col-md-6" align="right">
          <%= t("count") %>: <%= @points_interests.count %> &nbsp;&nbsp;&nbsp;
        </div>
      </div>
    </td>
  </tr>
  </tfoot>
</table>
