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