rubyforgood/casa

View on GitHub
app/views/emancipation_checklists/index.html.erb

Summary

Maintainability
Test Coverage
<div class="pt-30">
  <div class="row">
    <div class="col-md-6">
      <div class="mb-30">
        <h1>Emancipation Checklists</h1>
      </div>
    </div>
  </div>
</div>

<!-- ========== tables-wrapper start ========== -->
<div class="tables-wrapper">
  <div class="row">
    <div class="col-lg-12">
      <div class="card-style mb-30">
        <div class="table-wrapper table-responsive">
          <table class="table" id="all-case-emancipations">
            <thead>
            <tr>
              <th><h6>Case Number</h6></th>
              <th><h6>Checklist</h6></th>
            </tr>
            <!-- end table row-->
            </thead>
            <tbody>
            <% @casa_transitioning_cases.each do |casa_case| %>
              <tr class="<%= casa_case.decorate.inactive_class %>">
                <td><%= link_to(casa_case.case_number, casa_case, title: "Details") %></td>
                <td><%= link_to "Checklist", casa_case_emancipation_path(casa_case) %></td>
              </tr>
            <% end %>
            </tbody>
          </table>
          <!-- end table -->
        </div>
      </div>
      <!-- end card -->
    </div>
    <!-- end col -->
  </div>
</div>