File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 {% if exercise.fields %}
66 {% for entry in exercise.fields %}
77 < div class ="form-group{% if entry.missing %} has-error{% endif %} ">
8- < label for ="exercise-{{ unique_id }}-{{ entry.name }} " class ="control -label ">
8+ < label for ="exercise-{{ unique_id }}-{{ entry.name }} " class ="form -label ">
99 {{ entry.title|safe }}
1010 </ label >
1111 {% if entry.more %}
Original file line number Diff line number Diff line change 33< form method ="post " action ="{{ post_url }} ">
44 {% for entry in result.fields %}
55 < div class ="form-group{% if entry.missing %} has-error{% endif %} ">
6- < label for ="exercise-{{ unique_id }}-{{ entry.name }} " class ="control -label ">
6+ < label for ="exercise-{{ unique_id }}-{{ entry.name }} " class ="form -label ">
77 {{ entry.title|safe }}
88 </ label >
99 {% if entry.more %}
Original file line number Diff line number Diff line change 4444
4545 {% if field.label %}
4646 {% if field.field.choice_list %}
47- < label class ="control -label "> {{ field.label }}</ label >
47+ < label class ="form -label "> {{ field.label }}</ label >
4848 {% else %}
4949 {{ field.label_tag }}
5050 {% endif %}
5454 {% if result.accepted and not result.form.enrollment_exercise %}
5555 <!-- Points badge -->
5656 {% if not exercise.feedback or field.field.points > 0 %}
57- < span class ="badge badge -{% if field.field.grade_points > 0 and field.field.grade_points < field.field.max_points %}warning{% elif field.field.name in result.error_fields %}danger{% else %}success{% endif %} ">
57+ < span class ="badge text-bg -{% if field.field.grade_points > 0 and field.field.grade_points < field.field.max_points %}warning{% elif field.field.name in result.error_fields %}danger{% else %}success{% endif %} ">
5858 {{ field.field.grade_points }} / {{ field.field.max_points }}
5959 </ span >
6060 {% if field.field.max_points == 0 %}
6969 {% endif %}
7070 {% else %}
7171 {% if exercise.max_points > 0 and not exercise.feedback or field.field.points > 0 %}
72- < span class ="badge ">
72+ < span class ="badge text-bg-secondary ">
7373 {% blocktrans trimmed count points=field.field.points %}
7474 POINTS_SINGULAR -- {{ points }}
7575 {% plural %}
Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6- < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css ">
6+ < link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css " rel ="stylesheet " integrity ="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr " crossorigin ="anonymous ">
7+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js " integrity ="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q " crossorigin ="anonymous "> </ script >
78 < script type ="text/javascript " async src ="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML "> </ script >
89 {% block head %}
910 {% endblock %}
You can’t perform that action at this time.
0 commit comments