ibrows/sylius-shop-bundle

Ibrows Sylius Shop Bundle integration

v8.0.5 2019-08-26 14:13 UTC

README

Template

Override general terms

{% block _ibr_sylius_summary_termsAndConditions_label %}
{% spaceless %}
{% if not compound %}
    {% set label_attr = label_attr|merge({'for': id}) %}
{% endif %}
{% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' checkbox')|trim}) %}
{% if attr.inline is defined and attr.inline %}
    {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' inline')|trim}) %}
{% endif %}
{% if required %}
    {% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% endspaceless %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
    {{ form_widget(form) }} {{ "form.ibr_sylius_summary.termsandconditions"|trans({'%agburl%': 'url'})}, translation_domain)|raw }}
</label>
{% endblock %}