Skip to content

Commit

Permalink
Added confirmation prompt for late days (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nita242004 authored Dec 15, 2024
1 parent fe44b53 commit 8c81601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/assessments/_handin_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div id="submission_error" style="color:red" class="col s6 m8 center-align"></div>
<% if @aud.past_due_at? then %>
<div class="col s6 m4 center-align">
<%= f.submit("Submit Late", id: "fake-submit", class: "btn primary handin-btn disabled") %>
<%= f.submit("Submit Late", id: "fake-submit", class: "btn primary handin-btn disabled", data: { confirm: "You are #{grace_late_info}. Are you sure you want to continue?" }) %>
</div>
<% else %>
<div class="col s6 m4 center-align">
Expand Down

0 comments on commit 8c81601

Please sign in to comment.