From 90419084c3780e93844bb401616da46840a5a8d4 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Wed, 9 Jul 2025 11:01:54 -0500 Subject: [PATCH] Ensure step checkboxes reflect status and can't be toggled --- app/views/public/cards/show/_steps.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/public/cards/show/_steps.html.erb b/app/views/public/cards/show/_steps.html.erb index 6e32ad7d7..e6f8e1f3a 100644 --- a/app/views/public/cards/show/_steps.html.erb +++ b/app/views/public/cards/show/_steps.html.erb @@ -1,7 +1,7 @@
    <% card.steps.each do |step| %>
  1. - <%= check_box_tag :completed, { class: "step__checkbox" } %> + <%= check_box_tag :completed, { class: "step__checkbox", disabled: true, checked: step.completed? } %> <%= tag.span step.content, class: "step__content" %>
  2. <% end %>