<% content_for :title, "New Shipment" %>

<% content_for :content do %>
  <%= form_for @shipment do |f| %>
    <div class="form-group">
      <%= f.label :shipping_carrier %>
      <%= f.select :shipping_carrier, Shipment::VALID_CARRIERS, { include_blank: "Please choose ..." }, class: "form-control" %>
    </div>
    <div class="form-group">
      <%= f.label :tracking_number %>
      <%= f.text_field :tracking_number, class: "form-control", placeholder: "Enter the tracking number" %>
    </div>
    <div>
      <%= f.submit "Create", class: "btn btn-primary" %>
      <%= link_to "Cancel", :back, type: "button", class: "btn btn-default" %>
    </div>
  <% end %>
<% end %>

<% content_for :title, "New Shipment" %>

<% content_for :content do %>
  <%= form_for @shipment do |f| %>
    <div class="form-group">
      <%= f.label :shipping_carrier %>
      <%= f.select :shipping_carrier, Shipment.shipping_carriers, { include_blank: "Please choose ..." }, class: "form-control" %>
    </div>
    <div class="form-group">
      <%= f.label :tracking_number %>
      <%= f.text_field :tracking_number, class: "form-control", placeholder: "Enter the tracking number" %>
    </div>
    <div>
      <%= f.submit "Create", class: "btn btn-primary" %>
      <%= link_to "Cancel", :back, type: "button", class: "btn btn-default" %>
    </div>
  <% end %>
<% end %>

Use the shipping carrier enum for the form
Use the shipping carrier enum for the form
