<%= form_for @galeria_fotky, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
<!--    <#%= f.label :ID_Obrazok, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.number_field :ID_Obrazok, :class => 'number_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 :Datum_Vlozenia, :class => 'control-label' %>
    <div class="controls">
      <%= f.date_select :Datum_Vlozenia, :class => 'date_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Nazov_Suboru, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Nazov_Suboru, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :ID_Firma, :class => 'control-label' %>
    <div class="controls">
		<%= select("firmy", "ID_Firma", Firmy.all.map {|p| [ p.Nazov, p.ID_Firma ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :ID_Klient, :class => 'control-label' %>
    <div class="controls">
		<%= select("klienti", "ID_Klient", Klienti.all.map {|p| [ p.Meno + ' ' + p.Priezvisko, p.ID_Klient ] }, { :include_blank => true }) %>

    </div>
  </div>
  <div class="control-group">
    <%= f.label :ID_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")),
                galeria_fotkies_path, :class => 'btn' %>
  </div>
<% end %>
