Sha256: 1c245a4ef996905a94b63d76ef4ad855d60b661758f9418c32db796e7099d8d9
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 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} de #{model}", nil ), :class => "btn btn-box span2"), { :controller => params[:controller], :action => "new", :"model" => model }, :"data-target" => '#example_modal', :"data-toggle" => 'modal', :remote => true ) %> </div> <br/> <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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-1.2.5 | app/views/adminpanel/categories/_categories_table.html.erb |