diff --git a/accounts/templates/accounts-list.html b/accounts/templates/accounts-list.html
new file mode 100644
index 0000000..c6d5796
--- /dev/null
+++ b/accounts/templates/accounts-list.html
@@ -0,0 +1,175 @@
+{% extends "base.html" %}
+{% load i18n %}
+{% load staticfiles %}
+{% block title %}{% trans "Users" %}{% endblock %}
+{% block content %}
+
+
+
+ {% include 'create_user_block.html' %}
+
+
+
+
+
+
+
+
+ {% include 'errors_block.html' %}
+
+
+ {% if not users %}
+
+
+
+ {% trans "Warning:" %} {% trans "You don't have any User" %}
+
+
+ {% else %}
+
+
+
+
+ Username |
+ Status |
+ Staff |
+ Superuser |
+ Clone |
+
+
+
+ {% for user in users %}
+
+
+ {{ user.username }}
+
+
+
+ |
+
+ {% if user.is_active %}
+ {% trans "Active" %}
+ {% else %}
+ {% trans "Blocked" %}
+ {% endif %}
+ |
+ {% if user.is_staff %}{% endif %} |
+ {% if user.is_superuser %}{% endif %} |
+ {% if user.userattributes.can_clone_instances %}{% endif %} |
+
+ {% endfor %}
+
+
+
+ {% for user in users %}
+
+
+ {% endfor %}
+
+ {% endif %}
+
+{% endblock %}
+{% block script %}
+
+{% endblock %}
diff --git a/accounts/views.py b/accounts/views.py
index 5fdfb4d..00bd392 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -130,7 +130,10 @@ def accounts(request):
user_delete.delete()
return HttpResponseRedirect(request.get_full_path())
- return render(request, 'accounts.html', locals())
+ accounts_template_file = 'accounts.html'
+ if settings.VIEW_ACCOUNTS_STYLE == "list":
+ accounts_template_file = 'accounts-list.html'
+ return render(request, accounts_template_file, locals())
@login_required
diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template
index 8b0c6a7..c78ec8c 100644
--- a/webvirtcloud/settings.py.template
+++ b/webvirtcloud/settings.py.template
@@ -124,6 +124,10 @@ QUOTA_DEBUG = True
ALLOW_EMPTY_PASSWORD = True
SHOW_ACCESS_ROOT_PASSWORD = False
SHOW_ACCESS_SSH_KEYS = False
+
+# available: default (grid), list
+VIEW_ACCOUNTS_STYLE = 'grid'
+
SHOW_PROFILE_EDIT_PASSWORD = False
INSTANCE_VOLUME_DEFAULT_FORMAT = 'qcow2'
INSTANCE_VOLUME_DEFAULT_BUS = 'virtio'