<%= form_for @sponzorske_dary, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
<!--    <#%= f.label :ID_Dar, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.number_field :ID_Dar, :class => 'number_field' %> -->
    </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 :Suma, :class => 'control-label' %>
    <div class="controls">
      <%= f.number_field :Suma, :class => 'number_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Stav daru', :class => 'control-label' %>
    <div class="controls">
		<%= select("sponzorske_dary", "ID_Stav_Dar", SponzorskeDary.all.map {|p| [ p.Nazov, p.ID_Stav_Dar ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Názov podujatia', :class => 'control-label' %>
    <div class="controls">
		<%= select("sponzorske_dary", "ID_Podujatie", Podujatium.all.map {|p| [ p.Nazov, p.ID_Podujatie] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Názov firmy', :class => 'control-label' %>
    <div class="controls">
		<%= select("sponzorske_dary", "ID_Firma", Firmy.all.map {|p| [ p.Nazov, p.ID_Firma ] }, { :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")),
                sponzorske_daries_path, :class => 'btn' %>
  </div>
<% end %>
