Mazi wrote:tpartner wrote:If the question is not mandatory the asterisk is not inserted by quanda.php but the span that contains it remains because it's hard coded in question.pstpl.
Those damn hard coded elements...
Don't you think we should change this?
I think the best solution is to use another system of replacment:
Actually: mandatory/non-mandatory
<span class="asterisk">{QUESTION_MANDATORY}</span> => <span class="asterisk">*</span>
<span class="asterisk">{QUESTION_MANDATORY}</span> => <span class="asterisk"></span>
I think it's best to have some optionnal extra option:
{<span class="asterisk">QUESTION_MANDATORY</span>} => <span class="asterisk">*</span>
{<span class="asterisk">QUESTION_MANDATORY</span>} =>
In a specific template for question-help, i use some jquery to remove this div if emty ($('.question-help:empty') selector. But the best is to do in php,
I search for some regexp to do that and put in ls-dev if i found something. (when i have some time)
Another idea ?