react-bootstrap-validation icon indicating copy to clipboard operation
react-bootstrap-validation copied to clipboard

horizontal forms?

Open ir-fuel opened this issue 9 years ago • 1 comments

It seems not possible to have the label of the input field in front of the field?

ir-fuel avatar Feb 02 '16 22:02 ir-fuel

Try to use: <Form className="form-horizontal"> and then in your ValidatedInput components, set the bootstrap column sizes: e.g. <ValidatedInput type='text' label={gettext('First name')} labelClassName='col-sm-4' wrapperClassName='col-sm-12' name='first_name' defaultValue={this.props.first_name} validate='required' errorHelp={{ required: gettext('Please enter your first name') }} />

haikezegwaard avatar Jul 08 '16 14:07 haikezegwaard