Sha256: b646e35df04109f790a091aed4a2c6bb7d15f653dfdbdc5281c02bd954c7409b

Contents?: true

Size: 1.77 KB

Versions: 8

Compression:

Stored size: 1.77 KB

Contents

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

<div class="row-fluid">
  <div class="widget widget-padding span12">
    <div class="widget-header">
          <i class="icon-user"></i>
          <h5>Usuarios</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>
            <% @users.each do |user| %>
            <tr>
              <td><%= link_to user.name, user_path(user) %></td>
              <% #if can? :manage, user %>
                <td>
                  <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_user_path(user), :title => "Editar"%>
                  <%= link_to content_tag(:i, nil, :class => 'icon-remove'), user_path(user), :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

8 entries across 8 versions & 1 rubygems

Version Path
adminpanel-0.0.7 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.6.1 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.6 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.5 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.4 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.3 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.2 app/views/adminpanel/users/index.html.erb
adminpanel-0.0.1 app/views/adminpanel/users/index.html.erb