(props)
| 73 | } |
| 74 | |
| 75 | const FormLayout = (props) => { |
| 76 | const { children, invalid, handleSubmit, submitting, onClose, isCreate } = props |
| 77 | const icon = submitting ? 'spinner fa-spin' : 'floppy-o' |
| 78 | return ( |
| 79 | <form className="form-horizontal" onSubmit={handleSubmit}> |
| 80 | <Modal.Body> |
| 81 | {children} |
| 82 | </Modal.Body> |
| 83 | <Modal.Footer> |
| 84 | <Button onClick={onClose}>关闭</Button> |
| 85 | <Button type="submit" disabled={invalid || submitting} bsStyle="primary" onClick={handleSubmit}>保存</Button> |
| 86 | </Modal.Footer> |
| 87 | </form> |
| 88 | ) |
| 89 | } |
| 90 | |
| 91 | return ( |
| 92 | <Modal show={this.props.show} onHide={this.onClose}> |
nothing calls this directly
no outgoing calls
no test coverage detected