Skip to content

Commit b564491

Browse files
marcorothcompwron
authored andcommitted
disabled -> checked
1 parent 45e5c1e commit b564491

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/views/emancipations/show.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
type: "checkbox",
2323
class: "emancipation-category-check-box form-check-input",
2424
value: category.id,
25-
disabled: emancipation_category_checkbox_checked(@current_case, category)) %>
25+
checked: emancipation_category_checkbox_checked(@current_case, category)) %>
2626

2727
<div class="pt-10"><%= category.name %></div>
2828
</div>
@@ -40,14 +40,14 @@
4040
class: "emancipation-radio-button",
4141
name: "C#{category.id}",
4242
value: option.id,
43-
disabled: emancipation_category_checkbox_checked(@current_case, option)) %>
43+
checked: emancipation_option_checkbox_checked(@current_case, option)) %>
4444
<% else %>
4545
<%= tag.input(
4646
type: "checkbox",
4747
id: "O#{option.id}",
4848
class: "emancipation-option-check-box",
4949
value: option.id,
50-
disabled: emancipation_option_checkbox_checked(@current_case, option)) %>
50+
checked: emancipation_option_checkbox_checked(@current_case, option)) %>
5151
<% end %>
5252
<label><%= option.name %></label>
5353
</div>

0 commit comments

Comments
 (0)