Add basic deadline to sections index

This commit is contained in:
Charlotte Van Petegem 2025-05-25 21:54:34 +02:00
parent 782355322e
commit f4106b9fb6
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
15 changed files with 175 additions and 1 deletions

View file

@ -1,3 +1,21 @@
<div class="deadline-info-container">
<div>
Je hebt nog
<span class="deadline-display" data-behaviour="deadline_display" data-deadline="<%= @deadline.httpdate %>">tijd tot <%= @deadline.to_fs(:short) %>.</span>
</div>
Je kan extra tijd krijgen door volgende dingen te organiseren. Je krijgt dan 6 weken extra.
<div class="extension-grid">
<% @extensions.each do |extension| %>
<div class="extension">
<span><%= extension.reason %></span>
<%= form_with url: confirm_extension_path(extension), method: :put do |form| %>
<%= form.submit "Bevestig", disabled: extension.confirmed %>
<% end %>
</div>
<% end %>
</div>
</div>
<div class="title-card-grid">
<% @sections.each do |section| %>
<%= link_to(section_url(section), html_options = { class: 'title-card-container' }) do %>