Skip to content

Commit

Permalink
implement modal
Browse files Browse the repository at this point in the history
  • Loading branch information
fekoch committed Aug 5, 2024
1 parent ea735a5 commit 6545c8d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions evap/student/templates/student_index_evaluate_or_drop.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<a class="btn btn-sm btn-primary btn-row-hover" href="{% url 'student:vote' evaluation.id %}">{% translate 'Evaluate' %}</a>
<!-- TODO@felix: confirmation modal -->
<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 %}">
<span class="fas fa-user-xmark"></span>
<a class="btn btn-sm btn-primary btn-row-hover" href="{% url 'student:vote' evaluation.id %}">
{% translate 'Evaluate' %}
</a>
<confirmation-modal>
<span slot="title">{% translate 'Did you drop this course?' %}</span>
<span slot="question">{% translate 'If you mark this course as dropped, you can still give feedback, but ...' %}</span>
<!-- TODO@Felix: explanatory text -->
<a class="btn btn-danger ms-2" slot="submit-group" href="{% url 'student:drop' evaluation.id %}">{% translate 'I dropped this course' %}</a>
<button slot="show-button" class="btn btn-sm btn-secondary" title="{% translate 'I dropped this course' %}"
data-bs-toggle="tooltip" data-bs-placement="top">
<span class="fas fa-user-xmark"></span>
</button>
</confirmation-modal>

0 comments on commit 6545c8d

Please sign in to comment.