tybo 0.3.3 → 0.3.6

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: d6b3aa98d8a47b14d56d3af8b3fb8471d463d996761bd0aec1b3c246b6357810
4
- data.tar.gz: 17d6114cd4efa0dedd2d99a37cf93434ead97cc036f6cbb1039f48b8b0e0fc88
3
+ metadata.gz: 6ce933e9c12666d9a41a6ce852b44bd00e6d85da879cd4cc726470cbdadcb574
4
+ data.tar.gz: f953f447677b353bb44ff5936fd0c7a5b2ff8c95cb6a8676db9e1bd24e725965
5
5
  SHA512:
6
- metadata.gz: ecf0a24c19fdb662c60710ec92b6095e4b48ae8c160ea1363fd35d479d0c7d03b769c6bfd1d3a67e5b9468ac1f5ffab17228d098c295d95b3c69f22963809496
7
- data.tar.gz: 649ee5595fdbab032c98f60fd7937586cfdbf05abf12befb47f057b64b24afe3661d320c96a8fb73ff2708a0d955bc7fc4b29b5819bb87bc8ae9e8346673b6b1
6
+ metadata.gz: d91e5af863b3e2b8c2c9cabe47c39a500d8573732f9fa77e630a78a73b8e5973693ff9debf77639239aa029da59755b795e7007a1f968244f93984ed06b68741
7
+ data.tar.gz: 4aec757423dc661e48558f035991536ac1499b11ef0b6d00d7ae856b09010edc1910e7de030f5a5652af81ffaa2180ac123d54591db739d9cc2894208e076b38
@@ -1,17 +1,17 @@
1
1
  <%%= render(IndexComponent.new) do |index| %>
2
2
  <!-- Header -->
3
- <%%= index.with_header(
4
- title: I18n.t('bo.<%= class_name.underscore %>.others').capitalize,
5
- subtitle: I18n.t('bo.<%= class_name.underscore %>.subtitle').capitalize,
6
- ) do |header| %>
7
- <%%= header.with_add_button(path: <%="new_#{options[:namespace]}_#{class_name.underscore}_path" %>) %>
8
- <%%= header.with_export_button(path: <%= "export_csv_#{options[:namespace]}_#{class_name.pluralize.underscore}_path(format: :csv)"%>)%>
9
- <%% end %>
3
+ <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top' do %>
4
+ <%%= index.with_header(
5
+ title: I18n.t('bo.<%= class_name.underscore %>.others').capitalize,
6
+ subtitle: I18n.t('bo.<%= class_name.underscore %>.subtitle').capitalize,
7
+ ) do |header| %>
8
+ <%%= header.with_add_button(path: <%="new_#{options[:namespace]}_#{class_name.underscore}_path" %>) %>
9
+ <%%= header.with_export_button(path: <%= "export_csv_#{options[:namespace]}_#{class_name.pluralize.underscore}_path(format: :csv, params: {q: params.permit!['q']})"%>)%>
10
+ <%% end %>
10
11
 
11
12
  <!-- Search Bar -->
12
- <%%= render('search_bar') %>
13
+ <%%= render('search_bar') %>
13
14
  <!-- Table -->
14
- <%%= turbo_frame_tag "<%= class_name.underscore.pluralize %>", target: '_top', class: "shadow overflow-hidden rounded border-b border-gray-200" do %>
15
15
  <%%= render('table') %>
16
16
  <div class="py-2">
17
17
  <%%== render partial: 'shared/pagination', locals: { pagy: @pagy } %>
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-20 00:00:00.000000000 Z
12
+ date: 2023-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '7.1'
20
+ version: '7'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '7.1'
27
+ version: '7'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: puma
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -58,9 +58,6 @@ dependencies:
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '3.2'
63
- - - ">="
64
61
  - !ruby/object:Gem::Version
65
62
  version: 3.2.1
66
63
  type: :runtime
@@ -68,9 +65,6 @@ dependencies:
68
65
  version_requirements: !ruby/object:Gem::Requirement
69
66
  requirements:
70
67
  - - "~>"
71
- - !ruby/object:Gem::Version
72
- version: '3.2'
73
- - - ">="
74
68
  - !ruby/object:Gem::Version
75
69
  version: 3.2.1
76
70
  - !ruby/object:Gem::Dependency