ibrows/sylius-shop-bundle

Ibrows Sylius Shop Bundle 集成

安装: 0

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

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

README

模板

覆盖通用条款

{% 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 %}