<div class="form_field">
{{ form_label(form.acceptpolicytermofuse, null, {label_attr: {style: 'vertical-align: top;'}}) }}
<div id="form_acceptpolicytermofuse" style="display: inline-block; width: 520px;">
{% for child in form.acceptpolicytermofuse %}
{{ form_widget(child, {attr: {style: 'float: left;'}}) }}
<label for="{{ child.vars.id }}" class="required">
{% autoescape false %}
{{ child.vars.label }}
{% endautoescape %}
</label><br>
{% endfor %}
</div>
</div>
Thursday, July 30, 2015
Symfony - Allow HTML instead of plain text for form choice label
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment