diff --git a/apps/perms/templates/perms/perm_user_asset_create_update.html b/apps/perms/templates/perms/perm_user_asset_create.html similarity index 100% rename from apps/perms/templates/perms/perm_user_asset_create_update.html rename to apps/perms/templates/perms/perm_user_asset_create.html diff --git a/apps/perms/templates/perms/perm_user_list.html b/apps/perms/templates/perms/user_asset_permission_list.html similarity index 62% rename from apps/perms/templates/perms/perm_user_list.html rename to apps/perms/templates/perms/user_asset_permission_list.html index ac5e40871..f705a83b8 100644 --- a/apps/perms/templates/perms/perm_user_list.html +++ b/apps/perms/templates/perms/user_asset_permission_list.html @@ -9,34 +9,33 @@ - {% trans 'Name' %} - {% trans 'Username' %} - {% trans 'Role' %} - {% trans 'Asset num' %} - {% trans 'Asset group' %} - {% trans 'System user' %} - {% trans 'Active' %} + {% trans 'Name' %} + {% trans 'Username' %} + {% trans 'Asset count' %} + {% trans 'Asset group count' %} + {% trans 'System user count' %} + {% trans 'Is expired' %} {% endblock %} {% block table_body %} - {% for user in user_list %} + {% for permission in user_permission_list %} - + - - {{ user.name }} + + {{ permission.user.name }} - {{ user.username }} - {{ user.get_role_display }} - 35/40 - 20 - 3 + {{ permission.user.username }} + {{ permission.assets.count }} + {{ permission.asset_groups.count }} + {{ permission.system_users.count }} + {{ permission.is_expired }} - {% trans 'Create perm' %} + {% trans 'Create perm' %} {% trans 'Flush' %}