Commit 67c4d621 authored by Paul Angelo Sy's avatar Paul Angelo Sy

Added base.html template

parent a13a56d8
<h1> {{course}} {{course.course_title}}</h1>
<li> Name: {{assignment.name}} </li>
<li> Description: {{assignment.description}} </li>
<li> Perfect Score: {{assignment.max_points}} </li>
<li> Passing Score: {{assignment.passing_score}} </li>
{% extends 'base.html' %}
{% block content %}
<h1> {{course}} {{course.course_title}}</h1>
<li> Name: {{assignment.name}} </li>
<li> Description: {{assignment.description}} </li>
<li> Perfect Score: {{assignment.max_points}} </li>
<li> Passing Score: {{assignment.passing_score}} </li>
{% endblock %}
<h1> Assignments Per Course </h1>
{% if course_list %}
{% extends 'base.html' %}
{% block content %}
<h1> Assignments Per Course </h1>
{% if course_list %}
{% for course in course_list %}
<li> {{course}} {{course.course_title}} {{course.section}}
{% for assignment in assignment_list %}
{% if assignment.course_code == course %}
<ul>
<li> <a href="{% url 'detail' assignment.name%}">{{assignment.name}}</a></li>
<li> <a href="/assignments/{{assignment.name}}/">{{assignment.name}}</a></li>
</ul>
{% endif %}
{% endfor %}
......@@ -13,4 +16,5 @@
{% endfor %}
{% else %}
<p>No assignments are available </p>
{% endif %}
{% endif %}
{% endblock %}
{% 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, inital-scale=1.0">
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
......@@ -62,7 +62,7 @@ ROOT_URLCONF = 'widget_tee_jays_angelos.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
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