Sha256: d81dd564025294a8d6eb80bb80441d1c238f5f20a4f5b053884d1e5da6838f50
Contents?: true
Size: 1.9 KB
Versions: 5
Compression:
Stored size: 1.9 KB
Contents
<%= provide(:page_title, "Productos") %> <% #if can? :create, Client %> <div class="row-fluid"> <%= link_to( content_tag(:div, content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, 'Agregar Producto', nil), :class => "btn btn-box span2"), new_product_path ) %> </div> <% #end %> <div class="row-fluid"> <div class="widget widget-padding span12"> <div class="widget-header"> <i class="icon-truck"></i> <h5>Productos</h5> </div> <div class="widget-body"> <div class="dataTables_wrapper form-inline"> <table id="information-table" class="table table-striped table-bordered dataTable"> <thead> <tr> <th>Nombre</th> <th>Descripción</th> <% #if can? :manage, Client %> <th>Acción</th> <% #end %> </tr> </thead> <tbody> <% @products.each do |product| %> <tr> <td><%= link_to product.name, product_path(product) %></td> <td><%= strip_tags product.description %></td> <% #if can? :manage, product %> <td> <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_product_path(product), :title => "Editar"%> <%= link_to content_tag(:i, nil, :class => 'icon-remove'), product_path(product), :title => "Borrar", :method => :delete, :data => { :confirm => "Seguro?" } %> </td> <% #end %> </tr> <% end %> </tbody> </table> <div class="row-fluid"> <div class="span6"></div> <div class="span6"></div> </div> </div> </div> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems