Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
4aa501dd
Commit
4aa501dd
authored
Mar 07, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapa en modal
parent
dd55f764
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
users_table.html
administration/templates/users_table.html
+7
-7
views.py
administration/views.py
+1
-1
No files found.
administration/templates/users_table.html
View file @
4aa501dd
...
@@ -153,9 +153,7 @@
...
@@ -153,9 +153,7 @@
<td>
<td>
<input
type=
"checkbox"
name=
"is_staff"
value=
"1"
<input
type=
"checkbox"
name=
"is_staff"
value=
"1"
{%
if
not
request
.
user
.
is_superuser
%}
disabled
{%
endif
%}
{%
if
not
request
.
user
.
is_superuser
%}
disabled
{%
endif
%}
{%
if
user
.
staff =
=
True
%}
checked
{%
endif
%}
{%
if
user
.
staff =
=
True
%}
checked
{%
endif
%}
>
>
</td>
</td>
<td>
<td>
<input
type=
"checkbox"
name=
"is_superuser"
value=
"1"
<input
type=
"checkbox"
name=
"is_superuser"
value=
"1"
...
@@ -165,9 +163,11 @@
...
@@ -165,9 +163,11 @@
<td>
<td>
<button
title=
"save"
type=
"submit"
class=
"btn btn-success"
><i
<button
title=
"save"
type=
"submit"
class=
"btn btn-success"
><i
class=
"fa fa-save"
></i></button>
class=
"fa fa-save"
></i></button>
<a
href=
"{{ BASE_URL }}/users/{{ user.user_id }}"
class=
"btn btn-info"
title=
"View profile"
><i
{% if Viewname != "Request" %}
<a
href=
"{{ BASE_URL }}/users/{{ user.user_id }}"
class=
"btn btn-info"
title=
"View profile"
><i
class=
"fa fa-user-circle"
></i></a>
class=
"fa fa-user-circle"
></i></a>
{% endif %}
</td>
</td>
</form>
</form>
</tr>
</tr>
...
...
administration/views.py
View file @
4aa501dd
...
@@ -161,7 +161,7 @@ def active_users(request):
...
@@ -161,7 +161,7 @@ def active_users(request):
"superuser"
:
user
.
is_superuser
,
"superuser"
:
user
.
is_superuser
,
})
})
# messages.success(request, 'your registration is being processed')
# messages.success(request, 'your registration is being processed')
return
render
(
request
,
'users_table.html'
,
{
'users'
:
user_list
,
"Viewname"
:
"
Request
"
})
return
render
(
request
,
'users_table.html'
,
{
'users'
:
user_list
,
"Viewname"
:
"
Active Users
"
})
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
...
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