<%= form_with(model: [:admin, course]) do |form| %>
  <% if course.errors.any? %>
    <%= error_messages(course) %>
  <% end %>
  <div class="form-row">
    <div class="form-group col-md-6">
      <%= form.label :name %>
      <%= form.text_field :name, class: 'form-control' %>
    </div>

    <div class="form-group col-md-6">
      <%= form.label :description %>
      <%= form.text_area :description, class: 'form-control' %>
    </div>
  </div>
  <%= form.submit 'Zapisz', class: 'btn btn-primary' %>
<% end %>
