Compare commits

..

3 Commits

Author SHA1 Message Date
c8b60fa518 Merge pull request 'fix' (#784) from fix into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 12m27s
CI/CD Pipeline / deploy-staging (push) Successful in 5m48s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #784
2024-10-28 09:15:14 +01:00
7e20120a02 fix initial selection
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
2024-10-28 09:14:19 +01:00
2c7b8d9393 Merge pull request 'use clusters in user roles' (#783) from use-clusters into main
Some checks failed
CI/CD Pipeline / test (push) Successful in 11m56s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been cancelled
Reviewed-on: #783
2024-10-28 08:20:37 +01:00

View File

@ -90,7 +90,7 @@
{% endfor %} {% endfor %}
{# Set default name to the selected role ID or first role if none selected #} {# Set default name to the selected role ID or first role if none selected #}
<select id="cluster_{{ loop.index }}" <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 %} {% 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') + ']'; }"> onchange=" if (this.value === '') { this.removeAttribute('name'); } else { this.name = 'roles[' + this.options[this.selectedIndex].getAttribute('data-role-id') + ']'; }">
<option value="" <option value=""