Commit 94002b21 by Oláh István Gergely

dashboard: create new method in view-GroupDetails: add_username

parent 106769aa
......@@ -88,7 +88,7 @@
</tr>
</tbody>
</table>
<textarea class="form-control"></textarea>
<textarea name="perm-new-list" class="form-control"></textarea>
<div class="form-actions">
<button type="submit" class="btn btn-success">{% trans "Save" %}</button>
......
......@@ -599,8 +599,11 @@ class GroupDetailView(CheckedDetailView):
return self.__add_user(request)
def __add_user(self, request):
self.object = self.get_object()
name = request.POST['list-new-name']
return self.__add_username(request, name)
def __add_username(self, request, name):
self.object = self.get_object()
if not name:
return
try:
......
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