<%= form_with(model: banal_link, local: true) do |form| %> <% if banal_link.errors.any? %>

<%= pluralize(banal_link.errors.count, "error") %> prohibited this banal_link from being saved:

<% end %>
Link
<%= form.label :uri, 'URI' %> <%= form.url_field :uri, class: 'form-control', placeholder: 'e.g. https://google.com' %>
Metadata
<%= form.fields_for :metadata do |metadata_form| %>
<%= metadata_form.label :category %> <%= metadata_form.select :category, ['Suppliers and products', 'Competitors', 'Blogs', 'Info sites', 'News and Media', 'Datasources', 'Other'], {}, { class: 'form-control' } %>
<%= metadata_form.label :language, 'Country' %> <%= metadata_form.select :language, ['Norway', 'Sweden', 'Germany', 'Spain', 'Denmark', 'UK', 'International', 'Lithuania', 'Other'], {}, class: 'form-control' %>
<% end %>
<%= render 'banal/related_objects/hidden_fields', {form: form} %>
<%= form.submit class: 'btn btn-primary' %>
<% end %>