Skip to content

Instantly share code, notes, and snippets.

@chalmagean
Created June 26, 2014 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalmagean/3463cfa023a521d90084 to your computer and use it in GitHub Desktop.
Save chalmagean/3463cfa023a521d90084 to your computer and use it in GitHub Desktop.
<% if obj.errors.any? %>
<div class="row form-errors">
<div class="col-md-12">
<section class="panel">
<div class="panel-body">
<div class="alert alert-warning alert-block fade in">
<button data-dismiss="alert" class="close close-sm" type="button">
<i class="fa fa-times"></i>
</button>
<h4>
<i class="icon-ok-sign"></i>
<%= t('.form_errors_heading') %>
</h4>
<p class="form-errors-subheading"><%= t('.form_errors_subheading') %></p>
<ul>
<% obj.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
</div>
</section>
</div>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment