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

moved terms

This commit is contained in:
diminator 2015-08-21 10:54:57 +02:00
parent 5c6b753acb
commit 433703a470
2 changed files with 18 additions and 19 deletions

View File

@ -28,7 +28,6 @@ let LoanForm = React.createClass({
startdate: React.PropTypes.object, startdate: React.PropTypes.object,
enddate: React.PropTypes.object, enddate: React.PropTypes.object,
showPersonalMessage: React.PropTypes.bool, showPersonalMessage: React.PropTypes.bool,
url: React.PropTypes.string, url: React.PropTypes.string,
id: React.PropTypes.object, id: React.PropTypes.object,
message: React.PropTypes.string, message: React.PropTypes.string,
@ -193,7 +192,6 @@ let LoanForm = React.createClass({
placeholder={getLangText('Enter a message...')} placeholder={getLangText('Enter a message...')}
required="required"/> required="required"/>
</Property> </Property>
<Property <Property
name='password' name='password'
label={getLangText('Password')}> label={getLangText('Password')}>
@ -203,6 +201,7 @@ let LoanForm = React.createClass({
required/> required/>
</Property> </Property>
{this.getContractCheckbox()} {this.getContractCheckbox()}
{this.props.children}
</Form> </Form>
); );
} }

View File

@ -161,7 +161,7 @@ let CylandRegisterPiece = React.createClass({
let today = new Moment(); let today = new Moment();
let datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain = new Moment(); let datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain = new Moment();
datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain.add(1000, 'years'); datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain.add(1000, 'years');
console.log(this.state.piece.id)
return ( return (
<SlidesContainer <SlidesContainer
ref="slidesContainer" ref="slidesContainer"
@ -180,21 +180,7 @@ let CylandRegisterPiece = React.createClass({
submitMessage={getLangText('Submit')} submitMessage={getLangText('Submit')}
isFineUploaderActive={this.state.isFineUploaderActive} isFineUploaderActive={this.state.isFineUploaderActive}
handleSuccess={this.handleRegisterSuccess} handleSuccess={this.handleRegisterSuccess}
onLoggedOut={this.onLoggedOut}> onLoggedOut={this.onLoggedOut} />
<Property
name="terms"
className="ascribe-settings-property-collapsible-toggle"
style={{paddingBottom: 0}}>
<InputCheckbox>
<span>
{' ' + getLangText('I agree to the Terms of Service of Cyland Archive') + ' '}
(<a href="https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/cyland/terms_and_contract.pdf" target="_blank" style={{fontSize: '0.9em', color: 'rgba(0,0,0,0.7)'}}>
{getLangText('read')}
</a>)
</span>
</InputCheckbox>
</Property>
</RegisterPieceForm>
</Col> </Col>
</Row> </Row>
</div> </div>
@ -221,7 +207,21 @@ let CylandRegisterPiece = React.createClass({
startdate={today} startdate={today}
enddate={datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain} enddate={datetimeWhenWeAllWillBeFlyingCoolHoverboardsAndDinosaursWillLiveAgain}
showPersonalMessage={false} showPersonalMessage={false}
handleSuccess={this.handleLoanSuccess}/> handleSuccess={this.handleLoanSuccess}>
<Property
name="terms"
className="ascribe-settings-property-collapsible-toggle"
style={{paddingBottom: 0}}>
<InputCheckbox>
<span>
{' ' + getLangText('I agree to the Terms of Service of Cyland Archive') + ' '}
(<a href="https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/cyland/terms_and_contract.pdf" target="_blank" style={{fontSize: '0.9em', color: 'rgba(0,0,0,0.7)'}}>
{getLangText('read')}
</a>)
</span>
</InputCheckbox>
</Property>
</LoanForm>
</Col> </Col>
</Row> </Row>
</div> </div>