How to add an icon appended to an error message?

36 views
Skip to first unread message

Ptser

unread,
Jun 26, 2012, 7:43:48 AM6/26/12
to plataformate...@googlegroups.com
I am using bootstrap and I'd like to know if it's possible to append an icon (or any html) before or after the error message displayed with simpleform

something like this (inside help-inline)

<div class="control-group error">
  <label for="inputError" class="control-label">Input with error</label>
    <div class="controls">
      <input type="text" id="inputError">
      <span class="help-inline">
        <i class="icon-alert"></i> Please correct the error
     </span>
  </div>
</div>

I can wrap with tags, but it's possible to append or preppend?
b.use :error, :wrap_with => { :tag => :span, :class => :error }

Reply all
Reply to author
Forward
0 new messages