Hello,

I am searching for a way to use bootstrap input-append and add-on.

<div class="w2p_fw">
<input class="date" id="table_date" name="date" placeholder="YYYY-MM-DD" 
type="text" value="">
<span class="add-on"><i class="icon-calendar"></i></span>
</div>


The problem is that when the error trigger the error get between the input 
and the span like this :

<div class="w2p_fw input-append control-group error">
<input class="date invalidinput inputError" id="table_date" name="date" 
placeholder="YYYY-MM-DD" type="text" value="">
* <div class="error_wrapper">*
* <div class="error" id="date__error" style="display: inline-block; ">can't 
be empty</div>*
* </div>*
<span class="add-on"><i class="icon-calendar"></i></span>
</div>

Even if I put the input and span in a div :

<div class="w2p_fw">
* <div class="input-append control-group error">*
<input class="date invalidinput inputError" id="table_date" name="date" 
placeholder="YYYY-MM-DD" type="text" value="">
* <div class="error_wrapper">*
* <div class="error" id="date__error" style="display: inline-block; ">can't 
be empty</div>*
* </div>*
<span class="add-on"><i class="icon-calendar"></i></span>
* </div>*
</div>


I see no way to fix that except refactoring html.py INPUT class near line 
1793, but I am not sure if it will cause a backward incompatibility...

Richard

-- 



Reply via email to