forked from rubyforgood/human-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rubyforgood#4504] edit agency info in a step-wise form
- Loading branch information
1 parent
cbca1d3
commit 31e4cb5
Showing
2 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
app/views/partners/profiles/step/_agency_information_form.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<%= simple_form_for partner, url: partners_profile_path, html: { multipart: true } do |f| %> | ||
<div class="form-group"> | ||
<%= f.input :name, label: "Agency Name", required: true, class: "form-control" %> | ||
</div> | ||
|
||
<%= f.fields_for :profile, profile do |pf| %> | ||
<div class="form-group"> | ||
<%= pf.input :agency_type, collection: Partner::AGENCY_TYPES.values, label: "Agency Type", class: "form-control", wrapper: :input_group %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :other_agency_type, label: "Other Agency Type", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label class="control-label col-md-3">501(c)(3) IRS Determination Letter</label> | ||
<% if profile.proof_of_partner_status.attached? %> | ||
<div class="col-md-8"> | ||
Attached file: <%= link_to profile.proof_of_partner_status.blob['filename'], rails_blob_path(profile.proof_of_partner_status), class: "font-weight-bold" %> | ||
<%= pf.file_field :proof_of_partner_status, class: "form-control-file" %> | ||
</div> | ||
<% else %> | ||
<div class="col-md-8"> | ||
<%= pf.file_field :proof_of_partner_status, class: "form-control-file" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :agency_mission, as: :text, label: "Agency Mission", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :address1, label: "Address (line 1)", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :address2, label: "Address (line 2)", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :city, label: "City", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :state, label: "State", class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= pf.input :zip_code, label: "Zip Code", class: "form-control" %> | ||
</div> | ||
<% end %> | ||
|
||
<%# Buttons: FIXME: 4504 need separate actions for these %> | ||
<div class="form-group mt-4 d-flex justify-content-start"> | ||
<%= f.button :submit, 'Save and Next', class: 'btn btn-primary mr-2' %> | ||
<%= f.button :submit, 'Submit for Approval', class: 'btn btn-success' %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters