contao/core — Issue #3714: Radio buttons in a table with Contao 2.10.x
Author: lionel-m
Created: 2011-12-22 14:13:23+00:00
State: open

Hello,

From the version 2.10, we have a `

` for radio buttons (Issue #1257). If I generate a form with radio buttons in a table, the label is not positioned in the good column.

The first `	` is empty and the whole structure is in the second...

```html

Civilité

Monsieur

Madame

```
Template Code:

```PHP

fields as $objWidget): ?>

parse(); ?>

```

Created with the conventional method:

```PHP
...

$objWidget = new $strClass($this->prepareForWidget($arrField, $arrField['name'], $arrField['value']));

// Validate widget
if ($this->Input->post('FORM_SUBMIT') == 'tl_rdv') {
$objWidget->validate();

if ($objWidget->hasErrors()) {
$doNotSubmit = true;
}
}

$arrWidgets[] = $objWidget;
}

$this->Template->fields = $arrWidgets;
...
```

The label for radio buttons is well positioned in the table with the versions lower than 2.10.

```HTML

Civilité

Monsieur

Madame

...

```

Thx