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

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

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

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

  <div>
    <%= form.label :description, style: "display: block" %>
    <%= form.textarea :description %>
  </div>

  <div>
    <%= form.label :pdf_file, "Upload PDF", style: "display: block" %>
    <%= form.file_field :pdf_file %>
  </div>

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