Commit 87264f60 authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the view and template

I updated the Proof of Concept for the view and template in order to
display few information related to the user (namely the email and ssh
public key)
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 19101e9b
from django.shortcuts import render
from .models import User, Quota
from django.contrib.auth.models import User
def index(request):
......@@ -8,5 +8,6 @@ def index(request):
def user(request):
quotas = Quota.objects.all()
# quotas = Quota.objects.all()
users = User.objects.all()
return render(request, "user.html", locals())
......@@ -12,10 +12,10 @@
<th>Webapp ID</th>
</tr>
{% for quota in quotas %}
{% for user in users %}
<tr>
<td>{{ quota.user.email }}</td>
<td>{{ quota.user_id }} | {{ quota.user.id }}</td>
<td>{{ user.email }}</td>
<td>{{ user.allgouser.sshkey }} | {{ quota.user.id }}</td>
<td>{{ quota.quantity }}</td>
<td>{{ quota.webapp_id }}</td>
</tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment