diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 12:18:20 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 12:18:20 +0100 |
commit | 5034e4833fe67932ba1a2caf31d19912d64f62cf (patch) | |
tree | 73f27ab3a32f8f9ef87aa74d1e05e9271a5ff0da | |
parent | b573affe7d20ee703e7823ddaf8662bef7e01093 (diff) |
wip: improving the inspector profile page
-rw-r--r-- | core/templates/core/base.html | 2 | ||||
-rw-r--r-- | core/templates/core/profile.html | 28 |
2 files changed, 23 insertions, 7 deletions
diff --git a/core/templates/core/base.html b/core/templates/core/base.html index 787718b..e69eaeb 100644 --- a/core/templates/core/base.html +++ b/core/templates/core/base.html @@ -14,7 +14,7 @@ <title>{% block title %}{% endblock title %}</title> {% block extra_head_tags %}{% endblock extra_head_tags %} </head> -<body> +<body class="bg-gray-100"> {% block navbar %} <nav class="bg-blue-600 p-4"> <div class="container mx-auto flex items-center justify-between"> diff --git a/core/templates/core/profile.html b/core/templates/core/profile.html index 8171379..66184f6 100644 --- a/core/templates/core/profile.html +++ b/core/templates/core/profile.html @@ -4,10 +4,26 @@ {% block content %} -<div class="container"> - {% block body %} - <h1>Profile for {{ user }} ({{ user.first_name }} {{ user.last_name }})</h1> - <p>Email: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p> - {% endblock body %} -{% endblock content %} +<div class="container my-4 bg-white"> + <div class="py-3 rounded border border-2"> + <div class="p-4"> + <h1 class="font-bold text-lg">{{ user.first_name }} {{ user.last_name }} <span class="text-zinc-400 text-md font-normal"> ⚬ {{ user.designation }} {{ user.team.name }} </span></h1> + </div> + <div> + <p class="pl-4 pb-2">{{ user.dapsy }}</p> + </div> + <hr> + <div class="py-2 px-4"> + <p>Lead inspector for :</p> + <ul class="list-disc px-2 mt-4"> + {% for org in user.lead_for.all%} + <li class="ml-4"> + <a href="#" class="text-blue-600 hover:underline">{{ org.name }}</a> + </li> + {% endfor %} + </ul> + </div> + </div> </div> + +{% endblock content %} |