Sha256: 34a8af012d8b92e173a694624ae7a9459a4cb164458cc81bdcda0e88fba5f989

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

Contents

<div class=o-page>

  <h2 class=text-center>Standards</h2>

  <%= render 'search_form' %>

  <div class=row>
    <div class="col-md-12 o-admin-standards-table">
      <table class="table">
        <tr>
          <th>Name</th>
          <th>Subject</th>
          <th>Grades</th>
          <th>Synonyms</th>
          <th>Action</th>
        </tr>

        <% @standards.each do |std| %>
          <% cache std do %>
            <tr id="std<%= std.id %>">
              <td><b><%= std.name %></b></td>
              <td><%= std.subject %></td>
              <td><%= std.grades.join(', ') %></td>
              <td><%= std.alt_names.join(' / ') %></td>
              <td><%= link_to 'edit', edit_admin_standard_path(std), class: 'button btn o-btn' %></td>
            </tr>
          <% end %>
        <% end %>
      </table>
    </div>
  </div>

  <div class="row">
    <div class='col-sm-12 text-center'>
      <%= will_paginate @standards, renderer: BootstrapPagination::Rails %>
    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lcms-engine-0.4.2 app/views/lcms/engine/admin/standards/index.html.erb
lcms-engine-0.4.1 app/views/lcms/engine/admin/standards/index.html.erb
lcms-engine-0.4.0 app/views/lcms/engine/admin/standards/index.html.erb
lcms-engine-0.3.1 app/views/lcms/engine/admin/standards/index.html.erb
lcms-engine-0.3.0 app/views/lcms/engine/admin/standards/index.html.erb
lcms-engine-0.2.0 app/views/lcms/engine/admin/standards/index.html.erb