Sha256: a74cecb74c892d2c4f9a96a336f132ea3c367009abbf37affb9a2dfd59a85e58

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

<% if newsletter_form.errors.any? %>
  <div class="mb-6" role="alert">
    <div class="text-base lg:text-lg xl:text-xl font-bold text-white bg-red-600 rounded-t px-4 py-2">
      <%= "#{newsletter_form.errors.count} errors prohibited this #{newsletter_form.class.model_name.human.downcase} from being saved:" %>
    </div>
    <div class="text-base lg:text-lg xl:text-xl text-red-600 bg-red-100 border border-t-0 border-red-600 rounded-b px-4 py-3">
      <ul>
        <% newsletter_form.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saaskit-0.1.2 lib/generators/saaskit/install/templates/app/views/pages/_errors.html.erb
saaskit-0.1.1 lib/generators/saaskit/install/templates/app/views/pages/_errors.html.erb
saaskit-0.1.0 lib/generators/saaskit/install/templates/app/views/pages/_errors.html.erb