This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/templates/webform-composite-creditcard.html.twig

46 lines
1.3 KiB
Twig
Raw Normal View History

2017-03-16 15:29:07 +00:00
{#
/**
* @file
* Default theme implementation of a creditcard composite webform element.
*
* Available variables:
* - content: The creditcard webform element to be output.
* - flexbox: Determines if Flexbox layout should be applied to the composite
* element.
*
* @see template_preprocess_webform_creditcard()
*
* @ingroup themeable
*/
#}
{{ attach_library('webform/webform.element.composite') }}
{% if flexbox %}
{{ content.warning }}
{% if content.name %}
<div class="webform-flexbox">
<div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.name }}</div></div>
</div>
{% endif %}
<div class="webform-flexbox">
{% if content.type %}
<div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.type }}</div></div>
{% endif %}
<div class="webform-flex webform-flex--2"><div class="webform-flex--container">{{ content.number }}</div></div>
<div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.civ }}</div></div>
</div>
<div class="webform-flexbox">
<div class="webform-flex webform-flex--1"><div class="webform-flex--container">
{{ content.expiration }}
{{ content.expiration_month }}
{{ content.expiration_year }}
</div></div>
</div>
{% else %}
{{ content }}
{% endif %}