-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6ea656
commit cc0987d
Showing
7 changed files
with
29 additions
and
25 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ def interests | |
end | ||
|
||
def rows | ||
[@params[:rows].to_i, 1].max | ||
@params[:rows].to_i | ||
end | ||
|
||
def rows_count | ||
|
This file was deleted.
Oops, something went wrong.
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 +1,13 @@ | ||
= render "people_skills/filter_form/index" | ||
%turbo-frame{id: "search-filters"} | ||
%div{"data-controller": "people-skills-filter"} | ||
= form_with(url: people_skills_path, method: :get, class: "filter-form", data: {"people-skills-filter-target": "form"}) do |form| | ||
%div.filter-container.me-1#filter-row-0 | ||
= render("people_skills/search_form", form: form, row_number: 0, filter_params: filter_params) | ||
- filter_params.rows.times do |i| | ||
%div.d-flex.flex-row.align-items-center{"data-people-skills-filter-target": "filter", id: "filter-row-#{i+ 1}"} | ||
%div.filter-container.me-1 | ||
= render("people_skills/search_form", form: form, row_number: i + 1) | ||
= close_action_link "#", {data: {action: "click->people-skills-filter#remove", "people-skills-filter-id-param": i}, id: "remove-row-#{i+1}"} | ||
- if filter_params.rows < 4 | ||
- path = filter_form_people_skills_path(rows: filter_params.rows + 1) + "&#{filter_params.query_params}" | ||
= add_action_link path, {}, {data: {"turbo-frame": "search-filters"}, id: "add-row-button"} |
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