1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

Remove all occurences of 'hidden' prop usage for Property

This commit is contained in:
Tim Daubenschütz 2015-11-17 15:52:40 +01:00
parent 971d42b36d
commit 1ac2fe7f96
6 changed files with 27 additions and 27 deletions

View File

@ -119,7 +119,7 @@ let EditionActionPanel = React.createClass({
isInline={true}> isInline={true}>
<Property <Property
name="bitcoin_id" name="bitcoin_id"
hidden={true}> expanded={false}>
<input <input
type="text" type="text"
value={edition.bitcoin_id} /> value={edition.bitcoin_id} />
@ -139,7 +139,7 @@ let EditionActionPanel = React.createClass({
isInline={true}> isInline={true}>
<Property <Property
name="bitcoin_id" name="bitcoin_id"
hidden={true}> expanded={false}>
<input <input
type="text" type="text"
value={edition.bitcoin_id} /> value={edition.bitcoin_id} />

View File

@ -91,14 +91,14 @@ let CreateContractForm = React.createClass({
<Property <Property
name='name' name='name'
label={getLangText('Contract name')} label={getLangText('Contract name')}
hidden={true}> expanded={false}>
<input <input
type="text" type="text"
value={this.state.contractName}/> value={this.state.contractName}/>
</Property> </Property>
<Property <Property
name="is_public" name="is_public"
hidden={true}> expanded={false}>
<input <input
type="checkbox" type="checkbox"
value={this.props.isPublic} /> value={this.props.isPublic} />

View File

@ -123,7 +123,7 @@ let LoanForm = React.createClass({
<Property <Property
name="terms" name="terms"
label={getLangText('Loan Contract')} label={getLangText('Loan Contract')}
hidden={false} expanded={true}
className="notification-contract-pdf"> className="notification-contract-pdf">
<embed <embed
className="loan-form" className="loan-form"
@ -164,7 +164,7 @@ let LoanForm = React.createClass({
<Property <Property
name="terms" name="terms"
style={{paddingBottom: 0}} style={{paddingBottom: 0}}
hidden={true}> expanded={false}>
<InputCheckbox <InputCheckbox
key="terms_implicitly" key="terms_implicitly"
defaultChecked={true} /> defaultChecked={true} />
@ -260,7 +260,7 @@ let LoanForm = React.createClass({
label={getLangText('Start date')} label={getLangText('Start date')}
editable={!this.props.startdate} editable={!this.props.startdate}
overrideForm={!!this.props.startdate} overrideForm={!!this.props.startdate}
hidden={!this.props.showStartDate}> expanded={this.props.showStartDate}>
<InputDate <InputDate
defaultValue={this.props.startdate} defaultValue={this.props.startdate}
placeholderText={getLangText('Loan start date')} /> placeholderText={getLangText('Loan start date')} />
@ -270,7 +270,7 @@ let LoanForm = React.createClass({
editable={!this.props.enddate} editable={!this.props.enddate}
overrideForm={!!this.props.enddate} overrideForm={!!this.props.enddate}
label={getLangText('End date')} label={getLangText('End date')}
hidden={!this.props.showEndDate}> expanded={this.props.showEndDate}>
<InputDate <InputDate
defaultValue={this.props.enddate} defaultValue={this.props.enddate}
placeholderText={getLangText('Loan end date')} /> placeholderText={getLangText('Loan end date')} />
@ -280,7 +280,7 @@ let LoanForm = React.createClass({
label={getLangText('Personal Message')} label={getLangText('Personal Message')}
editable={true} editable={true}
overrideForm={true} overrideForm={true}
hidden={!this.props.showPersonalMessage}> expanded={this.props.showPersonalMessage}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.message} defaultValue={this.props.message}
@ -292,7 +292,7 @@ let LoanForm = React.createClass({
<Property <Property
name='password' name='password'
label={getLangText('Password')} label={getLangText('Password')}
hidden={!this.props.showPassword}> expanded={this.props.showPassword}>
<input <input
type="password" type="password"
placeholder={getLangText('Enter your password')} placeholder={getLangText('Enter your password')}

View File

@ -116,7 +116,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='artist_bio' name='artist_bio'
label={getLangText('Artist Biography')} label={getLangText('Artist Biography')}
hidden={disabled && !piece.extra_data.artist_bio}> expanded={!disabled && piece.extra_data.artist_bio}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.artist_bio} defaultValue={piece.extra_data.artist_bio}
@ -125,7 +125,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='artist_contact_information' name='artist_contact_information'
label={getLangText('Artist Contact Information')} label={getLangText('Artist Contact Information')}
hidden={disabled && !piece.extra_data.artist_contact_information}> expanded={!disabled && piece.extra_data.artist_contact_information}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.artist_contact_information} defaultValue={piece.extra_data.artist_contact_information}
@ -134,7 +134,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='conceptual_overview' name='conceptual_overview'
label={getLangText('Conceptual Overview')} label={getLangText('Conceptual Overview')}
hidden={disabled && !piece.extra_data.conceptual_overview}> expanded={!disabled && piece.extra_data.conceptual_overview}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.conceptual_overview} defaultValue={piece.extra_data.conceptual_overview}
@ -143,7 +143,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='medium' name='medium'
label={getLangText('Medium (technical specifications)')} label={getLangText('Medium (technical specifications)')}
hidden={disabled && !piece.extra_data.medium}> expanded={!disabled && piece.extra_data.medium}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.medium} defaultValue={piece.extra_data.medium}
@ -152,7 +152,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='size_duration' name='size_duration'
label={getLangText('Size / Duration')} label={getLangText('Size / Duration')}
hidden={disabled && !piece.extra_data.size_duration}> expanded={!disabled && piece.extra_data.size_duration}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.size_duration} defaultValue={piece.extra_data.size_duration}
@ -161,7 +161,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='display_instructions' name='display_instructions'
label={getLangText('Display instructions')} label={getLangText('Display instructions')}
hidden={disabled && !piece.extra_data.display_instructions}> expanded={!disabled && piece.extra_data.display_instructions}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.display_instructions} defaultValue={piece.extra_data.display_instructions}
@ -170,7 +170,7 @@ let CylandAdditionalDataForm = React.createClass({
<Property <Property
name='additional_details' name='additional_details'
label={getLangText('Additional details')} label={getLangText('Additional details')}
hidden={disabled && !piece.extra_data.additional_details}> expanded={!disabled && piece.extra_data.additional_details}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={piece.extra_data.additional_details} defaultValue={piece.extra_data.additional_details}

View File

@ -104,7 +104,7 @@ let IkonotvArtistDetailsForm = React.createClass({
<Property <Property
name='artist_website' name='artist_website'
label={getLangText('Artist Website')} label={getLangText('Artist Website')}
hidden={this.props.disabled && !this.props.piece.extra_data.artist_website}> expanded={!this.props.disabled && this.props.piece.extra_data.artist_website}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.artist_website} defaultValue={this.props.piece.extra_data.artist_website}
@ -113,7 +113,7 @@ let IkonotvArtistDetailsForm = React.createClass({
<Property <Property
name='gallery_website' name='gallery_website'
label={getLangText('Website of related Gallery, Museum, etc.')} label={getLangText('Website of related Gallery, Museum, etc.')}
hidden={this.props.disabled && !this.props.piece.extra_data.gallery_website}> expanded={!this.props.disabled && this.props.piece.extra_data.gallery_website}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.gallery_website} defaultValue={this.props.piece.extra_data.gallery_website}
@ -122,7 +122,7 @@ let IkonotvArtistDetailsForm = React.createClass({
<Property <Property
name='additional_websites' name='additional_websites'
label={getLangText('Additional Websites/Publications/Museums/Galleries')} label={getLangText('Additional Websites/Publications/Museums/Galleries')}
hidden={this.props.disabled && !this.props.piece.extra_data.additional_websites}> expanded={!this.props.disabled && this.props.piece.extra_data.additional_websites}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.additional_websites} defaultValue={this.props.piece.extra_data.additional_websites}
@ -131,7 +131,7 @@ let IkonotvArtistDetailsForm = React.createClass({
<Property <Property
name='conceptual_overview' name='conceptual_overview'
label={getLangText('Short text about the Artist')} label={getLangText('Short text about the Artist')}
hidden={this.props.disabled && !this.props.piece.extra_data.conceptual_overview}> expanded={!this.props.disabled && this.props.piece.extra_data.conceptual_overview}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.conceptual_overview} defaultValue={this.props.piece.extra_data.conceptual_overview}

View File

@ -103,7 +103,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='medium' name='medium'
label={getLangText('Medium')} label={getLangText('Medium')}
hidden={this.props.disabled && !this.props.piece.extra_data.medium}> expanded={!this.props.disabled && this.props.piece.extra_data.medium}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.medium} defaultValue={this.props.piece.extra_data.medium}
@ -112,7 +112,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='size_duration' name='size_duration'
label={getLangText('Size/Duration')} label={getLangText('Size/Duration')}
hidden={this.props.disabled && !this.props.piece.extra_data.size_duration}> expanded={!this.props.disabled && this.props.piece.extra_data.size_duration}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.size_duration} defaultValue={this.props.piece.extra_data.size_duration}
@ -121,7 +121,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='copyright' name='copyright'
label={getLangText('Copyright')} label={getLangText('Copyright')}
hidden={this.props.disabled && !this.props.piece.extra_data.copyright}> expanded={!this.props.disabled && this.props.piece.extra_data.copyright}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.copyright} defaultValue={this.props.piece.extra_data.copyright}
@ -130,7 +130,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='courtesy_of' name='courtesy_of'
label={getLangText('Courtesy of')} label={getLangText('Courtesy of')}
hidden={this.props.disabled && !this.props.piece.extra_data.courtesy_of}> expanded={!this.props.disabled && this.props.piece.extra_data.courtesy_of}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.courtesy_of} defaultValue={this.props.piece.extra_data.courtesy_of}
@ -139,7 +139,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='copyright_of_photography' name='copyright_of_photography'
label={getLangText('Copyright of Photography')} label={getLangText('Copyright of Photography')}
hidden={this.props.disabled && !this.props.piece.extra_data.copyright_of_photography}> expanded={!this.props.disabled && this.props.piece.extra_data.copyright_of_photography}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.copyright_of_photography} defaultValue={this.props.piece.extra_data.copyright_of_photography}
@ -148,7 +148,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
<Property <Property
name='additional_details' name='additional_details'
label={getLangText('Additional Details about the artwork')} label={getLangText('Additional Details about the artwork')}
hidden={this.props.disabled && !this.props.piece.extra_data.additional_details}> expanded={!this.props.disabled && this.props.piece.extra_data.additional_details}>
<InputTextAreaToggable <InputTextAreaToggable
rows={1} rows={1}
defaultValue={this.props.piece.extra_data.additional_details} defaultValue={this.props.piece.extra_data.additional_details}