Skip to content

Commit

Permalink
fix role_id hidden input
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Mar 28, 2020
1 parent 0e8def1 commit 9199242
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions warehouse/templates/manage/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ <h2>{% trans %}Collaborators{% endtrans %}</h2>
{% else %}
<form class="table__change-role" method="POST" action="{{ request.route_path('manage.project.change_role', project_name=project.name) }}">
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
{% for role in roles %}
<input type="hidden" name="role_id" value="{{ role.id }}">
{% endfor %}
<input type="hidden" name="role_id" value="{{ role.id }}">

<label for="role-for-{{ role.id }}" class="sr-only">{% trans %}Role{% endtrans %}</label>
<select id="role-for-{{ role.id }}" class="table__change-field" name="role_name" data-original="{{ role.role_name }}" autocomplete="off">
Expand Down

0 comments on commit 9199242

Please sign in to comment.