<%- model_class = Zamestnanci.new.class -%>
<div class="page-header">
  <h1>Zoznam zamestnancov</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Zam) %></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(:Fotka) %></th>
      <th><%= model_class.human_attribute_name(:Rodne_Cislo) %></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(:Login_IS_Ucet) %></th>-->
<!--       <th><#%= model_class.human_attribute_name(:Heslo_IS_Ucet) %></th>-->
<!--       <th><#%= model_class.human_attribute_name(:Sol_Heslo) %></th>-->
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @zamestnancis.each do |zamestnanci| %>
      <tr>
<!--        <td><#%= link_to zamestnanci.id, zamestnanci_path(zamestnanci) %></td> -->
<!--       <td><#%= zamestnanci.ID_Zam %></td> -->
        <td><%= zamestnanci.Meno %></td>
        <td><%= zamestnanci.Priezvisko %></td>
        <td><%= zamestnanci.Titul %></td>
        <td><%= zamestnanci.Fotka %></td>
        <td><%= zamestnanci.Rodne_Cislo %></td>
        <td><%= zamestnanci.Ulica %></td>
        <td><%= zamestnanci.Mesto %></td>
        <td><%= zamestnanci.PSC %></td>
        <td><%= zamestnanci.Stat %></td>
        <td><%= zamestnanci.Telefon %></td>
        <td><%= zamestnanci.Email %></td>
        <td><%= zamestnanci.Cislo_Bank_Uctu %></td>
<!--        <td><#%= zamestnanci.Login_IS_Ucet %></td>-->
<!--        <td><#%= zamestnanci.Heslo_IS_Ucet %></td>-->
<!--        <td><#%= zamestnanci.Sol_Heslo %></td>-->
<!--        <td><#%=l zamestnanci.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_zamestnanci_path(zamestnanci), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      zamestnanci_path(zamestnanci),
                      :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_zamestnanci_path,
            :class => 'btn btn-primary' %>
