elisei/pagbank-payment-magento

View on GitHub
view/frontend/web/template/payment/pix-form.html

Summary

Maintainability
Test Coverage
<!--
/**
 * PagBank Payment Magento Module.
 *
 * Copyright © 2023 PagBank. All rights reserved.
 *
 * @author    Bruno Elisei <brunoelisei@o2ti.com>
 * @license   See LICENSE for license details.
 */
-->
<render args="payerForm"></render>
<fieldset data-bind="attr: {class: 'fieldset payment items', id: 'payment_form_payer_' + getCode()}">
    <!-- ko if: (baseDataForPaymentForm.isShowLegend())-->
    <legend class="legend">
        <span class="legend-title"><!-- ko i18n: 'Pix Information'--><!-- /ko --></span>
    </legend>
    <!-- /ko -->
    <div class="field-to-pay"  data-bind="css: { _hidden:isPlaceOrderActionAllowed() }">
        <p class="form-waiting"><!-- ko i18n: 'Waiting...'--><!-- /ko --></p>
    </div>
    <div class="field-to-pay"  data-bind="css: { _hidden:!isPlaceOrderActionAllowed() }">
       <!-- ko if: baseDataForPaymentForm.getInstructionCheckout() -->
        <dl class="items check payable">
            <dt class="title"><!-- ko i18n: 'Instruction' --><!-- /ko --></dt>
            <dd class="content">
                <address class="pagbankpix instruction address" data-bind="html: baseDataForPaymentForm.getInstructionCheckout()"></address>
            </dd>
        </dl>
        <!-- /ko -->
    </div>
</fieldset>