<%= form_for @zamestnanci, :html => { :class => 'form-horizontal' } do |f| %>
  <div class="control-group">
<!--    <#%= f.label :ID_Zam, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.number_field :ID_Zam, :class => 'number_field' %> -->
    </div>
  </div>
<fieldset>
	<legend>Zadajte údaje o užívateľovi</legend>
	
  <div>
	<% @zamestnanci.errors.each do |error| %>
	  <%= error %>
	<% end %>
  </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 :Fotka, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Fotka, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Rodne_Cislo, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Rodne_Cislo, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Ulica, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Ulica, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Mesto, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Mesto, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :PSC, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :PSC, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Stat, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Stat, :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 :Cislo_Bank_Uctu, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Cislo_Bank_Uctu, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :Login_IS_Ucet, :class => 'control-label' %>
    <div class="controls">
      <%= f.text_field :Login_IS_Ucet, :class => 'text_field' %>
    </div>
  </div>
  <div class="control-group">
    <%= f.label :password, 'Heslo', :class => 'control-label' %>
    <div class="controls">
      <%= f.password_field :password, :class => 'text_field' %>
    </div>
  </div>

  <div class="control-group">
    <%= f.label :password_potvrdenie, 'Potvrdenie',  :class => 'control-label' %>
    <div class="controls">
      <%= f.password_field :password_potvrdenie, :class => 'text_field'%>
    </div>

  </div>
  <div class="control-group">
<!--    <#%= f.label :Sol_Heslo, :class => 'control-label' %> -->
    <div class="controls">
<!--      <#%= f.text_field :Sol_Heslo, :class => 'text_field' %> -->
    </div>
  </div>

  <div class="form-actions">
    <%= f.submit 'Uložiť', :class => 'btn btn-primary' %>
    <%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                zamestnancis_path, :class => 'btn' %>
  </div>
</fieldset>
<% end %>
