<%= form_for(@job_application, remote: true, format: :json) do |f| %>
  <% if @job_application.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@job_application.errors.count, "error") %> prohibited this job_application from being saved:</h2>

      <ul>
      <% @job_application.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :date_sent %><br>
    <%= f.date_select :date_sent %>
  </div>
  <div class="field">
    <%= f.label :cover_letter %><br>
    <%= f.text_area :cover_letter %>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

<%= form_for(@job_application, remote: true, format: :json) do |f| %>
  <% if @job_application.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@job_application.errors.count, "error") %> prohibited this job_application from being saved:</h2>

      <ul>
      <% @job_application.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= f.label :date_sent %>
    <%= date_field(:job_application, :date_sent) %>
  </div>

  <div>
    <%= f.label :cover_letter %>
    <%= f.text_area :cover_letter %>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>

<% end %>

Clean up display of application form in modal window.
Clean up display of application form in modal window.
