<%- model_class = Klienti.new.class -%>
<div class="page-header">
  <h1>Zoznam klientov</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
 <!--     <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Klient) %></th> -->
      <th><%= model_class.human_attribute_name(:Meno) %></th>
      <th><%= model_class.human_attribute_name(:Priezvisko) %></th>
      <th><%= model_class.human_attribute_name(:Titul) %></th>
      <th><%= model_class.human_attribute_name(:Nazov_Zdruzenie) %></th>
      <th><%= model_class.human_attribute_name(:Zivotopis) %></th>
      <th><%= model_class.human_attribute_name(:Ulica) %></th>
      <th><%= model_class.human_attribute_name(:Mesto) %></th>
      <th><%= model_class.human_attribute_name(:PSC) %></th>
      <th><%= model_class.human_attribute_name(:Stat) %></th>
      <th><%= model_class.human_attribute_name(:Telefon) %></th>
      <th><%= model_class.human_attribute_name(:Email) %></th>
      <th><%= model_class.human_attribute_name(:Cislo_Bank_Uctu) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @klientis.each do |klienti| %>
      <tr>
<!--        <td><#%= link_to klienti.id, klienti_path(klienti) %></td> -->
<!--        <td><#%= klienti.ID_Klient %></td> -->
        <td><%= klienti.Meno %></td>
        <td><%= klienti.Priezvisko %></td>
        <td><%= klienti.Titul %></td>
        <td><%= klienti.Nazov_Zdruzenie %></td>
        <td><%= klienti.Zivotopis %></td>
        <td><%= klienti.Ulica %></td>
        <td><%= klienti.Mesto %></td>
        <td><%= klienti.PSC %></td>
        <td><%= klienti.Stat %></td>
        <td><%= klienti.Telefon %></td>
        <td><%= klienti.Email %></td>
        <td><%= klienti.Cislo_Bank_Uctu %></td>
<!--        <td><#%=l klienti.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_klienti_path(klienti), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      klienti_path(klienti),
                      :method => :delete,
                      :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Ste si istý')),
                      :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'Nový',
            new_klienti_path,
            :class => 'btn btn-primary' %>
