diff --git a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js index 1c9b8a54..b762022c 100644 --- a/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js +++ b/js/components/whitelabel/wallet/components/market/market_forms/market_additional_data_form.js @@ -32,6 +32,7 @@ let MarketAdditionalDataForm = React.createClass({ React.PropTypes.number, React.PropTypes.string ]), + editable: React.PropTypes.bool, isInline: React.PropTypes.bool, showHeading: React.PropTypes.bool, showNotification: React.PropTypes.bool, @@ -41,6 +42,7 @@ let MarketAdditionalDataForm = React.createClass({ getDefaultProps() { return { + editable: true, submitLabel: getLangText('Register work') }; }, @@ -130,7 +132,7 @@ let MarketAdditionalDataForm = React.createClass({ }, render() { - const { isInline, handleSuccess, showHeading, showNotification, submitLabel } = this.props; + const { editable, isInline, handleSuccess, showHeading, showNotification, submitLabel } = this.props; const { piece } = this.state; let buttons, spinner, heading; @@ -169,7 +171,8 @@ let MarketAdditionalDataForm = React.createClass({ handleSuccess={showNotification ? this.handleSuccessWithNotification : handleSuccess} getFormData={this.getFormData} buttons={buttons} - spinner={spinner}> + spinner={spinner} + disabled={!this.props.editable || !piece.acl.acl_edit}> {heading} + otherData={piece.other_data} + editable={editable} /> + label={getLangText('Artist Bio')} + expanded={editable || !!piece.extra_data.artist_bio}> + label={getLangText('Work Description')} + expanded={editable || !!piece.extra_data.work_description}> + label={getLangText('Technology Details')} + expanded={editable || !!piece.extra_data.technology_details}> + label={getLangText('Display Instructions')} + expanded={editable || !!piece.extra_data.display_instructions}>