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
3ce61935
authored
Jan 26, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix copypaste errors
parent
20dd2231
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
circle/dashboard/templates/dashboard/index-users.html
+1
-1
circle/dashboard/templates/dashboard/user-create.html
+1
-2
circle/dashboard/templates/dashboard/user-list.html
+1
-1
circle/dashboard/views/user.py
+12
-0
No files found.
circle/dashboard/templates/dashboard/index-users.html
View file @
3ce61935
...
...
@@ -40,7 +40,7 @@
{% trans "list" %}
{% endif %}
</a>
<a
class=
"btn btn-success btn-xs user-create"
href=
"{% url "
dashboard
.
views
.
group
-create
"
%}"
><i
class=
"fa fa-plus-circle"
></i>
{% trans "new" %}
</a>
<a
class=
"btn btn-success btn-xs user-create"
href=
"{% url "
dashboard
.
views
.
user
-create
"
%}"
><i
class=
"fa fa-plus-circle"
></i>
{% trans "new" %}
</a>
</div>
</div>
</div>
...
...
circle/dashboard/templates/dashboard/user-create.html
View file @
3ce61935
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block content %}
{% crispy form %}
{% crispy form %}
{% endblock %}
circle/dashboard/templates/dashboard/user-list.html
View file @
3ce61935
...
...
@@ -11,7 +11,7 @@
<div
class=
"col-md-12"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<a
href=
"{% url "
dashboard
.
views
.
user-create
"
%}"
class=
"pull-right btn btn-success btn-xs
template-choose
"
>
<a
href=
"{% url "
dashboard
.
views
.
user-create
"
%}"
class=
"pull-right btn btn-success btn-xs"
>
<i
class=
"fa fa-plus"
></i>
{% trans "new user" %}
</a>
<h3
class=
"no-margin"
><i
class=
"fa fa-user"
></i>
{% trans "Users" %}
</h3>
...
...
circle/dashboard/views/user.py
View file @
3ce61935
...
...
@@ -273,6 +273,18 @@ class UserCreationView(LoginRequiredMixin, PermissionRequiredMixin,
template_name
=
'dashboard/user-create.html'
permission_required
=
"auth.add_user"
def
get_template_names
(
self
):
return
[
'dashboard/nojs-wrapper.html'
]
def
get_context_data
(
self
,
*
args
,
**
kwargs
):
context
=
super
(
UserCreationView
,
self
)
.
get_context_data
(
*
args
,
**
kwargs
)
context
.
update
({
'template'
:
self
.
template_name
,
'box_title'
:
_
(
'Create a User'
),
})
return
context
def
get_success_url
(
self
):
return
reverse
(
'dashboard.views.profile'
,
args
=
[
self
.
object
.
username
])
...
...
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