headerTitle={translate(this.props.addEventButtonText)}
onClose={this.props.onClose}
body={
- <div>
+ <form id="add-event-form">
<label htmlFor="name">{translate('name')}</label>
<InputField
id="name"
+ className="sw-my-2"
autoFocus
onChange={this.handleNameChange}
type="text"
value={this.state.name}
size="full"
/>
- </div>
+ </form>
}
primaryButton={
<ButtonPrimary
headerTitle={this.props.header}
onClose={this.props.onClose}
body={
- <div>
+ <form id="change-event-form">
<label htmlFor="name">{translate('name')}</label>
<InputField
id="name"
+ className="sw-my-2"
autoFocus
onChange={this.changeInput}
type="text"
value={name}
size="full"
/>
- </div>
+ </form>
}
primaryButton={
<ButtonPrimary