Commit 0572e0e0 authored by John Tamano's avatar John Tamano

added base.html to extend all homepage templates

parent 9e1ef9a0
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<title>{% block title %}{% endblock %}</title>
{% block styles %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
\ No newline at end of file
{% extends "homepage/base.html" %}
{% block content %}
<p1>
{{widgetuserdetails.last_name}},
{{widgetuserdetails.first_name}}
......@@ -8,4 +11,6 @@
<li>{{widgetuserdetails.department.dept_name}}</li>
<li>{{widgetuserdetails.department.home_unit}}</li>
</p1>
<img src="https://thumbs.dreamstime.com/b/default-avatar-profile-vector-user-profile-default-avatar-profile-vector-user-profile-profile-179376714.jpg" style="width: 100px;height: 100px;">
\ No newline at end of file
<img src="https://thumbs.dreamstime.com/b/default-avatar-profile-vector-user-profile-default-avatar-profile-vector-user-profile-profile-179376714.jpg" style="width: 100px;height: 100px;">
{% endblock %}
\ No newline at end of file
<html>
{% extends "homepage/base.html" %}
{% block content %}
<h1>Welcome to Widget!</h1>
<p1>Widget Users:</p1>
<ol>
......@@ -8,4 +10,4 @@
</p1>
{% endfor %}
</ol>
</html>
\ No newline at end of file
{% endblock %}
\ No newline at end of file
......@@ -25,6 +25,6 @@ def displayUserDetails(request, user_id):
context = {
"widgetuserdetails" : widgetuserdetails
}
return render(request, "users/details.html", context)
return render(request, "homepage/details.html", context)
# Create your views here.
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