Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SFI-465] Installments UI improvement #1015

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,18 @@ ul{

#addRuleButton{
position: absolute;
bottom: 15px;
left: 60px;
bottom: 35px;
left:70px;
}

#removeRuleButton {
border: none;
background-color: transparent;
outline: none;
}
}

#adyen_installments_div{
font-family: 'Fakt';
font-style: normal;
font-size: 14px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,26 @@
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group">
<label class="form-title mb-0" for="installments">Enable Credit card installments <small class="text-secondary">(optional)</small></label>
<small id="installmentsHelp" class="form-text mb-1">
If you’re offering an installments option to your shoppers, please configure them below.
</small>
<div class="input-fields">
<input type="hidden" class="form-control" name="AdyenCreditCardInstallments" id="installments" aria-describedby="installmentsHelp" value="${AdyenConfigs.getCreditCardInstallments() || ''}">
</div>
<div class="adyen-installments-settings collapse ${AdyenConfigs.getAdyenInstallmentsEnabled() ? 'show': ''}">
<div class="input-fields" id="adyen_installments_div">
<div class="d-grid gap-2 d-md-flex justify-content-md-end form-buttons">
<button type="button" id="addRuleButton" class="btn btn-primary border formButton">Add Rule</button>
</div>
</div>
</div>
</div>
<div class='row'>
<div class="switch-button">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" name="AdyenInstallments_enabled" id="flexSwitchCheckChecked" data-bs-toggle="collapse" data-bs-target=".adyen-installments-settings" ${AdyenConfigs.getAdyenInstallmentsEnabled() ? 'checked': 'unchecked'}>
</div>
</div>
</div>
</div>
<label class="form-title mb-0" for="installments">Enable credit card installments <small class="text-secondary">(optional)</small></label>
<small class="form-text mb-1" id="installmentsHelp">If you’re offering an installments option to your shoppers, please configure them below.</small>
</div>
<div class="input-fields">
<input type="hidden" class="form-control" name="AdyenCreditCardInstallments" id="installments" value="${AdyenConfigs.getCreditCardInstallments() || ''}">
</div>
<div class="adyen-installments-settings collapse ${AdyenConfigs.getAdyenInstallmentsEnabled() ? 'show': ''}">
<div class="input-fields" id="adyen_installments_div">
<div class="d-grid gap-2 d-md-flex justify-content-md-end form-buttons">
<button type="button" id="addRuleButton" class="btn btn-primary border formButton">Add Rule</button>
</div>
</div>
</div>
</div>
</div>
</div>
Loading