<%- model_class = CStavPodujatium.new.class -%>
<div class="page-header">
  <h1>Zoznam stavov podujatia</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Stav) %></th> -->
      <th><%= model_class.human_attribute_name(:Nazov) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @c_stav_podujatia.each do |c_stav_podujatium| %>
      <tr>
<!--        <td><#%= link_to c_stav_podujatium.id, c_stav_podujatium_path(c_stav_podujatium) %></td> -->
<!--        <td><#%= c_stav_podujatium.ID_Stav %></td> -->
        <td><%= c_stav_podujatium.Nazov %></td>
<!--        <td><#%=l c_stav_podujatium.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_c_stav_podujatium_path(c_stav_podujatium), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      c_stav_podujatium_path(c_stav_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_c_stav_podujatium_path,
            :class => 'btn btn-primary' %>
