<%= form_with(model: expert, local: true) do |form| %>
<%= render '/shared/errors_list', error_object: expert %>
<div class="form-group">
  <%= form.label :name %>
  <%= form.text_field :name, class: 'form-control', placeholder: 'Wprowadź nazwę' %>
</div>
 <div class="form-group">
   <%= form.label :description %>
   <%= form.text_area :description, class: 'form-control', placeholder: 'Wprowadź opis' %>
</div>

<div class="form-group">
  <div class="custom-file">
    <%= form.label :avatar %>
    <%= form.file_field :avatar, class: 'custom-file input' %>
  </div>
</div>

<div class="card-footer">
  <%= link_to '< Wróć', experts_path, class: 'btn btn-info' %>
  <button type="submit" class="btn btn-primary">Zapisz</button>
</div>
<% end %>
