-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#4692] Create range_form_component to override the html and remove t…
…he Apply submit button
- Loading branch information
1 parent
a299fca
commit 268082c
Showing
5 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<%= form_tag search_action_path, method: :get, class: [@classes[:form], "range_#{@facet_field.key} d-flex justify-content-center"].join(' ') do %> | ||
<%= render hidden_search_state %> | ||
|
||
<div class="range-limit-input-group"> | ||
<div class="d-flex justify-content-between align-items-end"> | ||
<div class="d-flex flex-column mr-1 me-1"> | ||
<%= label_tag(begin_input_name, t("blacklight.range_limit.range_begin_short"), class: 'text-muted small mb-1') %> | ||
<%= number_field_tag(begin_input_name, | ||
begin_value_default, | ||
min: range_config[:min_value], | ||
max: range_config[:max_value], | ||
class: "form-control form-control-sm range_begin") | ||
%> | ||
</div> | ||
|
||
<div class="d-flex flex-column ml-1 ms-1"> | ||
<%= label_tag(end_input_name, t("blacklight.range_limit.range_end_short"), class: 'text-muted small mb-1') %> | ||
<%= number_field_tag(end_input_name, | ||
end_value_default, | ||
min: range_config[:min_value], | ||
max: range_config[:max_value], | ||
class: "form-control form-control-sm range_end") | ||
%> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
# An override of the RangeFormComponent html to remove the Apply submit button | ||
# from the advanced search and the numismatics form | ||
class RangeFormComponent < BlacklightRangeLimit::RangeFormComponent | ||
end |