You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="fas fa-xmark light-link" data-bs-toggle="tooltip" data-bs-placement="top" title="{% trans 'Grade documents for this course will not be uploaded. Click to change.' %}"></span>
<spanslot="title">{% trans 'Will final grades be uploaded?' %}</span>
64
+
<spanslot="action-text">{% trans 'Confirm' %}</span>
65
+
<spanslot="question">
66
+
{% blocktrans with course_name=course.name %}
67
+
Please confirm that a grade document for the course <strong>{{ course_name }}</strong> will be uploaded later on.
68
+
{% endblocktrans %}
69
+
</span>
70
+
71
+
<aslot="show-button" href="#">
72
+
<spanclass="fas fa-xmark light-link" data-bs-toggle="tooltip" data-bs-placement="top" title="{% trans 'Grade documents for this course will not be uploaded. Click to change.' %}"></span>
73
+
</a>
74
+
</confirmation-modal>
65
75
{% endif %}
66
76
</td>
67
77
<tdclass="text-end" style="min-width:72px">
68
78
{% if not course.gets_no_grade_documents %}
69
79
{% if num_final_grades == 0 %}
70
-
<buttontype="button" {{disable_if_archived}}onclick="confirmNouploadModalShow({{ course.id }}, '{{ course.name|escapejs }}');" class="btn btn-sm btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="{% trans 'Confirm that final grades have been submitted but will not be uploaded.' %}">
<spanslot="title">{% trans 'Have final grades been submitted?' %}</span>
82
+
<spanslot="action-text">{% trans 'Confirm' %}</span>
83
+
<spanslot="question">
84
+
{% blocktrans with course_name=course.name %}
85
+
Please confirm that the final grades for the course <strong>{{ course_name }}</strong> have been submitted but will not be uploaded.
86
+
{% endblocktrans %}
87
+
</span>
88
+
89
+
<buttonslot="show-button" type="button" {{disable_if_archived}}class="btn btn-sm btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="{% trans 'Confirm that final grades have been submitted but will not be uploaded.' %}">
90
+
<spanclass="fas fa-xmark"></span>
91
+
</button>
92
+
</confirmation-modal>
93
+
73
94
<divclass="btn-group" role="group" data-bs-toggle="tooltip" data-bs-placement="top" title="{% trans 'Upload grade document' %}">
<spanclass="fst-italic">{% trans 'No courses have been created yet' %}</span>
93
128
{% endif %}
94
129
</div>
95
130
</div>
96
131
{% endblock %}
97
132
98
-
{% block modals %}
99
-
{{ block.super }}
100
-
{% trans 'Have final grades been submitted?' as title %}
101
-
{% trans 'Please confirm that the final grades for the course <strongdata-label=""></strong> have been submitted but will not be uploaded.' as question %}
102
-
{% trans 'Confirm' as action_text %}
103
-
{% include 'confirmation_modal.html' with modal_id='confirmNouploadModal' title=title question=question action_text=action_text btn_type='primary' %}
104
-
<scripttype="text/javascript">
105
-
functionconfirmNouploadModalAction(dataId){
106
-
$.ajax({
107
-
type: "POST",
108
-
url: "{% url 'grades:toggle_no_grades' %}",
109
-
data: {"course_id": dataId},
110
-
success: function(){location.reload();},
111
-
error: function(){}
112
-
});
113
-
};
114
-
</script>
115
-
{% trans 'Will final grades be uploaded?' as title %}
116
-
{% trans 'Please confirm that a grade document for the course <strongdata-label=""></strong> will be uploaded later on.' as question %}
117
-
{% trans 'Confirm' as action_text %}
118
-
{% include 'confirmation_modal.html' with modal_id='confirmLateruploadModal' title=title question=question action_text=action_text btn_type='primary' %}
<spanslot="title">{% trans 'Activate reward points' %}</span>
77
+
<spanslot="action-text">{% trans 'Activate reward points' %}</span>
78
+
<spanslot="question">
79
+
{% blocktrans with semester_name=semester.name %}
80
+
Do you want to activate the reward points for the semester <strong>{{ semester_name }}</strong>?
81
+
The activation will allow participants to receive reward points when voting and will also grant all eligible points for participants who have already voted so far.
<buttontype="submit" name="activation_status" value="off" form="form_activation_status" class="btn btn-sm btn-light{% if not rewards_active %} active{% endif %}"><spanclass="fas fa-xmark" aria-hidden="true"></span></button>
77
95
</div>
78
96
</div>
@@ -554,15 +572,6 @@ <h3>
554
572
});
555
573
};
556
574
</script>
557
-
{% trans 'Activate reward points' as title %}
558
-
{% blocktrans asvar question %}Do you want to activate the reward points for the semester <strongdata-label=""></strong>? The activation will allow participants to receive reward points when voting and will also grant all eligible points for participants who have already voted so far. The process will take a while.{% endblocktrans %}
559
-
{% trans 'Activate reward points' as action_text %}
560
-
{% include 'confirmation_modal.html' with modal_id='activateRewardPointsModal' title=title question=question action_text=action_text btn_type='primary' %}
0 commit comments