Sha256: 3c4fa4dfe764c07c396a7b5293eeaa22c5c2d3456028ed13915372940646f7b7

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

<div class="row-fluid">
  <%=
    link_to(
      content_tag(:div,
        content_tag(
          :i,
          nil,
          :class => 'fa fa-plus-circle fa-2x') +
          content_tag(
            :span,
            I18n.t("action.create", resource: @model.display_name) + " para #{model}",
            nil
          ),
          :class => "btn btn-box span2"),
      {
        :controller => params[:controller],
        :action => "new",
        :"model" => model,
        :currentcontroller => params[:controller]
      },
      :"data-target" => '#new-category',
      :"data-toggle" => 'modal',
      :remote => true
    )
  %>
</div>

<br/>

<table id="<%= model %>-table" class="table table-striped table-bordered">
  <tr>
   <th><%= t("category.name") %></th>
   <th><%= t("actions") %></th>
  </tr>
  <% categories.each do |category| %>
    <tr>
      <td><%= link_to category.name, category_path(category) %></td>
      <td>
        <%= render 'adminpanel/icons/show', resource: category %>

        <%= render 'adminpanel/icons/edit', resource: category %>

        <%= render 'adminpanel/icons/delete', resource: category %>
      </td>
    </tr>
  <% end %>

</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.4.3 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-2.4.2 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-2.4.1 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-2.4.0 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-2.3.1 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-2.3.0 app/views/adminpanel/categories/_categories_table.html.erb