()
| 193 | } |
| 194 | |
| 195 | render () { |
| 196 | let { button, controls, fetchStatus, children, className, onSubmit, grid, layout, ...props } = this.props; |
| 197 | |
| 198 | className = classnames( |
| 199 | className, |
| 200 | getGrid(grid), |
| 201 | 'rct-form', |
| 202 | { |
| 203 | 'rct-form-aligned': layout === 'aligned', |
| 204 | 'rct-form-inline': layout === 'inline', |
| 205 | 'rct-form-stacked': layout === 'stacked' |
| 206 | } |
| 207 | ); |
| 208 | |
| 209 | return ( |
| 210 | <form onSubmit={this.handleSubmit} className={className} {...props}> |
| 211 | {controls && this.renderControls()} |
| 212 | {this.renderChildren(children)} |
| 213 | {button && this.renderButton(button)} |
| 214 | {fetchStatus !== FETCH_SUCCESS && <div className="rct-form-mask" />} |
| 215 | </form> |
| 216 | ); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | Form.propTypes = { |
nothing calls this directly
no test coverage detected