<%- model_class = CStavVstupeniek.new.class -%>
<div class="page-header">
  <h1>Zoznam stavov vstupeniek</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_vstupenieks.each do |c_stav_vstupeniek| %>
      <tr>
<!--        <td><#%= link_to c_stav_vstupeniek.id, c_stav_vstupeniek_path(c_stav_vstupeniek) %></td> -->
<!--        <td><#%= c_stav_vstupeniek.ID_Stav %></td> -->
        <td><%= c_stav_vstupeniek.Nazov %></td>
<!--        <td><#%=l c_stav_vstupeniek.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_c_stav_vstupeniek_path(c_stav_vstupeniek), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      c_stav_vstupeniek_path(c_stav_vstupeniek),
                      :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_vstupeniek_path,
            :class => 'btn btn-primary' %>
