mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
add accounts view style list. configurable via settings.VIEW_ACCOUNTS_STYLE
This commit is contained in:
parent
8d46bd40fd
commit
43a8fb6dc1
3 changed files with 183 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue