forked from Ruderverein-Donau-Linz/rowt
		
	Merge pull request 'fix initial selection' (#785) from fix into main
Reviewed-on: Ruderverein-Donau-Linz/rowt#785
This commit is contained in:
		@@ -90,7 +90,7 @@
 | 
			
		||||
                                    {% endfor %}
 | 
			
		||||
                                    {# Set default name to the selected role ID or first role if none selected #}
 | 
			
		||||
                                    <select id="cluster_{{ loop.index }}"
 | 
			
		||||
                                            name="roles[{% if  selected_role_id != 'none' %}{{ selected_role_id }}{% else %}{{ cluster_roles[0].id }}{% endif %}]"
 | 
			
		||||
                                            {% if selected_role_id == 'none' %} {% else %} name="roles[{{ selected_role_id }}]" {% endif %}
 | 
			
		||||
                                            {% if allowed_to_edit == false %}disabled{% endif %}
 | 
			
		||||
                                            onchange=" if (this.value === '') { this.removeAttribute('name'); } else { this.name = 'roles[' + this.options[this.selectedIndex].getAttribute('data-role-id') + ']'; }">
 | 
			
		||||
                                        <option value=""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user