<%= simple_form_for @post do |p| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
    <div>Please include your preferred method of contact: email and/or phone</div>
    <br><br>
    <%= p.input :animal, label: "Pet's Name", collection: @pets, priority: @pets.last %>
    <%= p.input :location %>
    <%= p.input :phone %>
    <%= p.input :email %>
    <%= p.input :date, html5: true %>


    <%= p.button :submit, label: "Create Alert", class: "btn-1"  %>
<% end %>
<br><br>

<%= simple_form_for @post do |p| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
    <div>Please include your preferred method of contact: email and/or phone</div>
    <br><br>
    <%= p.input :animal, label: "Pet's Name", collection: @pets %>
    <%= p.input :location %>
    <%= p.input :phone %>
    <%= p.input :email %>
    <%= p.input :date, html5: true %>


    <%= p.button :submit, label: "Create Alert", class: "btn-1"  %>
<% end %>
<br><br>

Edit animal input in form partial
Edit animal input in form partial
