Sha256: 8387bcf42a366f2c6a0fa11c33193e06930bfa764791e5ce5c23dc790121b345

Contents?: true

Size: 1.53 KB

Versions: 7

Compression:

Stored size: 1.53 KB

Contents

<%= provide(:page_title, t("model.Adminpanel::User")) %>
<div class="row-fluid">
  <%= 
    link_to( 
      content_tag(:div,
        content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, t("user.new"), nil), 
        :class => "btn btn-box span2"), 
      new_user_path
    )
  %>
</div>

<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>
              <th>Acción</th>
            </tr>
          </thead>
          <tbody>
            <% @users.each do |user| %>
            <tr>
              <td><%= link_to user.name, user_path(user) %></td>
                <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>
            </tr>
            <% end %>
          </tbody>
        </table>
        <div class="row-fluid">
          <div class="span6"></div>
          <div class="span6"></div>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adminpanel-1.2.4 app/views/adminpanel/users/index.html.erb
adminpanel-1.2.3 app/views/adminpanel/users/index.html.erb
adminpanel-1.2.2 app/views/adminpanel/users/index.html.erb
adminpanel-1.2.1 app/views/adminpanel/users/index.html.erb
adminpanel-1.2.0 app/views/adminpanel/users/index.html.erb
adminpanel-1.1.0 app/views/adminpanel/users/index.html.erb
adminpanel-1.0.0 app/views/adminpanel/users/index.html.erb