Created
June 26, 2014 10:39
-
-
Save chalmagean/3463cfa023a521d90084 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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