1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

set collapsible default show=true

This commit is contained in:
diminator 2015-09-25 15:33:01 +02:00
parent 7d3c14d1cc
commit e6a6c2c2a3
9 changed files with 1 additions and 16 deletions

View File

@ -17,7 +17,7 @@ const CollapsibleParagraph = React.createClass({
getDefaultProps() {
return {
show: false
show: true
};
},

View File

@ -101,7 +101,6 @@ let AccountSettings = React.createClass({
return (
<CollapsibleParagraph
title={getLangText('Account')}
show={true}
defaultExpanded={true}>
{content}
<CopyrightAssociationForm currentUser={this.props.currentUser}/>

View File

@ -97,7 +97,6 @@ let APISettings = React.createClass({
return (
<CollapsibleParagraph
title={getLangText('API Integration')}
show={true}
defaultExpanded={this.props.defaultExpanded}>
<Form
url={ApiUrls.applications}

View File

@ -61,7 +61,6 @@ let BitcoinWalletSettings = React.createClass({
return (
<CollapsibleParagraph
title={getLangText('Crypto Wallet')}
show={true}
defaultExpanded={this.props.defaultExpanded}>
{content}
</CollapsibleParagraph>

View File

@ -87,7 +87,6 @@ let ContractSettings = React.createClass({
aclObject={this.props.currentUser.acl}>
<CollapsibleParagraph
title={getLangText('Contracts')}
show={true}
defaultExpanded={false}>
<AclProxy
aclName="acl_edit_public_contract"

View File

@ -309,7 +309,6 @@ let PrizePieceRatings = React.createClass({
<div>
<CollapsibleParagraph
title={getLangText('Shortlisting')}
show={true}
defaultExpanded={true}>
<div className="row no-margin">
<span className="ascribe-checkbox-wrapper" style={{marginLeft: '1.5em'}}>
@ -329,7 +328,6 @@ let PrizePieceRatings = React.createClass({
</CollapsibleParagraph>
<CollapsibleParagraph
title={getLangText('Average Rating')}
show={true}
defaultExpanded={true}>
<div id="list-rating" style={{marginLeft: '1.5em', marginBottom: '1em'}}>
<StarRating
@ -375,7 +373,6 @@ let PrizePieceRatings = React.createClass({
return (
<CollapsibleParagraph
title={getLangText('Rating')}
show={true}
defaultExpanded={true}>
<div style={{marginLeft: '1.5em', marginBottom: '1em'}}>
<StarRating
@ -417,7 +414,6 @@ let PrizePieceDetails = React.createClass({
return (
<CollapsibleParagraph
title={getLangText('Prize Details')}
show={true}
defaultExpanded={true}>
<Form ref='form'>
{Object.keys(this.props.piece.extra_data).map((data) => {

View File

@ -79,7 +79,6 @@ let PrizeSettings = React.createClass({
return (
<CollapsibleParagraph
title={'Prize Settings for ' + this.state.prize.name}
show={true}
defaultExpanded={true}>
<Form >
<Property
@ -268,19 +267,16 @@ let PrizeJurySettings = React.createClass({
<div>
<CollapsibleParagraph
title={getLangText('Active Jury Members')}
show={true}
defaultExpanded={true}>
{this.getMembersActive()}
</CollapsibleParagraph>
<CollapsibleParagraph
title={getLangText('Pending Jury Invitations')}
show={true}
defaultExpanded={true}>
{this.getMembersPending()}
</CollapsibleParagraph>
<CollapsibleParagraph
title={getLangText('Deactivated Jury Members')}
show={true}
defaultExpanded={false}>
{this.getMembersInactive()}
</CollapsibleParagraph>

View File

@ -64,7 +64,6 @@ let CylandPieceContainer = React.createClass({
submitButtonType={CylandSubmitButton}>
<CollapsibleParagraph
title={getLangText('Further Details')}
show={true}
defaultExpanded={true}>
<CylandAdditionalDataForm
piece={this.state.piece}

View File

@ -68,7 +68,6 @@ let IkonotvPieceContainer = React.createClass({
let furtherDetails = (
<CollapsibleParagraph
title={getLangText('Further Details')}
show={true}
defaultExpanded={true}>
<span>{getLangText('This piece has been loaned before we started to collect further details.')}</span>
</CollapsibleParagraph>
@ -78,7 +77,6 @@ let IkonotvPieceContainer = React.createClass({
furtherDetails = (
<CollapsibleParagraph
title={getLangText('Further Details')}
show={true}
defaultExpanded={true}>
<IkonotvArtistDetailsForm
piece={this.state.piece}