<%= form_for @cinnosti, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">

    <div class="controls">

    </div>
  </div>
  <div class="control-group">
    <%= f.label :Popis, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_area :Popis, :class => 'text_area' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Datum_Od, :class => 'control-label' %>
    <div class="controls">
      <%= f.date_select :Datum_Od, :class => 'date_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Datum_Do, :class => 'control-label' %>
    <div class="controls">
      <%= f.date_select :Datum_Do, :class => 'date_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Zhodnotenie, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_area :Zhodnotenie, :class => 'text_area' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Typ činnosti', :class => 'control-label' %>
    <div class="controls">
	<%= select("cinnosti", "ID_Typ_Cinnosti", CTypCinnosti.all.map {|p| [ p.Nazov, p.ID_Typ_Cinnosti ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Stav činnosti', :class => 'control-label' %>
    <div class="controls">
		<%= select("cinnosti", "ID_Stav_Cinnosti", CStavCinnosti.all.map {|p| [ p.Nazov, p.ID_Stav_Cinnosti ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Podujatie', :class => 'control-label' %>
    <div class="controls">
		<%= select("cinnosti", "ID_Podujatie", Podujatium.all.map {|p| [ p.Nazov, p.ID_Podujatie ] }, { :include_blank => true }) %>
    </div>
  </div>

  <div class="form-actions">
    <%= f.submit 'Uložiť', :class => 'btn btn-primary' %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                cinnostis_path, :class => 'btn' %>
  </div>
<% end %>
