<%# locals: (resource:) %>

<% unless resource.errors.empty? %>
  <div class="validation-errors">
    <p>
      <%= t('common.error_preamble') %>
    </p>
    <% resource.errors.full_messages.each do |msg| %>
      <p><%= msg %></p>
    <% end %>
  </div>
<% end %>
