Ensure step checkboxes reflect status and can't be toggled

This commit is contained in:
Jason Zimdars
2025-07-09 11:01:54 -05:00
parent b142b08c05
commit 90419084c3
+1 -1
View File
@@ -1,7 +1,7 @@
<ol class="steps txt-small margin-block">
<% card.steps.each do |step| %>
<li class="step">
<%= 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" %>
</li>
<% end %>