This commit is contained in:
Ross
2022-01-03 17:04:26 +00:00
parent 037f450429
commit 6cc8dd139c
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -591,14 +591,14 @@ table.longs .user-answer-score- {
border: 1px dotted gray;
opacity: 20%;
border-radius: 4px;
display: none;
display: inline-block;
}
.published-icon:hover {
opacity: 100%;
}
.published-icon.published {
.exam-publish-results-switch + .published-icon {
border: 1px solid purple;
color: purple;
opacity: 100%;
+2 -2
View File
@@ -591,14 +591,14 @@ table.longs .user-answer-score- {
border: 1px dotted gray;
opacity: 20%;
border-radius: 4px;
display: none;
display: inline-block;
}
.published-icon:hover {
opacity: 100%;
}
.published-icon.published {
.exam-publish-results-switch + .published-icon {
border: 1px solid purple;
color: purple;
opacity: 100%;
+2 -2
View File
@@ -12,8 +12,8 @@
{% if marking %}<a href="{% url app_name|add:':mark_overview' pk=exam.pk %}" class="flex-col">Mark</a>{% endif %}
<a href="{% url app_name|add:':exam_cids' exam_id=exam.pk %}" class="flex-col">Candidates</a>
<a href="{% url app_name|add:':exam_scores_cid' pk=exam.pk %}" class="flex-col">Scores</a>
<span class="flex-col icon-container"><span class="published-icon {% if exam.publish_results %}published{% endif %}">Results Published</span></span>
Publish results: <input type="checkbox" class="exam-publish-results-switch" data-posturl="{% url app_name|add:':exam_toggle_results_published' pk=exam.pk %}"
<label for="{{exam.pk}}-pub" class="flex-col icon-container published-icon {% if exam.publish_results %}published{% endif %}">Results Published</label>
<input type="checkbox" id="{{exam.pk}}-pub" class="exam-publish-results-switch" data-posturl="{% url app_name|add:':exam_toggle_results_published' pk=exam.pk %}"
{% if exam.publish_results %}checked{% endif %}>
</li>
{% endif %}