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 @@
<h1> {{ users.last_name }}, {{ users.first_name }} {{users.middle_name}} </h1>
{% for dept in dept_list %}
{% if dept.user.last_name == users.last_name %}
<p>{{dept.user.id_num}}</p>
<p>{{dept.user.email}}</p>
<p>{{dept.dept_name}}</p>
<p>{{dept.home_unit}}</p>
{% endif %}
{% endfor %}
<p>{{users.id_num}}</p>
<p>{{users.email}}</p>
<p>{{users.dept.dept_name}}</p>
<p>{{users.dept.home_unit}}</p>
<img src= {{users.image.url}}>
{% if users.image %}
<img src= {{users.image.url}}>
{% else %}
{% endif %}
{% 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