From 7022542bc70c448f71fa56c06d90595e276d7dcc Mon Sep 17 00:00:00 2001 From: maxbr Date: Wed, 5 Oct 2016 14:24:11 +0200 Subject: Sync dashboard user data with jira JIRA: PHAROS-264 Change-Id: Ic4533af04946ee0493c762ca79aaf46ee0f80e00 Signed-off-by: maxbr --- .../src/templates/account/user_list.html | 20 ++++++++++++++------ .../templates/account/userprofile_update_form.html | 10 +++++++++- .../src/templates/dashboard/resource_detail.html | 1 + 3 files changed, 24 insertions(+), 7 deletions(-) (limited to 'tools/pharos-dashboard/src/templates') diff --git a/tools/pharos-dashboard/src/templates/account/user_list.html b/tools/pharos-dashboard/src/templates/account/user_list.html index c2b81938..f18e1618 100644 --- a/tools/pharos-dashboard/src/templates/account/user_list.html +++ b/tools/pharos-dashboard/src/templates/account/user_list.html @@ -5,6 +5,8 @@ Username + Full Name + Email Company SSH Key GPG Key @@ -16,18 +18,24 @@ {{ user.username }} + + {{ user.userprofile.full_name }} + + + {{ user.email }} + {{ user.userprofile.company }} - {% if user.userprofile.ssh_public_key %} - SSH - {% endif %} + {% if user.userprofile.ssh_public_key %} + SSH + {% endif %} - {% if user.userprofile.pgp_public_key %} - GPG - {% endif %} + {% if user.userprofile.pgp_public_key %} + GPG + {% endif %} {% endfor %} diff --git a/tools/pharos-dashboard/src/templates/account/userprofile_update_form.html b/tools/pharos-dashboard/src/templates/account/userprofile_update_form.html index 542ea81e..f4bb7b55 100644 --- a/tools/pharos-dashboard/src/templates/account/userprofile_update_form.html +++ b/tools/pharos-dashboard/src/templates/account/userprofile_update_form.html @@ -16,9 +16,17 @@
{% csrf_token %} {% bootstrap_form form %} +

API Token + + Generate + +

+

{{ token.key }}

+ +

{% buttons %} {% endbuttons %}
diff --git a/tools/pharos-dashboard/src/templates/dashboard/resource_detail.html b/tools/pharos-dashboard/src/templates/dashboard/resource_detail.html index 657d5656..e0b29bd9 100644 --- a/tools/pharos-dashboard/src/templates/dashboard/resource_detail.html +++ b/tools/pharos-dashboard/src/templates/dashboard/resource_detail.html @@ -106,6 +106,7 @@

Email: + {{ resource.owner.email }}