Fix condition for required attribute in toggle field (#451)
Fix condition for required attribute in toggle field (#451)

* Add block for additional outer field attributes in template, defaulting to add any data properties defined in the field's YAML

* Replace apparently special data property on form fields for 'data-attributes'

* Fix twig selector for property/attribute name with hiphen

* Fix required test on toggle field template
getgrav/grav-plugin-form,getgrav/grav-plugin-form,getgrav/grav-plugin-form