|
18 | 18 | <% @emancipation_form_data.each do |category| %> |
19 | 19 | <h6 class="emancipation-category no-select" data-is-open="<%= emancipation_category_checkbox_checked(@current_case, category) ? "true" : "false" %>"> |
20 | 20 | <div class="checkbox-style emacipation-category-input-label-pair"> |
21 | | - <input |
22 | | - type="checkbox" |
23 | | - class="emancipation-category-check-box form-check-input" |
24 | | - value="<%= category.id %>" |
25 | | - <%= emancipation_category_checkbox_checked(@current_case, category) %>> |
| 21 | + <%= input_tag( |
| 22 | + type: "checkbox", |
| 23 | + class: "emancipation-category-check-box form-check-input", |
| 24 | + value: category.id, |
| 25 | + disabled: emancipation_category_checkbox_checked(@current_case, category)) %> |
| 26 | + |
26 | 27 | <div class="pt-10"><%= category.name %></div> |
27 | 28 | </div> |
28 | 29 | <% if category.emancipation_options.count > 0 %> |
|
33 | 34 | <% category.emancipation_options.each do |option| %> |
34 | 35 | <div class="check-item"> |
35 | 36 | <% if category.mutually_exclusive %> |
36 | | - <input |
37 | | - type="radio" |
38 | | - id="O<%= option.id %>" |
39 | | - class="emancipation-radio-button" |
40 | | - name="C<%= category.id %>" |
41 | | - value="<%= option.id %>" |
42 | | - <%= emancipation_option_checkbox_checked(@current_case, option) %>> |
| 37 | + <%= input_tag( |
| 38 | + type: "radio", |
| 39 | + id: "O#{option.id}", |
| 40 | + class: "emancipation-radio-button", |
| 41 | + name: "C#{category.id}", |
| 42 | + value: option.id, |
| 43 | + disabled: emancipation_category_checkbox_checked(@current_case, option)) %> |
43 | 44 | <% else %> |
44 | | - <input |
45 | | - type="checkbox" |
46 | | - id="O<%= option.id %>" |
47 | | - class="emancipation-option-check-box" |
48 | | - value="<%= option.id %>" |
49 | | - <%= emancipation_option_checkbox_checked(@current_case, option) %>> |
| 45 | + <%= input_tag( |
| 46 | + type: "checkbox", |
| 47 | + id: "O#{option.id}", |
| 48 | + class: "emancipation-option-check-box", |
| 49 | + value: option.id, |
| 50 | + disabled: emancipation_option_checkbox_checked(@current_case, option)) %> |
50 | 51 | <% end %> |
51 | 52 | <label><%= option.name %></label> |
52 | 53 | </div> |
|
0 commit comments