<%= form_for @kontaktne_osoby, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
<!--    <#%= f.label :ID_Kontakt, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.number_field :ID_Kontakt, :class => 'number_field' %> -->
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Meno, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Meno, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Priezvisko, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Priezvisko, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Titul, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Titul, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Telefon, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Telefon, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Email, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Email, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Poznamka, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Poznamka, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label 'Názov firmy', :class => 'control-label' %>
    <div class="controls">
		<%= select("kontaktne_osoby", "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")),
                kontaktne_osobies_path, :class => 'btn' %>
  </div>
<% end %>
