<div class="box box-primary">
  <div class="box-header with-border">
    <h3 class="box-title">Zmiana danych</h3>
  </div>
  <%= form_tag({controller: '/admin/home', action: :change_pass}) do %>
    <div class="box-body">
      <% if @admin.errors.any? %>
        <%= raw errors_to_html(@admin.errors) %>
      <% end %>
      <div class="form-group">
        <label>Opis</label>
        <%= text_field :admin, :description, class: "form-control", placeholder: 'Opis' %>
      </div>
      <div class="form-group">
        <label>Nowe Hasło</label>
        <%= password_field :admin, :password, class: "form-control", placeholder: 'Nowe Hasło' %>
      </div>
      <div class="form-group">
        <label>Powrtórz Nowe Hasło</label>
        <%= password_field :admin, :password_confirmation, class: "form-control", placeholder: 'Powtórz Nowe Hasło' %>
      </div>
    </div>
    <div class="box-footer">
      <button type="submit" class="btn btn-primary">Zapisz</button>
    </div>
  <% end %>
</div>
