|
12 | 12 | </div>
|
13 | 13 | <% end %>
|
14 | 14 |
|
15 |
| - <div> |
| 15 | + <div class="form-group"> |
16 | 16 | <%= form.label :name, style: "display: block" %>
|
17 |
| - <%= form.text_field :name %> |
| 17 | + <%= form.text_field :name, class: 'form-control' %> |
18 | 18 | </div>
|
19 | 19 |
|
20 |
| -<br> |
| 20 | + <br> |
21 | 21 |
|
22 |
| - <div> |
| 22 | + <div class="form-group"> |
23 | 23 | <%= form.label :description, style: "display: block" %>
|
24 | 24 | <%= form.rich_text_area :description %>
|
25 | 25 | </div>
|
26 | 26 |
|
27 |
| -<br> |
28 |
| - |
29 |
| -<div class="field"> |
30 |
| - <%= form.label :theory_ids, "Select Theory" %> <br> |
31 |
| - <% Theory.all.each do |theory| %> |
32 |
| - <%= check_box_tag "assumption[theory_ids][]", theory.id, @assumption.theories.include?(theory), id: "theory_#{theory.id}" %> |
33 |
| - <%= label_tag "theory_#{theory.id}", theory.name, for: "theory_#{theory.id}" %> <br> |
34 |
| - <% end %> |
35 |
| -</div> |
36 |
| - |
37 |
| -<br> |
| 27 | + <br> |
| 28 | + |
| 29 | + <div class="field form-group"> |
| 30 | + <%= form.label :theory_ids, "Select Theory" %> |
| 31 | + <% Theory.all.each do |theory| %> |
| 32 | + <div class="form-check"> |
| 33 | + <%= check_box_tag "assumption[theory_ids][]", theory.id, @assumption.theories.include?(theory), |
| 34 | + id: "theory_#{theory.id}", class: 'form-check-input' %> |
| 35 | + <%= label_tag "theory_#{theory.id}", theory.name, for: "theory_#{theory.id}", class: 'form-check-label' %> |
| 36 | + </div> |
| 37 | + <% end %> |
| 38 | + </div> |
38 | 39 |
|
39 |
| -<div class="field"> |
40 |
| - <%= form.label :practice_ids, "Select Practice" %> <br> |
41 |
| - <% Practice.all.each do |practice| %> |
42 |
| - <%= check_box_tag "assumption[practice_ids][]", practice.id, @assumption.practices.include?(practice), id: "practice_#{practice.id}" %> |
43 |
| - <%= label_tag "practice_#{practice.id}", practice.name, for: "practice_#{practice.id}" %> <br> |
44 |
| - <% end %> |
45 |
| -</div> |
| 40 | + <br> |
| 41 | + |
| 42 | + <div class="field form-group"> |
| 43 | + <%= form.label :practice_ids, "Select Practice" %> |
| 44 | + <% Practice.all.each do |practice| %> |
| 45 | + <div class="form-check"> |
| 46 | + <%= check_box_tag "assumption[practice_ids][]", practice.id, @assumption.practices.include?(practice), |
| 47 | + id: "practice_#{practice.id}", class: 'form-check-input' %> |
| 48 | + <%= label_tag "practice_#{practice.id}", practice.name, for: "practice_#{practice.id}", class: 'form-check-label' %> |
| 49 | + </div> |
| 50 | + <% end %> |
| 51 | + </div> |
46 | 52 |
|
47 |
| -<br> |
| 53 | + <br> |
48 | 54 |
|
49 | 55 | <div>
|
50 | 56 | <%= form.submit %>
|
|
0 commit comments