|
1 | | -<%= form_for(@facilitator) do |f| %> |
2 | | - <%= render 'shared/errors', resource: facilitator if facilitator.errors.any? %> |
3 | | - |
4 | | - <div class="form-inputs"> |
5 | | - <%= f.label :first_name, class: 'bold' %> |
6 | | - <%= f.text_field :first_name %> |
7 | | - <%= f.label :last_name, class: 'bold' %> |
8 | | - <%= f.text_field :last_name %> |
9 | | - <%= f.label :email, class: 'bold' %> |
10 | | - <%= f.text_field :email %> |
11 | | - </div> |
12 | | - |
13 | | - <div class="form-actions"> |
14 | | - <%= f.button :submit %> |
15 | | - </div> |
| 1 | + <%= simple_form_for @facilitator do |f| %> |
| 2 | + <%= f.input :first_name %> |
| 3 | + <%= f.input :last_name %> |
| 4 | + <%= f.input :primary_email_address %> |
| 5 | + <%= f.input :primary_email_address_type, |
| 6 | + as: :radio_buttons, |
| 7 | + collection: Facilitator::CONTACT_TYPES, |
| 8 | + item_wrapper_class: 'form-check' %> |
| 9 | + <%= f.input :street_address %> |
| 10 | + <%= f.input :city %> |
| 11 | + <%= f.input :state %> |
| 12 | + <%= f.input :zip %> |
| 13 | + <%= f.input :country %> |
| 14 | + <%= f.input :mailing_address_type, |
| 15 | + as: :radio_buttons, |
| 16 | + collection: Facilitator::CONTACT_TYPES, |
| 17 | + item_wrapper_class: 'form-check' %> |
| 18 | + <%= f.input :phone_number%> |
| 19 | + <%= f.input :phone_number_type, |
| 20 | + as: :radio_buttons, |
| 21 | + collection: Facilitator::CONTACT_TYPES, |
| 22 | + item_wrapper_class: 'form-check' %> |
| 23 | + <%= f.button :submit %> |
16 | 24 | <% end %> |
0 commit comments