mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Fix padding in InputContractAgreementCheckbox
This commit is contained in:
parent
510318c319
commit
4b17225783
@ -115,7 +115,8 @@ let ConsignForm = React.createClass({
|
||||
<Property
|
||||
name='contract_agreement'
|
||||
label={getLangText('Consign Contract')}
|
||||
className="ascribe-property-collapsible-toggle">
|
||||
className="ascribe-property-collapsible-toggle"
|
||||
style={{paddingBottom: 0}}>
|
||||
<InputContractAgreementCheckbox
|
||||
createPublicContractAgreement={createPublicContractAgreement}
|
||||
email={email} />
|
||||
|
@ -197,7 +197,8 @@ let LoanForm = React.createClass({
|
||||
<Property
|
||||
name='contract_agreement'
|
||||
label={getLangText('Loan Contract')}
|
||||
className="ascribe-property-collapsible-toggle">
|
||||
className="ascribe-property-collapsible-toggle"
|
||||
style={{paddingBottom: 0}}>
|
||||
<InputContractAgreementCheckbox
|
||||
createPublicContractAgreement={createPublicContractAgreement}
|
||||
email={email} />
|
||||
|
@ -69,7 +69,7 @@ const InputContractAgreementCheckbox = React.createClass({
|
||||
},
|
||||
|
||||
onStoreChange(state) {
|
||||
const contractAgreement = this.getContractAgreement(state.contractAgreementList);
|
||||
const contractAgreement = this.getContractAgreement(state.contractAgreementList);
|
||||
this.props.setExpanded(!!contractAgreement);
|
||||
|
||||
state = mergeOptions(state, {
|
||||
@ -149,7 +149,9 @@ const InputContractAgreementCheckbox = React.createClass({
|
||||
|
||||
if(datetimeAccepted) {
|
||||
return (
|
||||
<div className="notification-contract-pdf">
|
||||
<div
|
||||
className="notification-contract-pdf"
|
||||
style={{paddingBottom: '1em'}}>
|
||||
<embed
|
||||
className="embed-form"
|
||||
src={contractUrl}
|
||||
|
@ -307,17 +307,22 @@ const Property = React.createClass({
|
||||
|
||||
render() {
|
||||
let footer = null;
|
||||
let style = this.props.style ? mergeOptions({}, this.props.style) : {};
|
||||
let style = Object.assign({}, this.props.style);
|
||||
|
||||
if(this.props.footer){
|
||||
footer = (
|
||||
<div className="ascribe-property-footer">
|
||||
{this.props.footer}
|
||||
</div>);
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
style.paddingBottom = !this.state.expanded ? 0 : null;
|
||||
style.cursor = !this.props.editable ? 'not-allowed' : null;
|
||||
if (!this.state.expanded) {
|
||||
style.paddingBottom = 0;
|
||||
}
|
||||
if (!this.props.editable) {
|
||||
style.cursor = 'not-allowed';
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user