bmc 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 846d488995d4c44a1f71312c3ac0ebed15efe997004770d590830e49ebf35cb3
4
- data.tar.gz: 206d59a1c0dff762ff13e2805f3f3d717ef79e88dfd0a73d31942ccca0c8b1b6
3
+ metadata.gz: c0e0c4e5ab78a01fd7654084f301d4f5b1a742d63c5db56868933d9fd2f7089f
4
+ data.tar.gz: 717ee2dcc037bb32ef59e290ed6ff3505e567e4c2ae8a90e7cb7ef1ef19714fa
5
5
  SHA512:
6
- metadata.gz: 621ce452a89f486a4ce2ccbfa6936129732c468a327def6230787cbf555068e6baf4df123c9da4d229a84665d6339359d45050f3862e996fbb4f88d4f9f8feb0
7
- data.tar.gz: 4d850e1dfa923c6c9006fee446fa68796cc9ac84dc71cd42aaf46b2240870257532d7605c4e1cb346eafab98bf2e948939658744d71afd84257ba73990bf3d64
6
+ metadata.gz: 12c39ca13cca306fb378fedf40993aa1dc689bf64f3f9707704a5b13f4afaa9028c145d6ae30baba97443460a57ca74c84cf30550c21186afe6aa9ec55ae177a
7
+ data.tar.gz: c0ad050d9893e63177e464c1fb70de88d178b89acef88ab1db2dafa5b7a9272772541710cbbc562c4b58d674da076090ba4497c2af35e05dc91e1eb1cb9d7ddd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.4.3
6
+ - Rails 7.1
7
+
8
+ ## v1.4.2
9
+ - Add customizable placeholder to `search_form`
10
+
5
11
  ## v1.4.1
6
12
  - Configurable bootstrap version
7
13
 
@@ -1,2 +0,0 @@
1
- //= link_directory ../javascripts/bmc .js
2
- //= link_directory ../stylesheets/bmc .css
@@ -8,8 +8,8 @@ module BMC::FormHelper
8
8
  tag.input(type: "submit", class: "hidden-submit", style: css)
9
9
  end
10
10
 
11
- def search_form(action: request.fullpath)
12
- render "bmc/search/form", action: action
11
+ def search_form(action: request.fullpath, placeholder: ta(:search))
12
+ render "bmc/search/form", action: action, placeholder: placeholder
13
13
  end
14
14
 
15
15
  def hidden_inputs_for_get_form(url, except: nil, only: nil)
@@ -1 +1 @@
1
- = render "bmc/search/form_bs#{BMC::BootstrapHelper.bootstrap_version}", action: action
1
+ = render "bmc/search/form_bs#{BMC::BootstrapHelper.bootstrap_version}", action: action, placeholder: placeholder
@@ -3,7 +3,7 @@ form.search.bs3 method="get" action=action
3
3
  = form_hidden_submit
4
4
 
5
5
  p.input-group.search
6
- input.form-control name="q" placeholder=t("actions.search") size=25 value=params[:q]
6
+ input.form-control name="q" placeholder=placeholder size=25 value=params[:q]
7
7
 
8
8
  span.input-group-btn
9
9
  button.btn.btn-default.search-reset.reset type="submit"
@@ -3,7 +3,7 @@ form.search.bs4 method="get" action=action
3
3
  = form_hidden_submit
4
4
 
5
5
  .input-group.search
6
- input.form-control.form-control-sm type="text" name="q" placeholder=ta(:search) value=params[:q]
6
+ input.form-control.form-control-sm type="text" name="q" placeholder=placeholder value=params[:q]
7
7
  span.input-group-append
8
8
  button.btn.btn-sm.bg-light.border.search-reset.reset type="submit" = fa_s(:times)
9
9
  button.btn.btn-sm.bg-light.border.search-submit type="submit" = fa_s(:search)
@@ -3,6 +3,6 @@ form.search.bs5.mb-3 method="get" action=action
3
3
  = form_hidden_submit
4
4
 
5
5
  .input-group.search
6
- input.form-control.form-control-sm type="text" name="q" placeholder=ta(:search) value=params[:q]
6
+ input.form-control.form-control-sm type="text" name="q" placeholder=placeholder value=params[:q]
7
7
  button.btn.btn-sm.bg-light.border.search-reset.reset type="submit" = fa_s(:times)
8
8
  button.btn.btn-sm.bg-light.border.search-submit type="submit" = fa_s(:search)
data/lib/bmc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BMC
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit MARTIN-CHAVE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n