mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Working on forms
This commit is contained in:
parent
3fbf9ae7cd
commit
da6c3cc03a
@ -387,6 +387,7 @@ let SpoolDetails = React.createClass({
|
|||||||
<a target="_blank" href={'https://www.blocktrail.com/BTC/address/' + this.props.edition.btc_owner_address_noprefix}>{this.props.edition.btc_owner_address_noprefix}</a>
|
<a target="_blank" href={'https://www.blocktrail.com/BTC/address/' + this.props.edition.btc_owner_address_noprefix}>{this.props.edition.btc_owner_address_noprefix}</a>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// FIXME: do not use `Form`s to display static values
|
||||||
return (
|
return (
|
||||||
<Form>
|
<Form>
|
||||||
<Property
|
<Property
|
||||||
|
@ -76,7 +76,8 @@ let FurtherDetails = React.createClass({
|
|||||||
editable={this.props.editable}
|
editable={this.props.editable}
|
||||||
pieceId={this.props.pieceId}
|
pieceId={this.props.pieceId}
|
||||||
extraData={this.props.extraData} />
|
extraData={this.props.extraData} />
|
||||||
<Form>
|
<Form
|
||||||
|
buttonSubmit={false}>
|
||||||
<FurtherDetailsFileuploader
|
<FurtherDetailsFileuploader
|
||||||
submitFile={this.submitFile}
|
submitFile={this.submitFile}
|
||||||
setIsUploadReady={this.setIsUploadReady}
|
setIsUploadReady={this.setIsUploadReady}
|
||||||
@ -85,7 +86,7 @@ let FurtherDetails = React.createClass({
|
|||||||
overrideForm={true}
|
overrideForm={true}
|
||||||
pieceId={this.props.pieceId}
|
pieceId={this.props.pieceId}
|
||||||
otherData={this.props.otherData}
|
otherData={this.props.otherData}
|
||||||
multiple={true}/>
|
multiple={true} />
|
||||||
</Form>
|
</Form>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -41,7 +41,9 @@ let PieceExtraDataForm = React.createClass({
|
|||||||
ref='form'
|
ref='form'
|
||||||
url={url}
|
url={url}
|
||||||
handleSuccess={this.props.handleSuccess}
|
handleSuccess={this.props.handleSuccess}
|
||||||
getFormData={this.getFormData}>
|
getFormData={this.getFormData}
|
||||||
|
showButtonsOnEdit={true}
|
||||||
|
buttonCancel={true}>
|
||||||
<Property
|
<Property
|
||||||
name={this.props.name}
|
name={this.props.name}
|
||||||
label={this.props.title}
|
label={this.props.title}
|
||||||
|
Loading…
Reference in New Issue
Block a user