Commit 9c871bca authored by Joseph Izon's avatar Joseph Izon 💀

Add the base.html, detail.html, and index.html files like no ciap

parent 34954a08
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href ={% static 'homepage/style.css' %}>
<title>Project Jupert</title>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
{% extends "homepage/base.html" %}
{% block content %}
<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 %}
<img src= {{users.image.url}}>
{% endblock %}
\ No newline at end of file
{% extends "homepage/base.html" %}
{% block content %}
<h1> Welcome to Widget!</h1>
<h3> Widget Users:</h3>
{% if user_list %}
<ol>
{% for user in user_list %}
<li><a href="{% url 'homepages:detail' user.id %}">{{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a> </li>
{% endfor %}
</ol>
{% else %}
<p> No articles are available. </p>
{% 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