mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Improved attributes extensibility
By not hard coding subject. Makes it possible to re-use attributeValues.html.twig for attributes for your custom models (or other Sylius default models)
This commit is contained in:
parent
a912a69556
commit
b1d9cb410c
1 changed files with 4 additions and 4 deletions
|
|
@ -9,12 +9,12 @@
|
|||
{{ _self.textField(form, count, id, subject, metadata.applicationName) }}
|
||||
{% endif %}
|
||||
<input type="hidden"
|
||||
name="sylius_product[attributes][{{ count }}][attribute]"
|
||||
id="sylius_product_attributes_{{ count }}_attribute"
|
||||
name="sylius_{{ subject }}[attributes][{{ count }}][attribute]"
|
||||
id="sylius_{{ subject }}_attributes_{{ count }}_attribute"
|
||||
value="{{ code }}"/>
|
||||
<input type="hidden"
|
||||
name="sylius_product[attributes][{{ count }}][localeCode]"
|
||||
id="sylius_product_attributes_{{ count }}_localeCode"
|
||||
name="sylius_{{ subject }}[attributes][{{ count }}][localeCode]"
|
||||
id="sylius_{{ subject }}_attributes_{{ count }}_localeCode"
|
||||
value="{{ localeCode }}"/>
|
||||
{% set count = count + 1 %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue