<%= form_for [@student, @goal] do |f| %>
  <fieldset>
    <%= f.label :title %>
    <%= f.text_field :title %>
  </fieldset>

  <fieldset>
    <%= f.label :description %>
    <%= f.cktext_area :description %>
  </fieldset>

  <% if @parent && @parent.start && @parent.end %>
    <span class="help-block">The parent goal duration is <%= parent.expanded_date_range %>.</span>
  <% end %>

  <fieldset>
    <%= f.label :start, "Start Date" %>
    <%= f.text_field :start, class: "datepicker" %>
  </fieldset>

  <fieldset>
    <%= f.label :end, "End Date" %>
    <%= f.text_field :end, class: "datepicker" %>
  </fieldset>

  <%= hidden_field_tag :parent_id, params[:parent_id] %>

  <%= f.submit "Save", class: "btn btn-success" %>
<% end %>

<script type="text/javascript">

</script>

<%= form_for [@student, @goal] do |f| %>
  <fieldset>
    <%= f.label :title %>
    <%= f.text_field :title %>
  </fieldset>

  <fieldset>
    <%= f.label :description %>
    <%= f.cktext_area :description %>
  </fieldset>

  <% if @parent && @parent.start && @parent.end %>
    <span class="help-block">The parent goal duration is <%= parent.expanded_date_range %>.</span>
  <% end %>

  <fieldset>
    <%= f.label :start, "Start Date" %>
    <%= f.text_field :start, value: @goal.start.strftime("%b %-d, %Y"), class: "datepicker" %>
  </fieldset>

  <fieldset>
    <%= f.label :end, "End Date" %>
    <%= f.text_field :end, value: @goal.end.strftime("%b %-d, %Y"), class: "datepicker" %>
  </fieldset>

  <%= hidden_field_tag :parent_id, params[:parent_id] %>

  <%= f.submit "Save", class: "btn btn-success" %>
<% end %>

<script type="text/javascript">

</script>

Fix date format while editing a goal.
Fix date format while editing a goal.
