<% provide(:page_header, 'Incurred Incidentals') %>

<table class="table table-striped table-bordered table-hover">
  <tr>
    <th>Rental Item Type</th>
    <th>Rental Start Date</th>
    <th>Rental End Date</th>
    <th>Incidental Type Name</th>
    <th class="min-width">Actions</th>
  </tr>
  <% @incurred_incidentals.each do |incurred_incidental| %>
    <tr>
      <td><%= incurred_incidental.rental.str_item_types %></td>
      <td><%= incurred_incidental.rental.start_date.to_date %></td>
      <td><%= incurred_incidental.rental.end_date.to_date %></td>
      <td><%= incurred_incidental.incidental_type.name %></td>
      <td class="min-width">
        <%= link_to (content_tag(:span, nil, class: "glyphicon glyphicon-eye-open")+" View"), incurred_incidental, class: "btn btn-xs btn-success" %>
        <%= link_to (content_tag(:span, nil, class: "glyphicon glyphicon-edit")+" Edit"), edit_incurred_incidental_path(incurred_incidental), class: "btn btn-xs btn-primary" %>
      </td>
    </tr>
  <% end %>
</table>

<% provide(:page_header, 'Incurred Incidentals') %>

<table class="table table-striped table-bordered table-hover">
  <tr>
    <th>Rental Item Type</th>
    <th>Rental Start Date</th>
    <th>Rental End Date</th>
    <th>Incidental Type Name</th>
    <th class="min-width">Actions</th>
  </tr>
  <% @incurred_incidentals.each do |incurred_incidental| %>
    <tr>
      <td><%= incurred_incidental.rental.item_type.name %></td>
      <td><%= incurred_incidental.rental.start_date.to_date %></td>
      <td><%= incurred_incidental.rental.end_date.to_date %></td>
      <td><%= incurred_incidental.incidental_type.name %></td>
      <td class="min-width">
        <%= link_to (content_tag(:span, nil, class: "glyphicon glyphicon-eye-open")+" View"), incurred_incidental, class: "btn btn-xs btn-success" %>
        <%= link_to (content_tag(:span, nil, class: "glyphicon glyphicon-edit")+" Edit"), edit_incurred_incidental_path(incurred_incidental), class: "btn btn-xs btn-primary" %>
      </td>
    </tr>
  <% end %>
</table>

Rollback change from another PR
Rollback change from another PR
