base_editing_bootstrap 0.10.2 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e1b2b4d7acdd0cc339988fde4d7ce56578bc2cb692184c77cb47e90f256f2d7
4
- data.tar.gz: 30b9e2672ac29a97722f1f163ee6ed5e7cb9473d5aac9f5ad85bdd9621e0b351
3
+ metadata.gz: cd1a40db07e52860bd82ebe871ab561cda1054d92fdede68dd8faa9a6f8daa82
4
+ data.tar.gz: 372073cf6b6f99c9697dc836dc19c3045d74d0c5594f6c05c7cf83c822907b26
5
5
  SHA512:
6
- metadata.gz: 6e6d302e8a9d8e644b1eebfdccef92b85437651fb36f74264b38384afb0e237412858d3a86f58d81579b7b981c5891bad5706fb72e3c42b2b9c994fd3b907cb2
7
- data.tar.gz: d32ad07d930010e7a7ae647619dcd42cd61ca4e30ffa86bde4f42c5be8a10a75102788f121217fe613972e083c4e2dea4b4c1a8667dbeb96430d220a20f73d59
6
+ metadata.gz: 746487a0bf779295a741a85074eaca9eb0413bc8696890f7d25ab83fe59d30ec9c2dab83f0c5a231241ee76b88e4b942beabffee281297b54bbc587e7e864be6
7
+ data.tar.gz: 4a18b6485ae5befd52a3319087cc976756a67458c7e24cb3086c5ffe941dbbc08d363b6a4cb5113d9ca07ea542b610d9d128d7f77c8bbffe52097e7dbcf8dc8d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## 0.11.0 - 2024-09-05
6
+ #### Features
7
+ - Add clear search button - (f989c17) - Marino Bonetti
8
+ #### Miscellaneous Chores
9
+ - Add ask otp - (51be33d) - Marino Bonetti
10
+
11
+ - - -
12
+
5
13
  ## 0.10.2 - 2024-09-05
6
14
  #### Bug Fixes
7
15
  - Force to_s ransackable_attributes - (a5c8cbb) - Marino Bonetti
@@ -6,7 +6,7 @@ module Utilities
6
6
  # Per aggiungere bottoni:
7
7
  # ES:
8
8
  # def search_form_buttons(ransack_form, &block)
9
- # super #<- questo serve per costruiri i bottoni definiti da super
9
+ # super #<- questo serve per costruire i bottoni definiti da super
10
10
  # content_for(:search_form_buttons) do #<- questo serve per aggiungere al content_for un'altro bottone
11
11
  # link_to "xls", admins_log_alarms_path(params: {q: params.permit(q:{})[:q]}, format: :xlsx), class: "btn btn-info", target: :_blank
12
12
  # end
@@ -15,7 +15,10 @@ module Utilities
15
15
  # @param [Ransack::Helpers::FormBuilder] ransack_form
16
16
  def search_form_buttons(ransack_form)
17
17
  content_for(:search_form_buttons) do
18
- ransack_form.submit(I18n.translate('.search'), class: "btn btn-primary")
18
+ ransack_form.submit(I18n.translate('.search'), class: "btn btn-primary") +
19
+ link_to(I18n.translate('.clear_search'),
20
+ index_custom_polymorphic_path(ransack_form.object.klass),
21
+ class: "btn btn-secondary")
19
22
  end
20
23
  end
21
24
 
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
 
7
7
  <div class="row mt-4">
8
- <div class="col-1">
8
+ <div class="col">
9
9
  <div class="btn-group mr-1">
10
10
  <% search_form_buttons(f) %>
11
11
  <%= content_for :search_form_buttons %>
@@ -1,5 +1,6 @@
1
1
  it:
2
2
  search: "Esegui ricerca"
3
+ clear_search: "Cancella ricerca"
3
4
  save: "Salva"
4
5
  back: "Indietro"
5
6
  new: "Nuovo"
@@ -1 +1 @@
1
- 0.10.2
1
+ 0.11.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti