Revert "changed name of templates DetailView to assignment_detail and ListView to assignment_list"

This reverts commit 72d6f916.
parent 72d6f916
{% extends 'base.html' %}
{% load static %}
{% block styles %}
<link rel="stylesheet" href="{% static 'assignments/css/style.css' %}">
{% endblock %}
{% block title %}Assignments{% endblock %}
{% block header %}Assignments Per Course{% endblock %}
{% block content %}
<p id="table-caption">List of courses:</p>
{% if all_courses.count == 0 %}
<p id="no-courses">No courses found.</p>
{% else %}
{% for course in all_courses %}
<ul class="table">
<li><strong>{{course.code}} {{course.title}} {{course.section}}</strong></li>
<ul class="subtable">
{% if course.assignment_set.all.count == 0 %}
<li>No assignments found.</li>
{% else %}
{% for assignment in course.assignment_set.all %}
<a class="table-links" href='{{request.path}}{{assignment.pk}}/details'><li class="assignment-name">{{assignment.name}}</li></a>
{% endfor %}
{% endif %}
</ul>
</ul>
<div class="table-gutter"></div>
{% endfor %}
{% endif %}
{% endblock %}
\ No newline at end of file
<!-- homepage/widgetuser_form.html -->
{% extends 'base.html' %}
{% load static %}
{% block title %}Create Assignment{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'assignments/css/style.css' %}">
{% endblock %}
{% block header %}
New Assignment
{% endblock %}
{% block content %}
<form enctype="multipart/form-data" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Assignment">
</form>
{% 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