1
0
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:
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> <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

View File

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

View File

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