-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
240 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{% extends 'crowdsourcer/base.html' %} | ||
|
||
{% load crowdsourcer_tags %} | ||
|
||
{% block content %} | ||
{% if show_login %} | ||
<h1 class="mb-4">Sign in</h1> | ||
<a href="{% url 'login' %}">Sign in</a> | ||
{% else %} | ||
<h1 class="mb-4">Reponse History</h1> | ||
|
||
{% if missing_question %} | ||
<p> | ||
Could not find that question | ||
</p> | ||
{% else %} | ||
<h3 class="mb-3">{{ question.section.title }}: {{ question }}</h3> | ||
{% if responses is None %} | ||
<p> | ||
No responses to that question so far. | ||
</p> | ||
{% else %} | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Date</th> | ||
<th>User</th> | ||
<th>Response</th> | ||
<th>Notes</th> | ||
<th>Links</th> | ||
<th>Private notes</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for response in responses %} | ||
<tr> | ||
<td> | ||
{{ response.history_date }} | ||
</td> | ||
<td> | ||
{{ response.user }} | ||
</td> | ||
<td> | ||
{% if response.multi_option %} | ||
{% for r in response.multi_option %} | ||
{{ r }}, | ||
{% endfor %} | ||
{% else %} | ||
{{ response.option }} | ||
{% endif %} | ||
</td> | ||
<td> | ||
{{ response.evidence }} | ||
</td> | ||
<td> | ||
{{ response.public_notes }} | ||
</td> | ||
<td> | ||
{{ response.private_notes }} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
{% endblock %} |
29 changes: 29 additions & 0 deletions
29
crowdsourcer/templates/crowdsourcer/response_history_authorities.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,29 @@ | ||
{% extends 'crowdsourcer/base.html' %} | ||
|
||
{% load crowdsourcer_tags %} | ||
|
||
{% block content %} | ||
{% if show_login %} | ||
<h1 class="mb-4">Sign in</h1> | ||
<a href="{% url 'login' %}">Sign in</a> | ||
{% else %} | ||
<h1 class="mb-4">{{ session.entity_name }} History</h1> | ||
<p> | ||
Click on an authority to see the list of questions for that authority. | ||
</p> | ||
|
||
<table class="table sticky-head-table"> | ||
<tbody> | ||
{% for authority in authorities %} | ||
<tr> | ||
<td class="align-middle"> | ||
<a href="{% session_url 'question_history_list' authority.name %}" class="d-flex align-items-center"> | ||
{{ authority.name }} | ||
</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endif %} | ||
{% endblock %} |
51 changes: 51 additions & 0 deletions
51
crowdsourcer/templates/crowdsourcer/response_history_questions.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,51 @@ | ||
{% extends 'crowdsourcer/base.html' %} | ||
|
||
{% load crowdsourcer_tags %} | ||
|
||
{% block content %} | ||
{% if show_login %} | ||
<h1 class="mb-4">Sign in</h1> | ||
<a href="{% url 'login' %}">Sign in</a> | ||
{% else %} | ||
<h1 class="mb-4">Question Data</h1> | ||
<table class="table sticky-head-table"> | ||
<thead> | ||
<tr> | ||
<th>Question</th> | ||
<th>First Mark</th> | ||
<th>Right of Reply</th> | ||
<th>Audit</th> | ||
</tr> | ||
</thead> | ||
{% for section, data in sections.items %} | ||
<tbody> | ||
<tr class="sticky-subhead"> | ||
<td class="align-middle h5 lh-1" colspan="4">{{ section }}</td> | ||
</tr> | ||
{% for q in data %} | ||
<tr> | ||
<td class="align-middle"> | ||
{{ q.number_and_part }} - {{ q.description }} | ||
</td> | ||
<td class="align-middle"> | ||
<a href="{% session_url 'question_history' authority.name 'First Mark' q.id %}" class="d-flex align-items-center"> | ||
View | ||
</a> | ||
</td> | ||
<td class="align-middle"> | ||
<a href="{% session_url 'question_history' authority.name 'Right of Reply' q.id %}" class="d-flex align-items-center"> | ||
View | ||
</a> | ||
</td> | ||
<td class="align-middle"> | ||
<a href="{% session_url 'question_history' authority.name 'Audit' q.id %}" class="d-flex align-items-center"> | ||
View | ||
</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
{% endfor %} | ||
</table> | ||
{% 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