<%= form_for @podujatium, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
    <div class="controls">
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Nazov, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Nazov, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Popis, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Popis, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Miesto, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Miesto, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Datum_Od, :class => 'control-label' %>
    <div class="controls">
      <%= f.datetime_select :Datum_Od, :class => 'datetime_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Datum_Do, :class => 'control-label' %>
    <div class="controls">
      <%= f.datetime_select :Datum_Do, :class => 'datetime_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Cas_Harmonogram, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_area :Cas_Harmonogram, :class => "tinymce", :rows => 40, :cols => 120 %>
    </div>
	<%= tinymce %>
  </div>
  <div class="control-group">
    <%= f.label :Cennik, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_area :Cennik, :class => "tinymce", :rows => 40, :cols => 120  %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Zhodnotenie, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Zhodnotenie, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :ID_Stav_Vstup, :class => 'control-label' %>
    <div class="controls">
		<%= select("podujatium", "ID_Stav_Vstup", CStavVstupeniek.all.map {|p| [ p.Nazov, p.ID_Stav ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :ID_Stav_Podujatie, :class => 'control-label' %>
    <div class="controls">
		<%= select("podujatium", "ID_Stav_Podujatie", CStavPodujatium.all.map {|p| [ p.Nazov, p.ID_Stav ] }, { :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")),
                podujatia_path, :class => 'btn' %>
  </div>
<% end %>
