Hallo,
Seit die Version 2.10.x, haben wir ein fieldset mit Radio-Button. Wenn ich mein Formular erstelle, Ich benutze eine Struktur als Tabelle. Leider ist das Label der Radio-Button nicht korrekt platziert.
Ein Teil der Template-Code:
Quellcode:HTML-Code:<table cellspacing="0" cellpadding="0" summary="Form fields"> <?php foreach ($this->fields as $objWidget): ?> <?php echo $objWidget->parse(); ?> <?php endforeach; ?> </table>
Ein Teil der PHP-Code:HTML-Code:<tr class=""> <td class="col_0 col_first"> </td> <td class="col_1 col_last"> <fieldset id="ctrl_customer_title" class="radio_container"> <legend>Civilité</legend> <input type="hidden" name="customer_title" value=""> <span> <input type="radio" name="customer_title" id="opt_customer_title_0" class="radio" value="male"> <label id="lbl_customer_title_0" for="opt_customer_title_0">Monsieur</label></span> <span> <input type="radio" name="customer_title" id="opt_customer_title_1" class="radio" value="female"> <label id="lbl_customer_title_1" for="opt_customer_title_1">Madame</label> </span> </fieldset> </td> </tr> <tr class=""> <td class="col_0 col_first"> <label for="ctrl_customer_firstname" class="mandatory"><span class="invisible">Champ obligatoire</span> Prénom<span class="mandatory">*</span></label> </td> <td class="col_1 col_last"> <input type="text" name="customer_firstname" id="ctrl_customer_firstname" class="text mandatory" value="" maxlength="64"> </td> </tr>
Alle die Informationen über den Radio-Button sind in der zweiten td. (<td class="col_1 col_last">)Code:$arrFields = array ( 'customer_title' => array ( 'name' => 'customer_title', 'label' => &$GLOBALS['TL_LANG']['MSC']['customer_title'], 'inputType' => 'radio', 'options' => array('male', 'female'), 'reference' => &$GLOBALS['TL_LANG']['MSC'], 'eval' => array('includeBlankOption' => false, 'tl_class' => 'w50') ), 'customer_firstname' => array ( 'name' => 'customer_firstname', 'label' => &$GLOBALS['TL_LANG']['MSC']['customer_firstname'], 'inputType' => 'text', 'eval' => array('rgxp' => 'alnum', 'maxlength' => 64, 'mandatory' => true) ), ... ...
Wie kann ich das ändern / reorganisieren ?
Danke !

Zitieren