Skip to content

Commit

Permalink
Add missing label to role form (#6497)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlhkabu committed Aug 20, 2019
1 parent a37521c commit 7991c71
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions warehouse/templates/manage/roles.html
Expand Up @@ -75,12 +75,13 @@ <h2>Collaborators</h2>
<input type="hidden" name="role_id" value="{{ role.id }}">
{% endfor %}

<select class="change-field" name="role_name" data-original="{{ role.role_name }}">
{% for role_name in ['Owner', 'Maintainer'] %}
<option value="{{ role_name }}" {{ 'selected' if role_name == role.role_name else '' }}>
{{ role_name }}
</option>
{% endfor %}
<label for="role-for-{{ role.id }}" class="sr-only">Role</label>
<select id="role-for-{{ role.id }}" class="change-field" name="role_name" data-original="{{ role.role_name }}">
{% for role_name in ['Owner', 'Maintainer'] %}
<option value="{{ role_name }}" {{ 'selected' if role_name == role.role_name else '' }}>
{{ role_name }}
</option>
{% endfor %}
</select>
<button type="submit" class="button button--primary change-button" title="Save role">
Save
Expand Down

0 comments on commit 7991c71

Please sign in to comment.