1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-29 00:58:03 +02:00

added appendix

This commit is contained in:
diminator 2015-09-21 10:54:13 +02:00
parent 2486158c12
commit ec0208358d

View File

@ -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() {
if(this.props.loanHeading) {
return (
@ -257,6 +274,7 @@ let LoanForm = React.createClass({
required={this.props.showPassword ? 'required' : ''}/>
</Property>
{this.getContractCheckbox()}
{this.getAppendix()}
{this.props.children}
</Form>
);