Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to add an icon appended to an error message?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ptser  
View profile   Translate to Translated (View Original)
 More options Jun 26 2012, 7:43 am
From: Ptser <guillemcatala....@gmail.com>
Date: Tue, 26 Jun 2012 04:43:48 -0700 (PDT)
Local: Tues, Jun 26 2012 7:43 am
Subject: How to add an icon appended to an error message?

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 }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »