Sha256: fc0695d429a7bab0cd00763d7c53a0c7eb3cedad25dac7cbfa185664d8c44970

Contents?: true

Size: 532 Bytes

Versions: 11

Compression:

Stored size: 532 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">
      <%= t("errors.template.header", count: form.object.errors.size, model: form.object.model_name.human) %>
    </h5>
    <ul class="mb-0">
      <% form.object.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
    </ul>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/forms/_errors.html.erb
headmin-0.6.2 app/views/headmin/forms/_errors.html.erb
headmin-0.6.1 app/views/headmin/forms/_errors.html.erb
headmin-0.6.0 app/views/headmin/forms/_errors.html.erb
headmin-0.5.9 app/views/headmin/forms/_errors.html.erb
headmin-0.5.8 app/views/headmin/forms/_errors.html.erb
headmin-0.5.7 app/views/headmin/forms/_errors.html.erb
headmin-0.5.6 app/views/headmin/forms/_errors.html.erb
headmin-0.5.5 app/views/headmin/forms/_errors.html.erb
headmin-0.5.4 app/views/headmin/forms/_errors.html.erb
headmin-0.5.3 app/views/headmin/forms/_errors.html.erb