<%- model_class = GaleriaFotky.new.class -%>
<div class="page-header">
  <h1>Zoznam fotiek/obrázkov</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Obrazok) %></th> -->
      <th><%= model_class.human_attribute_name(:Popis) %></th>
      <th><%= model_class.human_attribute_name(:Datum_Vlozenia) %></th>
      <th><%= model_class.human_attribute_name(:Nazov_Suboru) %></th>
      <th><%= model_class.human_attribute_name(:ID_Firma) %></th>
      <th><%= model_class.human_attribute_name(:ID_Klient) %></th>
      <th><%= model_class.human_attribute_name(:ID_Podujatie) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @galeria_fotkies.each do |galeria_fotky| %>
      <tr>
<!--        <td><#%= link_to galeria_fotky.id, galeria_fotky_path(galeria_fotky) %></td> -->
<!--        <td><#%= galeria_fotky.ID_Obrazok %></td> -->
        <td><%= galeria_fotky.Popis %></td>
        <td><%= galeria_fotky.Datum_Vlozenia %></td>
        <td><%= galeria_fotky.Nazov_Suboru %></td>
        <td><%= galeria_fotky.ID_Firma %></td>
        <td><%= galeria_fotky.ID_Klient %></td>
        <td><%= galeria_fotky.ID_Podujatie %></td>
<!--        <td><#%=l galeria_fotky.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_galeria_fotky_path(galeria_fotky), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      galeria_fotky_path(galeria_fotky),
                      :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_galeria_fotky_path,
            :class => 'btn btn-primary' %>
