contao/test — Issue #2946: $this->type For the Member Registration and Close Account Modules
Author: importer
Created: 2011-11-29 10:37:21+00:00
State: open
Labels: Feature, frontend

Hi Leo,

I have a minor/nit-picky thing.

In all other instances I could find, when a form widget is called, `$this->type` is sent to the template.

This is useful because I can add this as a CSS class to the widget template, and style the widget based on what type of field it is:

```

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

```

However, I did find two places where `$this->type` is blank instead:

# The "Security Question" captcha on the "Registration" module.
# The password field in the "Close Account" module.

It's not a big deal, and can be worked around in both cases, but it would be awesome if these two fields passed through a type as well to be consistent with the other widgets.

Thanks!

--- _Originally created by Medianomaly on March 21st, 2011, at 03:46pm (ID 2947)_