Skip to content

Commit

Permalink
Links to Student previews in the Instructor view for the Assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-CTL committed Nov 20, 2023
1 parent b97c109 commit a62c539
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions econplayground/templates/assignment/assignment_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

{% block pagetitle %}
<div class="float-end">
<a class="btn btn-secondary display-inline mx-2"
role="button"
href="{% url 'assignment_student' object.pk %}"
title="Student preview of {{ object.title }}">
Student Preview
</a>
<a class="btn btn-secondary display-inline"
role="button"
href="{% url 'assignment_assignment_edit' object.pk %}"
Expand Down
8 changes: 8 additions & 0 deletions econplayground/templates/assignment/assignment_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
>
Create Assignment
</a>
<div class="float-end">
<a class="btn btn-secondary display-inline mx-2"
role="button"
href="{% url 'assignment_list_student' %}"
title="Student preview of the Assignment list">
Student Preview
</a>
</div>
{% endif %}
<table class="table">
<thead>
Expand Down

0 comments on commit a62c539

Please sign in to comment.