Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
94002b21
authored
Mar 10, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: create new method in view-GroupDetails: add_username
parent
106769aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
circle/dashboard/templates/dashboard/group-detail.html
+1
-1
circle/dashboard/views.py
+4
-1
No files found.
circle/dashboard/templates/dashboard/group-detail.html
View file @
94002b21
...
...
@@ -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>
...
...
circle/dashboard/views.py
View file @
94002b21
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment