MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / FormLayout

Method FormLayout

xadmin-dashboard/src/editor/components/DashForm.js:75–89  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

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}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected