Sha256: e3e58c955d15007a29ea512af747bc3b9a6218fd90cc238197e2a3b97983a643
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
<% content_for :header do %> <div class="main-header--buttons"> <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i> New Structure".html_safe, new_structure_path, class: 'main-header--link b-btn b-btn-primary' %> <%= get_structures_sort_index_link %> </div> <p class="main-header--title">Structures</p> <% end %> <% content_for :content do %> <div class="main-table--container"> <table class="standard-form--container"> <thead class="standard-form--header"> <tr> <th>Structures</th> <th style="width: 30%"></th> </tr> </thead> <tbody> <% @structures.order( :name ).each do |structure| %> <tr class="main-table--hover" id="structure_<%= structure.id %>"> <td><%= link_to structure.name, structure_path(structure) %></td> <td class="main-table--actions"> <%= link_to "<i class=\"fas fa-pencil-alt\"></i> Edit".html_safe, edit_structure_path(structure) %> <%= link_to "<i class=\"far fa-trash-alt\"></i> Destroy".html_safe, structure, method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-destroy' %> </td> </tr> <% end %> <tbody> </table> <div class="b-btn--container"> <%= paginate @structures %> <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i> New Structure".html_safe, new_structure_path, class: 'main-header--link b-btn b-btn-primary' %> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
binda-0.1.3 | app/views/binda/structures/index.html.erb |
binda-0.1.2 | app/views/binda/structures/index.html.erb |