Sha256: 2ceefa2b3741f1f84d4ab9c06f009b437718140dafa0de9a48dda1e5c2312f49

Contents?: true

Size: 1.79 KB

Versions: 5

Compression:

Stored size: 1.79 KB

Contents

<%= provide(:page_title, "Categorias") %>
<% #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 Categoria', nil), 
          :class => "btn btn-box span2"), 
        new_category_path
      )
    %>
  </div>
<% #end %>

<div class="row-fluid">
  <div class="widget widget-padding span12">
    <div class="widget-header">
          <i class="icon-truck"></i>
          <h5>Categorías</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>
              <% #if can? :manage, Client %>
                <th>Acción</th>
              <% #end %>
            </tr>
          </thead>
          <tbody>
            <% @categories.each do |category| %>
            <tr>
              <td><%= category.name %></td>
              <% #if can? :manage, category %>
                <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_path(category), :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

Version Path
adminpanel-0.0.5 app/views/adminpanel/categories/index.html.erb
adminpanel-0.0.4 app/views/adminpanel/categories/index.html.erb
adminpanel-0.0.3 app/views/adminpanel/categories/index.html.erb
adminpanel-0.0.2 app/views/adminpanel/categories/index.html.erb
adminpanel-0.0.1 app/views/adminpanel/categories/index.html.erb