-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add assignment student detail view basics
A lot more to do here, this just sets up the basic view and various connections. Also, some of the topics tests required some adjustments with these changes. I'm not sure why my changes caused the failures here, but our Topic/django-ordered-model implementation has proven to be quite fragile.
- Loading branch information
Showing
7 changed files
with
102 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
econplayground/templates/assignment/assignment_detail_student.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
|
||
{% block title %}{{ object.title }}{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
<nav aria-label="breadcrumb"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"> | ||
<a href="{% url 'assignment_list' %}" title="Assignment List"> | ||
{% include 'main/your_assignments_snippet.html' %} | ||
</a> | ||
</li> | ||
<li class="breadcrumb-item"> | ||
{{ object.title|truncatewords:5 }} | ||
</li> | ||
</ol> | ||
</nav> | ||
{% endblock %} | ||
|
||
{% block pagetitle %} | ||
<h1>{{ object.title }}</h1> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
Welcome to assignment {{object.pk}}! | ||
</div> | ||
|
||
{% if object.first_step %} | ||
<a href="{% url 'step_detail' object.pk object.first_step.pk %}" | ||
class="btn btn-primary mt-2" | ||
role="button" | ||
title="First question"> | ||
First question | ||
</a> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters