= form_for @goal ||= Goal.new, class: "form", id: "goal-form" do |f|
  -if @goal.errors.any?
    #errors
      %ul
        - @goal.errors.full_messages.each do |msg|
          %li= msg

  = f.label "Write a goal here:"
  = f.text_field :description

  %div{class: "input-field col s12"}
  = f.label "Pick if this goal is a day, week, or phase goal:"
  = f.select(:duration, [['Day', 'daily'], ['Week', 'weekly'], ['Phase', 'phase']], {}, {:class => 'browser-default'})

  %div{class: "input-field col s12"}
  = f.label "Enter in a due date:"
  = f.date_field :due_date, class: "datepicker"

  = f.submit "Dream Forward", class: "btn waves-effect waves-light"

= form_for @goal ||= Goal.new, class: "form", id: "goal-form" do |f|
  -if @goal.errors.any?
    #errors
      %ul
        - @goal.errors.full_messages.each do |msg|
          %li= msg

  = f.label "Write a goal here:"
  = f.text_field :description

  %div{class: "input-field col s12"}
  = f.label "Pick if this goal is a day, week, or phase goal:"
  = f.select(:duration, [['Day', 'daily'], ['Week', 'weekly'], ['Phase', 'phase']], {}, {:class => 'browser-default'})

  %div{class: "input-field col s12"}
  = f.label "Enter in a due date:"
  = f.date_field :due_date, value: Date.today, class: "datepicker"

  = f.submit "Dream Forward", class: "btn waves-effect waves-light"

Add today's date to the new goal form by default
Add today's date to the new goal form by default
