mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-27 08:16:41 +01:00 
			
		
		
		
	Fixed columns and column fields with .dotted variables inside to ignore columns and column names
				
					
				
			This commit is contained in:
		| @@ -5,6 +5,7 @@ | |||||||
|    * Added support for a single `field:` vs `fields:` in element form field to store a single value to the option field |    * Added support for a single `field:` vs `fields:` in element form field to store a single value to the option field | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|    * Fixed nested element form fields |    * Fixed nested element form fields | ||||||
|  |    * Fixed `columns` and `column` fields with `.dotted` variables inside to ignore columns and column names | ||||||
|  |  | ||||||
| # v1.10.32 | # v1.10.32 | ||||||
| ## 03/28/2022 | ## 03/28/2022 | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| {% extends "forms/field.html.twig" %} | {% extends "forms/field.html.twig" %} | ||||||
|  |  | ||||||
| {% block field %} | {% block field %} | ||||||
|     {% embed 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields} %} |     {% embed 'forms/default/fields.html.twig' with {name: name, fields: field.fields} %} | ||||||
|         {% block outer_markup_field_open %}<div class="form-column block pure-u-1-{{ cols }}">{% endblock %} |         {% block outer_markup_field_open %}<div class="form-column block pure-u-1-{{ cols }}">{% endblock %} | ||||||
|         {% block outer_markup_field_close %}</div>{% endblock %} |         {% block outer_markup_field_close %}</div>{% endblock %} | ||||||
|     {% endembed %} |     {% endembed %} | ||||||
|   | |||||||
| @@ -3,6 +3,6 @@ | |||||||
| {% block field %} | {% block field %} | ||||||
| <div class="form-columns grid pure-g"> | <div class="form-columns grid pure-g"> | ||||||
|     {% set cols = field.fields|length %} |     {% set cols = field.fields|length %} | ||||||
|     {% include 'forms/default/fields.html.twig' with {name: field.name, fields: field.fields, fallback_field: 'column', cols: cols} %} |     {% include 'forms/default/fields.html.twig' with {name: field.name|parent_field, fields: field.fields, fallback_field: 'column', cols: cols} %} | ||||||
| </div> | </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user