Sha256: 246ce92aaf798fc0e31b3b833690dd99d5fc9cae08d30876284b27ca48b213c2

Contents?: true

Size: 508 Bytes

Versions: 43

Compression:

Stored size: 508 Bytes

Contents

<% if object.errors.any? %>
  <div id="error_explanation">
    <div id="alerts" class="alert alert-error">
      <%= t( :errors, :count => object.errors.count, :model => @model.display_name) %>:
      <ul>
      <% object.errors.messages.keys.each do |field| %>
        <% object.errors.messages[field].each do |value| %>
         <li>
          	<%= @model.get_attribute_label(field.to_s) %>
          	<%= value %>
         </li>
        <% end %>
      <% end %>
      </ul>
    </div>
  </div>
<% end %>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
adminpanel-2.1.6 app/views/shared/_error_messages.html.erb
adminpanel-2.1.5 app/views/shared/_error_messages.html.erb
adminpanel-2.1.3 app/views/shared/_error_messages.html.erb