<div class="card-body">
<%= form_with(model: email_message, url: '/home/register_contact', method: :post, remote: true, id: 'contact_form_form') do |form| %>
<div id="email_mess_div">
  <%= render '/shared/errors_list', error_object: email_message %>
</div>
<div class="form-group">
  <%= form.label :subject %>
  <%= form.text_field :subject, class: 'form-control', placeholder: 'Podaj temat' %>
</div>
<div class="form-group">
   <%= form.label :email %>
   <%= form.email_field :email, class: 'form-control', placeholder: 'Wprowadź email' %>
</div>
<div class="form-group">
   <%= form.label :message %>
   <%= form.text_area :message, class: 'form-control', placeholder: 'Wprowadź treść wiadomości' %>
</div>
</div>
<div class="card-footer">
  <button type="submit" class="btn btn-primary">Wyślij</button>
</div>
<% end %>
