Sha256: 61162764e63645128d47a553c1a14b41f108379dccb959a6a6aab4a9ac7f8756

Contents?: true

Size: 1.89 KB

Versions: 8

Compression:

Stored size: 1.89 KB

Contents

<% content_for :title do %>
  <%= t('binda.structure.plural') %>
<% end %>


<% content_for :header do %>
  <div class="main-header--buttons">
    <a href="<%= new_structure_path %>"
      class="main-header--link b-btn b-btn-primary">
      <i class="fa fa-plus" aria-hidden="true"></i>
      <%= t('binda.new_structure') %>
    </a>
    <%= get_structures_sort_index_link %>
  </div>
  <p class="main-header--title">
    <%= t('binda.structure.plural') %>
  </p>
<% end %>


<% content_for :content do %>
  <div class="main-table--container">
    <table class="standard-form--container">
      <thead class="standard-form--header">
        <tr>
          <th colspan="7"><%= t('binda.structure.plural') %></th>
          <th colspan="3"></th>
        </tr>
      </thead>
      <tbody>
        <% @structures.order( :name ).each do |structure| %>
          <tr class="main-table--hover" id="structure_<%= structure.id %>">

            <td colspan="7"><%= link_to structure.name, structure_path(structure) %></td>
            <td colspan="3" class="main-table--actions">
              <a href="<%= edit_structure_path(structure) %>">
                <i class="fas fa-pencil-alt"></i>
                <%= t('binda.edit') %>
              </a>
              <a href="<%= structure_path(structure) %>"
                class="text-destroy"
                data-method="delete"
                data-confirm="<%= t('binda.structure.confirm_delete') %>">
                <i class="far fa-trash-alt"></i>
                <%= t('binda.delete') %>
              </a>
            </td>
          </tr>
        <% end %>
      <tbody>
    </table>
    <div class="b-btn--container">
      <%= paginate @structures %>
      <a href="<%= new_structure_path %>"
        class="main-header--link b-btn b-btn-primary">
        <i class="fa fa-plus" aria-hidden="true"></i>
        <%= t('binda.new_structure') %>
      </a>
    </div>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
binda-0.1.11 app/views/binda/structures/index.html.erb
binda-0.1.10 app/views/binda/structures/index.html.erb
binda-0.1.9 app/views/binda/structures/index.html.erb
binda-0.1.8 app/views/binda/structures/index.html.erb
binda-0.1.7 app/views/binda/structures/index.html.erb
binda-0.1.6 app/views/binda/structures/index.html.erb
binda-0.1.5 app/views/binda/structures/index.html.erb
binda-0.1.4 app/views/binda/structures/index.html.erb