Skip to content

Commit 6545c8d

Browse files
committed
implement modal
1 parent ea735a5 commit 6545c8d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
<a class="btn btn-sm btn-primary btn-row-hover" href="{% url 'student:vote' evaluation.id %}">{% translate 'Evaluate' %}</a>
2-
<!-- TODO@felix: confirmation modal -->
3-
<a class="btn btn-sm btn-secondary" title="{% translate 'I dropped this course' %}" data-bs-toggle="tooltip" data-bs-placement="top" href="{% url 'student:drop' evaluation.id %}">
4-
<span class="fas fa-user-xmark"></span>
1+
<a class="btn btn-sm btn-primary btn-row-hover" href="{% url 'student:vote' evaluation.id %}">
2+
{% translate 'Evaluate' %}
53
</a>
4+
<confirmation-modal>
5+
<span slot="title">{% translate 'Did you drop this course?' %}</span>
6+
<span slot="question">{% translate 'If you mark this course as dropped, you can still give feedback, but ...' %}</span>
7+
<!-- TODO@Felix: explanatory text -->
8+
<a class="btn btn-danger ms-2" slot="submit-group" href="{% url 'student:drop' evaluation.id %}">{% translate 'I dropped this course' %}</a>
9+
<button slot="show-button" class="btn btn-sm btn-secondary" title="{% translate 'I dropped this course' %}"
10+
data-bs-toggle="tooltip" data-bs-placement="top">
11+
<span class="fas fa-user-xmark"></span>
12+
</button>
13+
</confirmation-modal>

0 commit comments

Comments
 (0)