59 lines
3.1 KiB
Twig
59 lines
3.1 KiB
Twig
{% set sImageUrl = oViewConf.getModuleUrl('d3unzer', 'out/img/') %}
|
|
{% set oHeidelPaySettings = oHeidelpayViewConfig.getSettings() %}
|
|
{% set oHeidelPayment = oHeidelPaySettings.getPayment(paymentmethod) %}
|
|
{% set aBrands = oHeidelpayViewConfig.getHeidelpayNgwBrands(paymentmethod, oHeidelPayment, oxcmp_user) %}
|
|
|
|
{% block heidelpay_postfinance %}
|
|
<div class="well well-sm">
|
|
<dl>
|
|
<dt>
|
|
<input type="radio"
|
|
{% if blD3HeidelpayAllowPostFinance %}
|
|
id="payment_{{ sPaymentID }}"
|
|
name="paymentid"
|
|
value="{{ sPaymentID }}"
|
|
{% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}checked{% endif %}
|
|
{% else %}
|
|
disabled
|
|
{% endif %}
|
|
>
|
|
<label for="payment_{{ sPaymentID }}">
|
|
<b>{{ paymentmethod.oxpayments__oxdesc.value }}</b>
|
|
{% include "@d3unzer/generic/payment_img.html.twig" with {sImageUrl: sImageUrl ~ 'logo_postfinance.png', sBrandIdent: sBrandIdent} %}
|
|
</label>
|
|
{% if false == blD3HeidelpayAllowPostFinance %}
|
|
<dfn id="d3HeidelayPostfinanceNotice" class="alert alert-danger">{{ translate({ ident: "D3UNZER_PAYMENT_POSTFINANCE_NOTICE" }) }}</dfn>
|
|
{% endif %}
|
|
</dt>
|
|
<dd class="payment-option {% if oView.getCheckedPaymentId() == paymentmethod.oxpayments__oxid.value %}activePayment{% endif %}">
|
|
{% if blD3HeidelpayAllowPostFinance %}
|
|
<div class="form-group">
|
|
<label class="col-sm-4"
|
|
for="payment_{{ sPaymentID }}_1">{{ translate({ ident: "D3UNZER_PAYMENT_POSTFINANCE_PAYMENTS" }) }}</label>
|
|
<div class="col-sm-4">
|
|
<select class="form-control" id="payment_{{ sPaymentID }}_1" name="dynvalue[lsbankname]">
|
|
{% for sBrandIdent, sBrandName in aBrands %}
|
|
<option value="{{ sBrandIdent }}"
|
|
{% if (dynvalue.lsbankname == sBrandIdent) %}selected{% endif %}>{{ sBrandName }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% block checkout_payment_longdesc %}
|
|
{% if paymentmethod.oxpayments__oxlongdesc.value %}
|
|
<div class="row">
|
|
<div class="col-xs-12 col-lg-9 offset-lg-3">
|
|
<div class="alert alert-info desc">
|
|
{{ paymentmethod.oxpayments__oxlongdesc.getRawValue() }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
{% endblock %}
|