1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

multiloan

This commit is contained in:
ddejongh 2015-06-02 15:38:47 +02:00
parent cdf8a358df
commit d157719043

View File

@ -28,8 +28,8 @@ let LoanForm = React.createClass({
bitcoin_id: this.getBitcoinIds().join(), bitcoin_id: this.getBitcoinIds().join(),
loanee: this.refs.loanee.state.value, loanee: this.refs.loanee.state.value,
gallery_name: this.refs.gallery_name.state.value, gallery_name: this.refs.gallery_name.state.value,
startdate: this.refs.startdate.state.value, startdate: this.refs.startdate.state.value.format("YYYY-MM-DD"),
enddate: this.refs.enddate.state.value, enddate: this.refs.enddate.state.value.format("YYYY-MM-DD"),
loan_message: this.refs.loan_message.state.value, loan_message: this.refs.loan_message.state.value,
password: this.refs.password.state.value, password: this.refs.password.state.value,
terms: this.refs.terms.state.value terms: this.refs.terms.state.value
@ -108,13 +108,9 @@ ${username}`;
placeholderText="Loan start date" /> placeholderText="Loan start date" />
</div> </div>
<div className="col-md-6 form-group"> <div className="col-md-6 form-group">
<InputText <InputDate
ref="enddate" ref="enddate"
name="enddate" placeholderText="Loan end date" />
placeholderText="Loan end date"
required="required"
type="text"
submitted={this.state.submitted}/>
</div> </div>
</div> </div>
<InputTextArea <InputTextArea