<%= form_for @evidencia_zmluv, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
<!--    <#%= f.label :ID_Zmluva, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.number_field :ID_Zmluva, :class => 'number_field' %> -->
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Dátum OD', :class => 'control-label' %>
    <div class="controls">
      <%= f.date_select :Datum_Od, :class => 'date_select' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Dátum DO', :class => 'control-label' %>
    <div class="controls">
      <%= f.date_select :Datum_Do, :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 :Umiestnenie, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Umiestnenie, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Firma', :class => 'control-label' %>
    <div class="controls">
		<%= select("evidencia_zmluv", "ID_Firma", Firmy.all.map {|p| [ p.Nazov, p.ID_Firma ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Zamestnanec', :class => 'control-label' %>
    <div class="controls">
		<%= select("evidencia_zmluv", "ID_Zam", Zamestnanci.all.map {|p| [ p.Meno + ' ' + p.Priezvisko, p.ID_Zam ] }, { :include_blank => true }) %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Klient', :class => 'control-label' %>
    <div class="controls">
		<%= select("evidencia_zmluv", "ID_Klient", Klienti.all.map {|p| [ p.Meno + ' ' + p.Priezvisko, p.ID_Klient ] }, { :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")),
                evidencia_zmluvs_path, :class => 'btn' %>
  </div>
<% end %>
