mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
reorder edition collapsible paragraphs
This commit is contained in:
parent
b51a03ce9c
commit
11545c13a6
@ -81,33 +81,6 @@ let Edition = React.createClass({
|
|||||||
currentUser={this.state.currentUser}
|
currentUser={this.state.currentUser}
|
||||||
edition={this.props.edition} />
|
edition={this.props.edition} />
|
||||||
|
|
||||||
<CollapsibleParagraph
|
|
||||||
title="Notes"
|
|
||||||
show={(this.state.currentUser.username && true || false) ||
|
|
||||||
(this.props.edition.acl.indexOf('edit') > -1 || this.props.edition.public_note)}
|
|
||||||
defaultExpanded={true}>
|
|
||||||
<EditionPersonalNote
|
|
||||||
currentUser={this.state.currentUser}
|
|
||||||
handleSuccess={this.props.loadEdition}
|
|
||||||
edition={this.props.edition}/>
|
|
||||||
<EditionPublicEditionNote
|
|
||||||
handleSuccess={this.props.loadEdition}
|
|
||||||
edition={this.props.edition}/>
|
|
||||||
</CollapsibleParagraph>
|
|
||||||
|
|
||||||
<CollapsibleParagraph
|
|
||||||
title={getLangText('Further Details')}
|
|
||||||
show={this.props.edition.acl.indexOf('edit') > -1
|
|
||||||
|| Object.keys(this.props.edition.extra_data).length > 0
|
|
||||||
|| this.props.edition.other_data !== null}>
|
|
||||||
<EditionFurtherDetails
|
|
||||||
editable={this.props.edition.acl.indexOf('edit') > -1}
|
|
||||||
pieceId={this.props.edition.parent}
|
|
||||||
extraData={this.props.edition.extra_data}
|
|
||||||
otherData={this.props.edition.other_data}
|
|
||||||
handleSuccess={this.props.loadEdition}/>
|
|
||||||
</CollapsibleParagraph>
|
|
||||||
|
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title={getLangText('Certificate of Authenticity')}
|
title={getLangText('Certificate of Authenticity')}
|
||||||
show={this.props.edition.acl.indexOf('coa') > -1}>
|
show={this.props.edition.acl.indexOf('coa') > -1}>
|
||||||
@ -136,6 +109,32 @@ let Edition = React.createClass({
|
|||||||
history={this.props.edition.loan_history} />
|
history={this.props.edition.loan_history} />
|
||||||
</CollapsibleParagraph>
|
</CollapsibleParagraph>
|
||||||
|
|
||||||
|
<CollapsibleParagraph
|
||||||
|
title="Notes"
|
||||||
|
show={(this.state.currentUser.username && true || false) ||
|
||||||
|
(this.props.edition.acl.indexOf('edit') > -1 || this.props.edition.public_note)}>
|
||||||
|
<EditionPersonalNote
|
||||||
|
currentUser={this.state.currentUser}
|
||||||
|
handleSuccess={this.props.loadEdition}
|
||||||
|
edition={this.props.edition}/>
|
||||||
|
<EditionPublicEditionNote
|
||||||
|
handleSuccess={this.props.loadEdition}
|
||||||
|
edition={this.props.edition}/>
|
||||||
|
</CollapsibleParagraph>
|
||||||
|
|
||||||
|
<CollapsibleParagraph
|
||||||
|
title={getLangText('Further Details')}
|
||||||
|
show={this.props.edition.acl.indexOf('edit') > -1
|
||||||
|
|| Object.keys(this.props.edition.extra_data).length > 0
|
||||||
|
|| this.props.edition.other_data !== null}>
|
||||||
|
<EditionFurtherDetails
|
||||||
|
editable={this.props.edition.acl.indexOf('edit') > -1}
|
||||||
|
pieceId={this.props.edition.parent}
|
||||||
|
extraData={this.props.edition.extra_data}
|
||||||
|
otherData={this.props.edition.other_data}
|
||||||
|
handleSuccess={this.props.loadEdition}/>
|
||||||
|
</CollapsibleParagraph>
|
||||||
|
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title={getLangText('SPOOL Details')}>
|
title={getLangText('SPOOL Details')}>
|
||||||
<SpoolDetails
|
<SpoolDetails
|
||||||
|
Loading…
Reference in New Issue
Block a user