|
10 | 10 | <%= form.input :name, label: "Agency Name", class: "form-control", wrapper: :input_group %> |
11 | 11 | <%= profile_form.input :agency_type, collection: Partner::AGENCY_TYPES.values, label: "Agency Type", class: "form-control", wrapper: :input_group %> |
12 | 12 | <%= profile_form.input :other_agency_type, label: "Other Agency Type", class: "form-control", wrapper: :input_group %> |
13 | | - <div class="form-group row"> |
14 | | - <label class="control-label col-md-3">501(c)(3) IRS Determination Letter or other Proof of Agency Status</label> |
15 | | - <% if profile.proof_of_partner_status.attached? %> |
16 | | - <div class="col-md-8"> |
17 | | - Attached |
18 | | - file: <%= link_to profile.proof_of_partner_status.blob['filename'], rails_blob_path(profile.proof_of_partner_status), class: "font-weight-bold" %> |
19 | | - <%= profile_form.file_field :proof_of_partner_status, class: "form-control-file form-control" %> |
20 | | - </div> |
21 | | - <% else %> |
22 | | - <div class="col-md-8"> |
23 | | - <%= profile_form.file_field :proof_of_partner_status, class: "form-control-file" %> |
24 | | - </div> |
25 | | - <% end %> |
26 | | - </div> |
| 13 | + |
| 14 | + <%= render "shared/custom_file_input", |
| 15 | + form_builder: profile_form, |
| 16 | + attachment: profile.proof_of_partner_status, |
| 17 | + attachment_name: :proof_of_partner_status, |
| 18 | + label_for: "partner_profile_proof_of_partner_status", |
| 19 | + label_text: "501(c)(3) IRS Determination Letter or other Proof of Agency Status" %> |
| 20 | + |
27 | 21 | <%= profile_form.input :agency_mission, label: "Agency Mission", class: "form-control", wrapper: :input_group %> |
28 | 22 | <%= profile_form.input :address1, label: "Address (line 1)", class: "form-control", wrapper: :input_group %> |
29 | 23 | <%= profile_form.input :address2, label: "Address (line 2)", class: "form-control", wrapper: :input_group %> |
|
0 commit comments