Sha256: 3a3aa7017f7dc88688553e09fa6490247713ad79aad6fe1e9b1a39e04fc6c569

Contents?: true

Size: 589 Bytes

Versions: 16

Compression:

Stored size: 589 Bytes

Contents

<%#
    name: headmin/forms/errors
    accepts block: false
    parameters:
      form: (string) Form object
%>

<% if form.object.errors.any? %>
  <div class="alert alert-danger" role="alert">
    <h5 class="alert-heading d-flex align-items-center">
      <%= bootstrap_icon('exclamation-triangle-fill', class: 'me-2') %>
      <%= t('errors.template.header', count: form.object.errors.size, model: form.object.model_name.human) %>
    </h5>
    <ul>
      <% form.object.errors.full_messages.each do |message| %>
      <li><%= message %></li>
      <% end %>
    </ul>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/forms/_errors.html.erb
headmin-0.3.4 app/views/headmin/forms/_errors.html.erb
headmin-0.3.3 app/views/headmin/forms/_errors.html.erb
headmin-0.3.2 app/views/headmin/forms/_errors.html.erb
headmin-0.3.1 app/views/headmin/forms/_errors.html.erb
headmin-0.2.8 app/views/headmin/forms/_errors.html.erb
headmin-0.2.7 app/views/headmin/forms/_errors.html.erb
headmin-0.2.6 app/views/headmin/forms/_errors.html.erb
headmin-0.2.5 app/views/headmin/forms/_errors.html.erb
headmin-0.2.4 app/views/headmin/forms/_errors.html.erb
headmin-0.2.3 app/views/headmin/forms/_errors.html.erb
headmin-0.2.2 app/views/headmin/forms/_errors.html.erb
headmin-0.2.1 app/views/headmin/forms/_errors.html.erb
headmin-0.2.0 app/views/headmin/forms/_errors.html.erb
headmin-0.1.2 app/views/headmin/forms/_errors.html.erb
headmin-0.1.1 app/views/headmin/forms/_errors.html.erb