Sha256: abb42315a31a28b2cc3fbc98098d7300d8c8ee1753c170eaf4ff04c1aaec0aed
Contents?: true
Size: 1.71 KB
Versions: 4
Compression:
Stored size: 1.71 KB
Contents
<%= provide(:page_title, "Productos") %> <div class="row-fluid"> <%= link_to( content_tag(:div, content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, t("product.new"), nil), :class => "btn btn-box span2"), new_product_path ) %> </div> <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> <th>Acción</th> </tr> </thead> <tbody> <% @products.each do |product| %> <tr> <td><%= link_to product.name, product_path(product) %></td> <td><%= strip_tags product.description %></td> <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> </tr> <% end %> </tbody> </table> <div class="row-fluid"> <div class="span6"></div> <div class="span6"></div> </div> </div> </div> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems