Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f558ded5
Commit
f558ded5
authored
Sep 11, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plan delete some view
parent
324bb686
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
perm_user_asset_create.html
apps/perms/templates/perms/perm_user_asset_create.html
+0
-0
user_asset_permission_list.html
apps/perms/templates/perms/user_asset_permission_list.html
+16
-17
No files found.
apps/perms/templates/perms/perm_user_asset_create
_update
.html
→
apps/perms/templates/perms/perm_user_asset_create.html
View file @
f558ded5
File moved
apps/perms/templates/perms/
perm_user
_list.html
→
apps/perms/templates/perms/
user_asset_permission
_list.html
View file @
f558ded5
...
...
@@ -9,34 +9,33 @@
<th
class=
"text-center"
>
<input
type=
"checkbox"
id=
"check_all"
onclick=
"checkAll('check_all', 'checked')"
>
</th>
<th
class=
"text-center"
><a
href=
"{% url 'users:user-list' %}?sort=name"
>
{% trans 'Name' %}
</a></th>
<th
class=
"text-center"
><a
href=
"{% url 'users:user-list' %}?sort=username"
>
{% trans 'Username' %}
</a></th>
<th
class=
"text-center"
>
{% trans 'Role' %}
</th>
<th
class=
"text-center"
>
{% trans 'Asset num' %}
</th>
<th
class=
"text-center"
>
{% trans 'Asset group' %}
</th>
<th
class=
"text-center"
>
{% trans 'System user' %}
</th>
<th
class=
"text-center"
><a
href=
"{% url 'users:user-list' %}?sort=date_expired"
>
{% trans 'Active' %}
</a></th>
<th
class=
"text-center"
><a
href=
"{% url 'perms:user-permission-list' %}?sort=name"
>
{% trans 'Name' %}
</a></th>
<th
class=
"text-center"
><a
href=
"{% url 'perms:user-permission-list' %}?sort=username"
>
{% trans 'Username' %}
</a></th>
<th
class=
"text-center"
>
{% trans 'Asset count' %}
</th>
<th
class=
"text-center"
>
{% trans 'Asset group count' %}
</th>
<th
class=
"text-center"
>
{% trans 'System user count' %}
</th>
<th
class=
"text-center"
><a
href=
"{% url 'users:user-list' %}?sort=date_expired"
>
{% trans 'Is expired' %}
</a></th>
<th
class=
"text-center"
></th>
{% endblock %}
{% block table_body %}
{% for
user in user
_list %}
{% for
permission in user_permission
_list %}
<tr
class=
"gradeX"
>
<td
class=
"text-center"
>
<input
type=
"checkbox"
name=
"checked"
value=
"{{
user
.id }}"
>
<input
type=
"checkbox"
name=
"checked"
value=
"{{
permission
.id }}"
>
</td>
<td
class=
"text-center"
>
<a
href=
"
{% url 'users:user-detail' pk=user.id %}
"
>
{{ user.name }}
<a
href=
""
>
{{
permission.
user.name }}
</a>
</td>
<td
class=
"text-center"
>
{{ user.username }}
</td>
<td
class=
"text-center"
>
{{
user.get_role_display
}}
</td>
<t
h
class=
"text-center"
>
35/40
</th
>
<t
h
class=
"text-center"
>
20
</th
>
<t
h
class=
"text-center"
>
3
</th
>
<td
class=
"text-center"
>
{{
permission.
user.username }}
</td>
<td
class=
"text-center"
>
{{
permission.assets.count
}}
</td>
<t
d
class=
"text-center"
>
{{ permission.asset_groups.count }}
</td
>
<t
d
class=
"text-center"
>
{{ permission.system_users.count }}
</td
>
<t
d
class=
"text-center"
>
{{ permission.is_expired }}
</td
>
<td
class=
"text-center"
>
<a
href=
"{% url 'perms:
perm-user-asset
-create' pk=user.id %}"
class=
"btn btn-xs btn-info"
>
{% trans 'Create perm' %}
</a>
<a
href=
"{% url 'perms:
user-asset-permission
-create' pk=user.id %}"
class=
"btn btn-xs btn-info"
>
{% trans 'Create perm' %}
</a>
<a
href=
"{% url 'users:user-delete' pk=user.id %}"
class=
"btn btn-xs btn-danger del {% if user.id == request.user.id or user.username == 'admin' %} disabled {% endif %}"
>
{% trans 'Flush' %}
</a>
</td>
</tr>
...
...
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