Text, textarea, list, password, captcha and checkbox fields can be described.
On the rendering side, by default (overloadable at skin), the description is inserted in the "label", in the form of a tooltip. The HTML product is :
<div class="label"> <label id="Ametys_Gen_1_label" for="Ametys_Gen_1">Nom <span title="Votre nom et votre prénom en majuscule" class="input-help"> <span>Aide</span> </span> <span class="mandatory-marker">*</span> </label> </div>
<div class="label"> <label id="Ametys_Gen_1_label" for="Ametys_Gen_1">Nom <span title="Votre nom et votre prénom en majuscule" class="input-help"> <span>Aide</span> </span> <span class="mandatory-marker">*</span> </label> </div>
<div class="label"> <label id="Ametys_Gen_1_label" for="Ametys_Gen_1">Nom <span title="Votre nom et votre prénom en majuscule" class="input-help"> <span>Aide</span> </span> <span class="mandatory-marker">*</span> </label> </div>
Example of rendering with the skin demo:
It is possible to display the tooltip to the right of the fields. To do this, override the "form-input-description" template, which is empty by default.
The template that renders is form-field-description
The template that renders at the label level is form-label-description and by default it just calls form-field-description.
See XSL docbbok2html.xsl of plugin forms for more details.