<%- model_class = Firmy.new.class -%>
<div class="page-header">
  <h1>Zoznam firiem</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
 <!--     <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Firma) %></th> -->
      <th><%= model_class.human_attribute_name(:Nazov) %></th>
      <th><%= model_class.human_attribute_name(:Sidlo) %></th>
      <th><%= model_class.human_attribute_name(:Stat) %></th>
      <th><%= model_class.human_attribute_name(:ICO) %></th>
      <th><%= model_class.human_attribute_name(:Telefon) %></th>
      <th><%= model_class.human_attribute_name(:Email) %></th>
      <th><%= model_class.human_attribute_name(:Prezentacia) %></th>
      <th><%= model_class.human_attribute_name(:Poznamka) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @firmies.each do |firmy| %>
      <tr>
<!--        <td><#%= link_to firmy.id, firmy_path(firmy) %></td> -->
<!--        <td><#%= firmy.ID_Firma %></td> -->
        <td><%= firmy.Nazov %></td>
        <td><%= firmy.Sidlo %></td>
        <td><%= firmy.Stat %></td>
        <td><%= firmy.ICO %></td>
        <td><%= firmy.Telefon %></td>
        <td><%= firmy.Email %></td>
        <td><%= firmy.Prezentacia %></td>
        <td><%= firmy.Poznamka %></td>
<!--        <td><#%=l firmy.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_firmy_path(firmy), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      firmy_path(firmy),
                      :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_firmy_path,
            :class => 'btn btn-primary' %>
