Ensure step checkboxes reflect status and can't be toggled
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user