<%= form_with(model: source_tag) do |form| %>
  <% if source_tag.errors.any? %>
    <div style="color: red">
      <h2><%= pluralize(source_tag.errors.count, "error") %> prohibited this source_tag from being saved:</h2>

      <ul>
        <% source_tag.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= form.label :slug, style: "display: block" %>
    <%= form.text_field :slug %>
  </div>

  <div>
    <%= form.label :name, style: "display: block" %>
    <%= form.text_field :name %>
  </div>

  <div>
    <%= form.label :owner, style: "display: block" %>
    <%= form.text_field :owner %>
  </div>

  <div>
    <%= form.submit %>
  </div>
<% end %>
