mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
Merge branch 'AD-943-add-custom-additional-fields' of bitbucket.org:ascribe/onion into AD-943-add-custom-additional-fields
This commit is contained in:
commit
3cbcfc17a3
@ -152,6 +152,23 @@ let LoanForm = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getAppendix() {
|
||||||
|
if(this.state.contractAgreementList && this.state.contractAgreementList.length > 0) {
|
||||||
|
let appendix = this.state.contractAgreementList[0].appendix;
|
||||||
|
if (appendix && appendix.default) {
|
||||||
|
return (
|
||||||
|
<div className='notification-contract-footer'>
|
||||||
|
<h1>{getLangText('Appendix')}</h1>
|
||||||
|
<pre>
|
||||||
|
{appendix.default}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
|
||||||
getButtons() {
|
getButtons() {
|
||||||
if(this.props.loanHeading) {
|
if(this.props.loanHeading) {
|
||||||
return (
|
return (
|
||||||
@ -257,6 +274,7 @@ let LoanForm = React.createClass({
|
|||||||
required={this.props.showPassword ? 'required' : ''}/>
|
required={this.props.showPassword ? 'required' : ''}/>
|
||||||
</Property>
|
</Property>
|
||||||
{this.getContractCheckbox()}
|
{this.getContractCheckbox()}
|
||||||
|
{this.getAppendix()}
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
@ -18,7 +18,7 @@ let LoanRequestAnswerForm = React.createClass({
|
|||||||
url: React.PropTypes.string,
|
url: React.PropTypes.string,
|
||||||
id: React.PropTypes.object,
|
id: React.PropTypes.object,
|
||||||
message: React.PropTypes.string,
|
message: React.PropTypes.string,
|
||||||
handleSuccess: React.PropTypes.func.required
|
handleSuccess: React.PropTypes.func.isRequired
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps() {
|
getDefaultProps() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user