-
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5867 from kenny-luong/5776-UPDATE-CASE-CONTACT-FORM
Updates case contact form to use dropdown selector
- Loading branch information
Showing
9 changed files
with
63 additions
and
35 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -663,4 +663,4 @@ RUBY VERSION | |
ruby 3.2.2p53 | ||
|
||
BUNDLED WITH | ||
2.5.11 | ||
2.5.14 |
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
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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<p>Choose from the available options below by searching or selecting from the dropdown menu.</p> | ||
<%= render(Form::MultipleSelectComponent.new( | ||
form: form, | ||
name: :contact_type_ids, | ||
options: options.decorate.map { |ct| ct.hash_for_multi_select_with_cases(casa_cases&.pluck(:id)) }, | ||
selected_items: selected_items, | ||
render_option_subtext: true | ||
)) %> | ||
<div id="contact-type-id-selector"> | ||
<%= render(Form::MultipleSelectComponent.new( | ||
form: form, | ||
name: :contact_type_ids, | ||
options: options.decorate.map { |ct| ct.hash_for_multi_select_with_cases(casa_cases&.pluck(:id)) }, | ||
selected_items: selected_items, | ||
render_option_subtext: true | ||
)) %> | ||
</div> |
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,10 @@ | ||
<p>Select the relevant cases below by searching or selecting from the dropdown menu.</p> | ||
<div id="draft-case-id-selector"> | ||
<%= render(Form::MultipleSelectComponent.new( | ||
form: form, | ||
name: :draft_case_ids, | ||
options: options.decorate.map { |casa_case| casa_case.hash_for_multi_select }, | ||
selected_items: selected_items, | ||
render_option_subtext: current_user.supervisor? | ||
)) %> | ||
</div> |
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
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
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
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