1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Working on forms

This commit is contained in:
vrde 2015-09-18 10:07:14 +02:00
parent 3fbf9ae7cd
commit da6c3cc03a
3 changed files with 7 additions and 3 deletions

View File

@ -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>
);
// FIXME: do not use `Form`s to display static values
return (
<Form>
<Property

View File

@ -76,7 +76,8 @@ let FurtherDetails = React.createClass({
editable={this.props.editable}
pieceId={this.props.pieceId}
extraData={this.props.extraData} />
<Form>
<Form
buttonSubmit={false}>
<FurtherDetailsFileuploader
submitFile={this.submitFile}
setIsUploadReady={this.setIsUploadReady}
@ -85,7 +86,7 @@ let FurtherDetails = React.createClass({
overrideForm={true}
pieceId={this.props.pieceId}
otherData={this.props.otherData}
multiple={true}/>
multiple={true} />
</Form>
</Col>
</Row>

View File

@ -41,7 +41,9 @@ let PieceExtraDataForm = React.createClass({
ref='form'
url={url}
handleSuccess={this.props.handleSuccess}
getFormData={this.getFormData}>
getFormData={this.getFormData}
showButtonsOnEdit={true}
buttonCancel={true}>
<Property
name={this.props.name}
label={this.props.title}