Sha256: 3179294dbb602d6547010d90d7b6438f69daacb266ea9e3e7f4984b54220cbf5

Contents?: true

Size: 1.71 KB

Versions: 2

Compression:

Stored size: 1.71 KB

Contents

<%= provide(:page_title, "Clientes") %>
  <div class="row-fluid">
    <%= 
      link_to( 
        content_tag(:div,
          content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, t("client.new"), nil), 
          :class => "btn btn-box span2"), 
        new_client_path,
        :id => "new-client-button"
      )
    %>
  </div>

<div class="row-fluid">
  <div class="widget widget-padding span12">
    <div class="widget-header">
          <i class="icon-truck"></i>
          <h5>Clientes</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>
            <% @clients.each do |client| %>
            <tr>
              <td><%= link_to client.name, client_path(client) %></td>
                <td>
                  <%= link_to content_tag(:i, nil, :class => 'icon-pencil'), edit_client_path(client), :title => t("action.edit") %>
                  <%= link_to content_tag(:i, nil, :class => 'icon-remove'), client_path(client), 
                    :title => t("action.delete"),
                    :id => "client-delete",
                    :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

2 entries across 2 versions & 1 rubygems

Version Path
adminpanel-0.1.0cl.2 app/views/adminpanel/clients/index.html.erb
adminpanel-0.1.0cl app/views/adminpanel/clients/index.html.erb