Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -12,4 +12,18 @@
|
|||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<select{{ attributes }}>{{ options }}</select>
|
||||
{% spaceless %}
|
||||
<select{{ attributes }}>
|
||||
{% for option in options %}
|
||||
{% if option.type == 'optgroup' %}
|
||||
<optgroup label="{{ option.label }}">
|
||||
{% for sub_option in option.options %}
|
||||
<option value="{{ sub_option.value }}"{{ sub_option.selected ? ' selected="selected"' }}>{{ sub_option.label }}</option>
|
||||
{% endfor %}
|
||||
</optgroup>
|
||||
{% elseif option.type == 'option' %}
|
||||
<option value="{{ option.value }}"{{ option.selected ? ' selected="selected"' }}>{{ option.label }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endspaceless %}
|
||||
|
|
Reference in a new issue