Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gjl2004yn
jumpserver
提交
f558ded5
J
jumpserver
项目概览
gjl2004yn
/
jumpserver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jumpserver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f558ded5
编写于
9月 11, 2016
作者:
baltery
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Plan delete some view
上级
324bb686
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
17 deletion
+16
-17
apps/perms/templates/perms/perm_user_asset_create.html
apps/perms/templates/perms/perm_user_asset_create.html
+0
-0
apps/perms/templates/perms/user_asset_permission_list.html
apps/perms/templates/perms/user_asset_permission_list.html
+16
-17
未找到文件。
apps/perms/templates/perms/perm_user_asset_create
_update
.html
→
apps/perms/templates/perms/perm_user_asset_create.html
浏览文件 @
f558ded5
文件已移动
apps/perms/templates/perms/
perm_user
_list.html
→
apps/perms/templates/perms/
user_asset_permission
_list.html
浏览文件 @
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>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录