Sha256: 9c18684d8b27f326b13ed7f496b485318565d0f26c06c43dda55a12f8ac02a78

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

<div class="row-fluid">
  <%=
    link_to(
      content_tag(:div,
        content_tag(
          :i,
          nil,
          :class => 'icon-plus-sign icon-2x') +
          content_tag(
            :span,
            I18n.t("action.create") + " #{@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>
        <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_category_path(category), :title => "Editar" %>
        <%= link_to content_tag(:i, nil, :class => 'icon-remove'),
          [category],
          :title => "Editar",
          :method => :delete,
          :data => { :confirm => "Eliminar #{category.name}?"} %>
      </td>
    </tr>
  <% end %>

</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminpanel-1.2.12 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-1.2.11 app/views/adminpanel/categories/_categories_table.html.erb
adminpanel-1.2.10 app/views/adminpanel/categories/_categories_table.html.erb