<%- model_class = CStavCinnosti.new.class -%>
<div class="page-header">
  <h1>Zoznam stavov činností</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_Cinnosti) %></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_cinnostis.each do |c_stav_cinnosti| %>
      <tr>
<!--        <td><#%= link_to c_stav_cinnosti.id, c_stav_cinnosti_path(c_stav_cinnosti) %></td> -->
<!--        <td><#%= c_stav_cinnosti.ID_Stav_Cinnosti %></td> -->
        <td><%= c_stav_cinnosti.Nazov %></td>
<!--        <td><#%=l c_stav_cinnosti.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_c_stav_cinnosti_path(c_stav_cinnosti), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      c_stav_cinnosti_path(c_stav_cinnosti),
                      :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_cinnosti_path,
            :class => 'btn btn-primary' %>
