Commit aa37623d authored by Adorilson Bezerra's avatar Adorilson Bezerra Committed by Claude Paroz

Allow coordinators to mark translators as inactive (Fixes #634130)

parent 30a5208d
......@@ -18,6 +18,7 @@ class EditMemberRoleForm(forms.Form):
def __init__(self, roles, *args, **kwargs):
super(EditMemberRoleForm, self).__init__(*args, **kwargs)
choices = list(filter(lambda x:x[0]!='coordinator', ROLE_CHOICES))
choices.append(('inactivate', _("Mark as Inactive")))
choices.append(('remove', _("Remove From Team")))
for role in roles:
self.fields[str(] = forms.ChoiceField(
......@@ -98,6 +98,9 @@ def team(request, team_slug):
role = Role.objects.get(pk=key)
if form_value == "remove":
elif form_value == "inactivate":
role.is_active = False
role.role = form_value
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