Sha256: 0616c9f0d9221e730677cc1391fd2b40b7d15874e7068ed740e7d2af50db1ba6

Contents?: true

Size: 528 Bytes

Versions: 16

Compression:

Stored size: 528 Bytes

Contents

<%#
    name: formstrap/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

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/views/formstrap/_errors.html.erb
formstrap-0.4.4 app/views/formstrap/_errors.html.erb
formstrap-0.4.3 app/views/formstrap/_errors.html.erb
formstrap-0.4.2 app/views/formstrap/_errors.html.erb
formstrap-0.3.5 app/views/formstrap/_errors.html.erb
formstrap-0.3.4 app/views/formstrap/_errors.html.erb
formstrap-0.3.3 app/views/formstrap/_errors.html.erb
formstrap-0.3.2 app/views/formstrap/_errors.html.erb
formstrap-0.3.1 app/views/formstrap/_errors.html.erb
formstrap-0.3.0 app/views/formstrap/_errors.html.erb
formstrap-0.2.1 app/views/formstrap/_errors.html.erb
formstrap-0.2.0 app/views/formstrap/_errors.html.erb
formstrap-0.1.3 app/views/formstrap/_errors.html.erb
formstrap-0.1.2 app/views/formstrap/_errors.html.erb
formstrap-0.1.1 app/views/formstrap/_errors.html.erb
formstrap-0.1.0 app/views/formstrap/_errors.html.erb