Sha256: 7ada05ceb1b2ebc559fa318d4f46af0978e5fcf85e05a2104fa1818676893bd7
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
<% content_for :header do %> <div class="main-header--buttons"> <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i> #{ t(:new).capitalize } #{ t(:category).capitalize }".html_safe, new_structure_category_path, class: 'main-header--link b-btn b-btn-primary' %> </div> <h3><%= @structure.name.capitalize %> <%= t(:category).capitalize.pluralize %></h3> <% end %> <% content_for :content do %> <div class="main-table--container"> <table class="standard-form--container"> <thead class="standard-form--header"> <tr> <th style="width: 70%;"><%= t(:category).capitalize.pluralize %></th> <th style="width: 30%;"></th> </tr> </thead> <tbody> <% @categories.order( :position, :name ).each do |category| %> <tr class="main-table--hover" id="category_<%= category.id %>"> <td><%= link_to category.name, structure_category_path( @structure.slug, category) %></td> <td class="main-table--actions"> <%= link_to "<i class=\"fas fa-pencil-alt\"></i> Edit".html_safe, edit_structure_category_path( @structure.slug, category) %> <%= link_to "<i class=\"far fa-trash-alt\"></i> Destroy".html_safe, structure_category_path( @structure.slug, category ), method: :delete, data: { confirm: 'Are you sure?' }, class: 'text-destroy' %> </td> </tr> <% end %> <tbody> </table> <div class="b-btn--container"> <%= link_to "<i class=\"fa fa-plus\" aria-hidden=\"true\"></i>New #{ t(:category).capitalize }".html_safe, new_structure_category_path, class: 'main-header--link b-btn b-btn-primary' %> </div> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
binda-0.1.3 | app/views/binda/categories/index.html.erb |
binda-0.1.2 | app/views/binda/categories/index.html.erb |
binda-0.1.1 | app/views/binda/categories/index.html.erb |