Skip to content
Snippets Groups Projects
Commit d822215e authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Template layout improvements

parent fe4cc9b9
No related branches found
No related tags found
1 merge request!362Resolve "Use Select2 everywhere"
Pipeline #3895 failed
{% load l10n material_form material_form_internal %}
{% part bound_field.field %}<{{ field.widget.component|default:'dmc-select' }}><div class="row">
{% part bound_field.field %}<{{ field.widget.component|default:'dmc-select' }}>
<label>{{ bound_field.label }}</label>
<div class="row">
<div{% attrs bound_field 'group' %}
id="id_{{ bound_field.html_name }}_container"
class="input-field col s12{% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
style="margin-top: 0"
{% endattrs %}>
{% part field prefix %}{% endpart %}{% part field label %}
<label{% attrs bound_field 'label' %}
for="{{ bound_field.id_for_label }}"
{% endattrs %}>{{ bound_field.label }}</label>
{% endpart %}
{% part field prefix %}{% endpart %}
{% part field control %}
{{ bound_field }}
{% endpart %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment