Commit 9c872704 by Oláh István Gergely

dashboard: add add_user skeleton to GroupDetails

parent 345ff036
......@@ -43,7 +43,7 @@
<td><a data-groupmember-pk="{{}}" href="{% url "dashboard.views.remove-user" %}?next={{ request.path }}" class="real-link groupmember-delete btn btn-link btn-xs"><i class="icon-remove"><span class="sr-only">{% trans "remove" %}</span></i></a></td></tr>
{% endfor %}
<tr><td><i class="icon-plus"></i></td>
<td><input type="text" class="form-control" name="perm-new-name"
<td><input type="text" class="form-control" name="list-new-name"
placeholder="{% trans "Name of user" %}"></td>
......@@ -593,9 +593,15 @@ class GroupDetailView(CheckedDetailView):
return context
def post(self, request, *args, **kwargs):
if request.POST.get('new_name'):
return self.__set_name(request)
if request.POST.get('list-new-name'):
return self.__add_user(request)
def __add_user(self, request):
self.object = self.get_object()
return redirect(reverse_lazy("",
def __set_name(self, request):
self.object = self.get_object()
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 sign in to comment