1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00

fix lock form

This commit is contained in:
Tim Daubenschütz 2015-08-21 11:01:13 +02:00
parent 5d4762f942
commit 30d57a943f
3 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@ let FurtherDetailsFileuploader = React.createClass({
// //
// 1. there is no other_data => do not show the fileuploader at all // 1. there is no other_data => do not show the fileuploader at all
// 2. there is other_data, but user has no edit rights => show fileuploader but without action buttons // 2. there is other_data, but user has no edit rights => show fileuploader but without action buttons
// 3. both other_data and editable are defined or true => show fileuploade with all action buttons // 3. both other_data and editable are defined or true => show fileuploader with all action buttons
if (!this.props.editable && !this.props.otherData){ if (!this.props.editable && !this.props.otherData){
return null; return null;
} }

View File

@ -148,7 +148,7 @@ let LoanForm = React.createClass({
label={getLangText('Loanee Email')} label={getLangText('Loanee Email')}
onBlur={this.handleOnBlur} onBlur={this.handleOnBlur}
editable={!this.props.email} editable={!this.props.email}
overrideForm={!this.props.email}> overrideForm={this.props.email}>
<input <input
value={this.props.email} value={this.props.email}
type="email" type="email"
@ -159,7 +159,7 @@ let LoanForm = React.createClass({
name='gallery_name' name='gallery_name'
label={getLangText('Gallery/exhibition (optional)')} label={getLangText('Gallery/exhibition (optional)')}
editable={!this.props.gallery} editable={!this.props.gallery}
overrideForm={!this.props.gallery}> overrideForm={this.props.gallery}>
<input <input
value={this.props.gallery} value={this.props.gallery}
type="text" type="text"

View File

@ -94,20 +94,20 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='artist_bio' name='artist_bio'
label={getLangText('Artist Biography')} label={getLangText('Artist Biography')}
editable={true}> editable={!this.props.disabled}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
editable={true} editable={!this.props.disabled}
placeholder={getLangText('Enter the artist\'s biography...')} placeholder={getLangText('Enter the artist\'s biography...')}
required="required"/> required="required"/>
</Property> </Property>
<Property <Property
name='conceptual_overview' name='conceptual_overview'
label={getLangText('Conceptual Overview')} label={getLangText('Conceptual Overview')}
editable={true}> editable={!this.props.disabled}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
editable={true} editable={!this.props.disabled}
placeholder={getLangText('Enter a conceptual overview...')} placeholder={getLangText('Enter a conceptual overview...')}
required="required"/> required="required"/>
</Property> </Property>
@ -115,7 +115,7 @@ let CylandAdditionalDataForm = React.createClass({
submitKey={this.submitKey} submitKey={this.submitKey}
setIsUploadReady={this.setIsUploadReady} setIsUploadReady={this.setIsUploadReady}
isReadyForFormSubmission={this.isReadyForFormSubmission} isReadyForFormSubmission={this.isReadyForFormSubmission}
editable={true} editable={!this.props.disabled}
pieceId={this.props.piece.id} pieceId={this.props.piece.id}
otherData={this.props.piece.other_data} otherData={this.props.piece.other_data}
multiple={true}/> multiple={true}/>