Commit f0edce16 authored by Joseph Izon's avatar Joseph Izon 💀

fix detail page to match new arrangement of models

parent 0454a345
...@@ -4,15 +4,18 @@ ...@@ -4,15 +4,18 @@
<h1> {{ users.last_name }}, {{ users.first_name }} {{users.middle_name}} </h1> <h1> {{ users.last_name }}, {{ users.first_name }} {{users.middle_name}} </h1>
{% for dept in dept_list %} <p>{{users.id_num}}</p>
{% if dept.user.last_name == users.last_name %} <p>{{users.email}}</p>
<p>{{dept.user.id_num}}</p> <p>{{users.dept.dept_name}}</p>
<p>{{dept.user.email}}</p> <p>{{users.dept.home_unit}}</p>
<p>{{dept.dept_name}}</p>
<p>{{dept.home_unit}}</p>
{% endif %}
{% endfor %}
<img src= {{users.image.url}}> {% if users.image %}
<img src= {{users.image.url}}>
{% else %}
{% endif %}
{% endblock %} {% endblock %}
\ No newline at end of file
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