Commit 0770059c authored by Paul Angelo Sy's avatar Paul Angelo Sy

Merge branch 'sy/assignments'

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