Commit 648e7574 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Bug 1796452: Allow role options for group/user to display on edit"

parents 88582508 c335ab77
......@@ -83,9 +83,9 @@
{% if (o.presets.id) { %}<option value="{%=o.presets.id%}">{%=o.presets.name%}</option>{% } %}
</select>
</div>
<span class="picker input-short{% if (!o.presets.role) { %} hidden{% } %}">
<span class="picker input-short{% if (!(o.presets.type == 'group' || o.presets.type == 'user')) { %} hidden {% } %}">
<select data-roles="grouproles" name="accesslist[{%=o.id%}][role]" class="form-control input-small select">
{% if (o.presets.role) { %}
{% if (o.presets.type == 'group' || o.presets.type == 'user') { %}
<option value="" >{%=o.defaultText%}</option>
{% for (var i=0; i<o.roles.length; i++) { %}
<option value="{%=o.roles[i].name%}" {% if (o.presets.role == o.roles[i].name) { %} selected {% } %}>{%=o.roles[i].display%}</option>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment