<%- model_class = Podujatium.new.class -%>
<div class="page-header">
  <h1>Zoznam podujatí</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Podujatie) %></th> -->
      <th><%= model_class.human_attribute_name(:Nazov) %></th>
      <th><%= model_class.human_attribute_name(:Popis) %></th>
      <th><%= model_class.human_attribute_name(:Miesto) %></th>
      <th><%= model_class.human_attribute_name(:Datum_Od) %></th>
      <th><%= model_class.human_attribute_name(:Datum_Do) %></th>
      <th><%= model_class.human_attribute_name(:Cas_Harmonogram) %></th>
      <th><%= model_class.human_attribute_name(:Cennik) %></th>
      <th><%= model_class.human_attribute_name(:Zhodnotenie) %></th>
      <th><%= model_class.human_attribute_name(:ID_Stav_Vstup) %></th>
      <th><%= model_class.human_attribute_name(:ID_Stav_Podujatie) %></th>
<!--       <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--       <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @podujatia.each do |podujatium| %>
      <tr>
<!--        <td><#%= link_to podujatium.id, podujatium_path(podujatium) %></td> -->
<!--        <td><#%= podujatium.ID_Podujatie %></td> -->
        <td><%= podujatium.Nazov %></td>
        <td><%= podujatium.Popis %></td>
        <td><%= podujatium.Miesto %></td>
        <td><%= podujatium.Datum_Od %></td>
        <td><%= podujatium.Datum_Do %></td>
        <td><%= podujatium.Cas_Harmonogram %></td>
        <td><%= podujatium.Cennik %></td>
        <td><%= podujatium.Zhodnotenie %></td>
        <td><%= podujatium.c_stav_vstup.Nazov %></td>
        <td><%= podujatium.c_stav_podujatia.Nazov %></td>
<!--        <td><#%=l podujatium.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_podujatium_path(podujatium), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      podujatium_path(podujatium),
                      :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_podujatium_path,
            :class => 'btn btn-primary' %>
