... | ... |
@@ -80,28 +80,23 @@ |
80 | 80 |
{% if attribute_groups is defined and attribute_groups|length > 0 %} |
81 | 81 |
{% for group in attribute_groups %} |
82 | 82 |
<fieldset> |
83 |
- <legend><strong>{{ group.title }}{% if group.required %}<sup class="text-danger">*</sup>{% endif %}</strong></legend> |
|
83 |
+ <h5 class="legend">{{ group.title }}{% if group.required %}<sup class="text-danger">*</sup>{% endif %}</h5> |
|
84 | 84 |
{% if group.description %} |
85 |
- <div class="description">{{ group.description }}</div> |
|
85 |
+ <div class="fieldset-description"><span class="info">{{ group.description }}</span></div> |
|
86 | 86 |
{% endif %} |
87 | 87 |
|
88 | 88 |
{% for attribute in group.attributes %} |
89 | 89 |
<div class="attribute-item"> |
90 | 90 |
{% if group.type == 'text' %} |
91 |
- <label for="attribute_{{ attribute.id }}">{{ attribute.title }}</label> |
|
92 |
- <input type="text" id="attribute_{{ attribute.id }}" name="attribute_{{ attribute.id }}" class="form-control" value="{{ attribute.value }}"> |
|
91 |
+ <label for="b_attribute_{{ attribute.id }}"><strong>{{ attribute.title }}</strong></label> |
|
92 |
+ <input type="text" id="b_attribute_{{ attribute.id }}" name="attribute_{{ attribute.id }}" class="form-control" value="{{ attribute.value }}"> |
|
93 | 93 |
{% if attribute.description %} |
94 |
- <div class="description">{{ attribute.description }}</div> |
|
94 |
+ <div class="fieldset-description"><span class="info">{{ attribute.description }}</span></div> |
|
95 | 95 |
{% endif %} |
96 | 96 |
{% elseif group.type == 'option' %} |
97 |
- <div class="checkbox"> |
|
98 |
- <label> |
|
99 |
- <input type="checkbox" id="attribute_{{ attribute.id }}" name="attribute_{{ attribute.id }}" value="1" {% if attribute.value %}checked{% endif %}> |
|
100 |
- {{ attribute.title }} |
|
101 |
- </label> |
|
102 |
- {% if attribute.description %} |
|
103 |
- <div class="description">{{ attribute.description }}</div> |
|
104 |
- {% endif %} |
|
97 |
+ <div class="checkbox form-ext-control form-ext-{{ group.multiple ? 'checkbox' : 'radio' }}"> |
|
98 |
+ <input class="form-ext-input" type="{{ group.multiple ? 'checkbox' : 'radio' }}" id="b_attribute_{{ attribute.id }}" name="{{ group.multiple ? 'attribute_'~attribute.id : 'group_'~group.id }}" value="1" {% if attribute.value %}checked{% endif %}> |
|
99 |
+ <label class="form-ext-label" for="b_attribute_{{ attribute.id }}">{{ attribute.title }}</label> |
|
105 | 100 |
</div> |
106 | 101 |
{% endif %} |
107 | 102 |
</div> |
... | ... |
@@ -129,7 +129,7 @@ |
129 | 129 |
{% endif %} |
130 | 130 |
{% elseif group.type == 'option' %} |
131 | 131 |
<div class="checkbox form-ext-control form-ext-{{ group.multiple ? 'checkbox' : 'radio' }}"> |
132 |
- <input class="form-ext-input" type="{{ group.multiple ? 'checkbox' : 'radio' }}" id="attribute_{{ attribute.id }}" name="{{ group.multiple ? 'attribute_'~attribute.id : 'group_'~group.id }}" value="1"> |
|
132 |
+ <input class="form-ext-input" type="{{ group.multiple ? 'checkbox' : 'radio' }}" id="attribute_{{ attribute.id }}" name="{{ group.multiple ? 'attribute_'~attribute.id : 'group_'~group.id }}" value="{{ attribute.id }}"> |
|
133 | 133 |
<label class="form-ext-label" for="attribute_{{ attribute.id }}">{{ attribute.title }}</label> |
134 | 134 |
</div> |
135 | 135 |
{% endif %} |