codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

Add a css class to form widget to identify a specific field #81

Closed richardhj closed 8 years ago

richardhj commented 8 years ago

Tested and needed in my environment. Do we have to standardize() $strName? I don't think so.

aschempp commented 8 years ago

I don't think we should add that.

  1. We're only adding the default Contao classes, Haste should not behave differently
  2. The classes can easily be added by simply adding them to the form field configuration that is passed to Haste\Form
qzminski commented 8 years ago

I don't think it should be added either. You can set custom CSS classes manually by ['eval']['class'] => 'foobar'.

Toflar commented 8 years ago

Same here, not necessary.