contao/test — Issue #1223: forms: tableless mode code suggestion
Author: importer
Created: 2011-11-29 07:33:06+00:00
State: open
Labels: Feature, framework

Could there be a third layout that looked something like the below code? I replaced tableless mode with it.

I use it to enable styling of forms without using tables. It is a duplicate of table mode, but with

in place of

,
and	.

It requires some changes to match in other form_*.tpl files, but this is the bulk of the change. It retains the clear definitions of table mode, but works for both 1 and 2 column designs of forms with small css changes.

Modified form_widget.tpl

```
tableless): ?>

generateLabel(); ?>mandatory): ?>*
generateWithError(); ?>

generateLabel(); ?>mandatory): ?>*

generateWithError(); ?>

```

Original form_widget.tpl

```
tableless): ?>

generateLabel(); ?>
generateWithError(); ?>

generateLabel(); ?>
generateWithError(); ?>

```

--- _Originally created by symian on November 30th, 2009, at 07:17pm (ID 1223)_