mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Allow user-defined <Form> attributes
This commit is contained in:
parent
0fe330621c
commit
e7d2e9b0b2
@ -22,13 +22,7 @@ class FormComponent extends SilverStripeComponent {
|
|||||||
const actions = this.getFormActionComponents();
|
const actions = this.getFormActionComponents();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form
|
<form {...attr}>
|
||||||
id={attr.id}
|
|
||||||
className={attr.className}
|
|
||||||
encType={attr.enctype}
|
|
||||||
method={attr.method}
|
|
||||||
action={attr.action}
|
|
||||||
>
|
|
||||||
{fields &&
|
{fields &&
|
||||||
<fieldset className="form-group">
|
<fieldset className="form-group">
|
||||||
{fields}
|
{fields}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user