Commit 13686613 authored by Paul Angelo Sy's avatar Paul Angelo Sy

Merge branch sy/assignments

parents 0770059c 954a1d5e
h1 {
color: blue;
font-weight: bold;
}
ul li {
text-decoration: underline;
}
li {
padding-bottom: 20px;
}
.bold{
font-weight: bold;
color: red;
font-size: 20px;
}
.small{
font-weight: normal
color: black;
font-size: 17px;
}
{% extends 'base.html' %} {% extends 'base.html' %}
{% block head %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'assignments/style.css' %}">
{% endblock %}
{% block content %} {% block content %}
<h1> {{course}} {{course.course_title}}</h1> <h1> {{course}} {{course.course_title}}</h1>
<li> Name: {{assignment.name}} </li> <li class = "bold"> Name: {{assignment.name}} </li>
<li> Description: {{assignment.description}} </li> <li> Description: {{assignment.description}} </li>
<li> Perfect Score: {{assignment.max_points}} </li> <li> Perfect Score: {{assignment.max_points}} </li>
<li> Passing Score: {{assignment.passing_score}} </li> <li> Passing Score: {{assignment.passing_score}} </li>
......
{% extends 'base.html' %} {% extends 'base.html' %}
{% block head %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'assignments/style.css' %}">
{% endblock %}
{% block content %} {% block content %}
<h1> Assignments Per Course </h1> <h1> Assignments Per Course </h1>
{% if course_list %} {% if course_list %}
{% for course in course_list %} {% for course in course_list %}
<li> {{course}} {{course.course_title}} {{course.section}} <li class = "bold"> {{course}} {{course.course_title}} {{course.section}}
{% for assignment in assignment_list %} {% for assignment in assignment_list %}
{% if assignment.course_code == course %} {% if assignment.course_code == course %}
<ul> <ul class = "small">
<li> <a href="/assignments/{{assignment.name}}/">{{assignment.name}}</a></li> <li> <a href="/assignments/{{assignment.name}}/">{{assignment.name}}</a></li>
</ul> </ul>
{% endif %} {% endif %}
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<meta charset = "UTF-8" <meta charset = "UTF-8"
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge"> <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
<meta name="viewport" content ="width=device-width, inital-scale=1.0"> <meta name="viewport" content ="width=device-width, inital-scale=1.0">
{% block head %}
{% endblock %}
</head> </head>
<body> <body>
{% block content %} {% block content %}
......
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