<%=
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
)
%>
<%= t("category.name") %> |
<%= t("actions") %> |
<% categories.each do |category| %>
<%= link_to category.name, category_path(category) %> |
<%= 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}?"} %>
|
<% end %>