avo 0.5.0.beta14 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +3 -5
- data/Gemfile.lock +77 -80
- data/app/components/avo/common/multiple_file_viewer_component.html.erb +1 -1
- data/app/components/avo/common/single_file_viewer_component.html.erb +1 -1
- data/app/components/avo/index/fields/gravatar_field_component.html.erb +1 -1
- data/app/components/avo/index/fields/id_field_component.html.erb +1 -1
- data/app/components/avo/index/resource_controls_component.html.erb +6 -6
- data/app/components/avo/show/fields/has_one_field_component.html.erb +1 -1
- data/app/components/avo/views/resource_index_component.html.erb +5 -5
- data/app/components/avo/views/resource_show_component.html.erb +3 -3
- data/app/views/avo/partials/_empty_state.html.erb +1 -1
- data/app/views/avo/partials/_view_toggle_button.html.erb +2 -2
- data/app/views/avo/relations/new.html.erb +1 -1
- data/lib/avo/base_resource.rb +1 -1
- data/lib/avo/engine.rb +11 -3
- data/lib/avo/fields/date_time_field.rb +6 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/install_generator.rb +1 -1
- data/public/avo-packs/css/application-9d115b7e.css.map +1 -1
- data/public/avo-packs/css/application-9d115b7e.css.map.br +0 -0
- data/public/avo-packs/css/application-9d115b7e.css.map.gz +0 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js +26 -0
- data/public/avo-packs/js/{application-4751feac1bb0404b9c47.js.LICENSE.txt → application-e351ef988a3cb9687542.js.LICENSE.txt} +0 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js.br +0 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js.gz +0 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map +1 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map.br +0 -0
- data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map.gz +0 -0
- data/public/avo-packs/manifest.json +8 -8
- metadata +11 -11
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js +0 -26
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.br +0 -0
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.gz +0 -0
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.map +0 -1
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.map.br +0 -0
- data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.map.gz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f9541820f46494f3f993a870b717fb817ecaa83f4bd8cc6aa8b9e80d586a0cb
|
4
|
+
data.tar.gz: f9bd42e6372e23153ac57aefb13373cdb9662f74bf410ee82e25f7d482c64626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d6e0faa8b0ac9386702b11cf7301f993211c89bb4f8368b8c6fefaa09167c492d9f5bc6f55cf622854d1c56231924dfa4fd78b9664cab49bd09cb0a56d33da
|
7
|
+
data.tar.gz: ba3295cd86157590af2b60bd364089210aa8e8b516b22b7cd4e8ddf09b6b9ca4e700216d099cf2722973e6125aa876c3f349b56c17ecfc00ae4457e5f3d42d2e
|
data/Gemfile
CHANGED
@@ -52,7 +52,7 @@ gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
|
|
52
52
|
gem "dotenv-rails"
|
53
53
|
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
54
54
|
gem "web-console", ">= 3.3.0"
|
55
|
-
gem "listen", ">= 3.
|
55
|
+
gem "listen", ">= 3.3.0"
|
56
56
|
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
57
57
|
gem "spring"
|
58
58
|
|
@@ -64,7 +64,6 @@ gem "devise"
|
|
64
64
|
gem "database_cleaner"
|
65
65
|
|
66
66
|
gem "ruby-debug-ide", require: false
|
67
|
-
gem "debase"
|
68
67
|
#
|
69
68
|
# END Dependencies for dummy_app
|
70
69
|
#
|
@@ -107,9 +106,6 @@ end
|
|
107
106
|
|
108
107
|
gem "zeitwerk", "~> 2.3"
|
109
108
|
|
110
|
-
# Pagination
|
111
|
-
gem "pagy"
|
112
|
-
|
113
109
|
gem "httparty"
|
114
110
|
|
115
111
|
gem "iso"
|
@@ -121,3 +117,5 @@ gem "active_link_to"
|
|
121
117
|
gem "view_component", require: "view_component/engine"
|
122
118
|
|
123
119
|
gem "addressable"
|
120
|
+
|
121
|
+
gem "appraisal"
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (
|
4
|
+
avo (1.0.4)
|
5
5
|
active_link_to
|
6
6
|
addressable
|
7
7
|
countries
|
@@ -18,38 +18,38 @@ PATH
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
actioncable (6.0.3.
|
22
|
-
actionpack (= 6.0.3.
|
21
|
+
actioncable (6.0.3.6)
|
22
|
+
actionpack (= 6.0.3.6)
|
23
23
|
nio4r (~> 2.0)
|
24
24
|
websocket-driver (>= 0.6.1)
|
25
|
-
actionmailbox (6.0.3.
|
26
|
-
actionpack (= 6.0.3.
|
27
|
-
activejob (= 6.0.3.
|
28
|
-
activerecord (= 6.0.3.
|
29
|
-
activestorage (= 6.0.3.
|
30
|
-
activesupport (= 6.0.3.
|
25
|
+
actionmailbox (6.0.3.6)
|
26
|
+
actionpack (= 6.0.3.6)
|
27
|
+
activejob (= 6.0.3.6)
|
28
|
+
activerecord (= 6.0.3.6)
|
29
|
+
activestorage (= 6.0.3.6)
|
30
|
+
activesupport (= 6.0.3.6)
|
31
31
|
mail (>= 2.7.1)
|
32
|
-
actionmailer (6.0.3.
|
33
|
-
actionpack (= 6.0.3.
|
34
|
-
actionview (= 6.0.3.
|
35
|
-
activejob (= 6.0.3.
|
32
|
+
actionmailer (6.0.3.6)
|
33
|
+
actionpack (= 6.0.3.6)
|
34
|
+
actionview (= 6.0.3.6)
|
35
|
+
activejob (= 6.0.3.6)
|
36
36
|
mail (~> 2.5, >= 2.5.4)
|
37
37
|
rails-dom-testing (~> 2.0)
|
38
|
-
actionpack (6.0.3.
|
39
|
-
actionview (= 6.0.3.
|
40
|
-
activesupport (= 6.0.3.
|
38
|
+
actionpack (6.0.3.6)
|
39
|
+
actionview (= 6.0.3.6)
|
40
|
+
activesupport (= 6.0.3.6)
|
41
41
|
rack (~> 2.0, >= 2.0.8)
|
42
42
|
rack-test (>= 0.6.3)
|
43
43
|
rails-dom-testing (~> 2.0)
|
44
44
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
45
|
-
actiontext (6.0.3.
|
46
|
-
actionpack (= 6.0.3.
|
47
|
-
activerecord (= 6.0.3.
|
48
|
-
activestorage (= 6.0.3.
|
49
|
-
activesupport (= 6.0.3.
|
45
|
+
actiontext (6.0.3.6)
|
46
|
+
actionpack (= 6.0.3.6)
|
47
|
+
activerecord (= 6.0.3.6)
|
48
|
+
activestorage (= 6.0.3.6)
|
49
|
+
activesupport (= 6.0.3.6)
|
50
50
|
nokogiri (>= 1.8.5)
|
51
|
-
actionview (6.0.3.
|
52
|
-
activesupport (= 6.0.3.
|
51
|
+
actionview (6.0.3.6)
|
52
|
+
activesupport (= 6.0.3.6)
|
53
53
|
builder (~> 3.1)
|
54
54
|
erubi (~> 1.4)
|
55
55
|
rails-dom-testing (~> 2.0)
|
@@ -57,20 +57,20 @@ GEM
|
|
57
57
|
active_link_to (1.0.5)
|
58
58
|
actionpack
|
59
59
|
addressable
|
60
|
-
activejob (6.0.3.
|
61
|
-
activesupport (= 6.0.3.
|
60
|
+
activejob (6.0.3.6)
|
61
|
+
activesupport (= 6.0.3.6)
|
62
62
|
globalid (>= 0.3.6)
|
63
|
-
activemodel (6.0.3.
|
64
|
-
activesupport (= 6.0.3.
|
65
|
-
activerecord (6.0.3.
|
66
|
-
activemodel (= 6.0.3.
|
67
|
-
activesupport (= 6.0.3.
|
68
|
-
activestorage (6.0.3.
|
69
|
-
actionpack (= 6.0.3.
|
70
|
-
activejob (= 6.0.3.
|
71
|
-
activerecord (= 6.0.3.
|
72
|
-
marcel (~> 0.
|
73
|
-
activesupport (6.0.3.
|
63
|
+
activemodel (6.0.3.6)
|
64
|
+
activesupport (= 6.0.3.6)
|
65
|
+
activerecord (6.0.3.6)
|
66
|
+
activemodel (= 6.0.3.6)
|
67
|
+
activesupport (= 6.0.3.6)
|
68
|
+
activestorage (6.0.3.6)
|
69
|
+
actionpack (= 6.0.3.6)
|
70
|
+
activejob (= 6.0.3.6)
|
71
|
+
activerecord (= 6.0.3.6)
|
72
|
+
marcel (~> 1.0.0)
|
73
|
+
activesupport (6.0.3.6)
|
74
74
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
75
75
|
i18n (>= 0.7, < 2)
|
76
76
|
minitest (~> 5.1)
|
@@ -78,6 +78,10 @@ GEM
|
|
78
78
|
zeitwerk (~> 2.2, >= 2.2.2)
|
79
79
|
addressable (2.7.0)
|
80
80
|
public_suffix (>= 2.0.2, < 5.0)
|
81
|
+
appraisal (2.4.0)
|
82
|
+
bundler
|
83
|
+
rake
|
84
|
+
thor (>= 0.14.0)
|
81
85
|
ast (2.4.2)
|
82
86
|
bcrypt (3.1.16)
|
83
87
|
bindex (0.8.1)
|
@@ -96,16 +100,13 @@ GEM
|
|
96
100
|
xpath (~> 3.2)
|
97
101
|
childprocess (3.0.0)
|
98
102
|
concurrent-ruby (1.1.8)
|
99
|
-
countries (3.0
|
100
|
-
i18n_data (~> 0.
|
103
|
+
countries (3.1.0)
|
104
|
+
i18n_data (~> 0.11.0)
|
101
105
|
sixarm_ruby_unaccent (~> 1.1)
|
102
106
|
unicode_utils (~> 1.4)
|
103
107
|
crack (0.4.4)
|
104
108
|
crass (1.0.6)
|
105
109
|
database_cleaner (1.8.5)
|
106
|
-
debase (0.2.4.1)
|
107
|
-
debase-ruby_core_source (>= 0.10.2)
|
108
|
-
debase-ruby_core_source (0.10.11)
|
109
110
|
devise (4.7.3)
|
110
111
|
bcrypt (~> 3.0)
|
111
112
|
orm_adapter (~> 0.1)
|
@@ -126,7 +127,7 @@ GEM
|
|
126
127
|
railties (>= 5.0.0)
|
127
128
|
faker (2.14.0)
|
128
129
|
i18n (>= 1.6, < 2)
|
129
|
-
ffi (1.
|
130
|
+
ffi (1.15.0)
|
130
131
|
fuubar (2.5.0)
|
131
132
|
rspec-core (~> 3.0)
|
132
133
|
ruby-progressbar (~> 1.4)
|
@@ -141,9 +142,9 @@ GEM
|
|
141
142
|
httparty (0.18.1)
|
142
143
|
mime-types (~> 3.0)
|
143
144
|
multi_xml (>= 0.5.2)
|
144
|
-
i18n (1.8.
|
145
|
+
i18n (1.8.10)
|
145
146
|
concurrent-ruby (~> 1.0)
|
146
|
-
i18n_data (0.
|
147
|
+
i18n_data (0.11.0)
|
147
148
|
image_processing (1.12.1)
|
148
149
|
mini_magick (>= 4.9.5, < 5)
|
149
150
|
ruby-vips (>= 2.0.17, < 3)
|
@@ -151,36 +152,33 @@ GEM
|
|
151
152
|
i18n
|
152
153
|
jbuilder (2.10.1)
|
153
154
|
activesupport (>= 5.0.0)
|
154
|
-
listen (3.1
|
155
|
-
rb-fsevent (~> 0.
|
156
|
-
rb-inotify (~> 0.9, >= 0.9.
|
157
|
-
ruby_dep (~> 1.2)
|
155
|
+
listen (3.5.1)
|
156
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
157
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
158
158
|
loofah (2.9.0)
|
159
159
|
crass (~> 1.0.2)
|
160
160
|
nokogiri (>= 1.5.9)
|
161
161
|
mail (2.7.1)
|
162
162
|
mini_mime (>= 0.1.1)
|
163
|
-
marcel (0.
|
164
|
-
mimemagic (~> 0.3.2)
|
163
|
+
marcel (1.0.0)
|
165
164
|
method_source (1.0.0)
|
166
165
|
mime-types (3.3.1)
|
167
166
|
mime-types-data (~> 3.2015)
|
168
|
-
mime-types-data (3.
|
169
|
-
mimemagic (0.3.10)
|
170
|
-
nokogiri (~> 1)
|
171
|
-
rake
|
167
|
+
mime-types-data (3.2021.0225)
|
172
168
|
mini_magick (4.11.0)
|
173
|
-
mini_mime (1.0.
|
169
|
+
mini_mime (1.0.3)
|
174
170
|
mini_portile2 (2.5.0)
|
175
171
|
minitest (5.14.4)
|
176
172
|
msgpack (1.3.3)
|
177
173
|
multi_xml (0.6.0)
|
178
|
-
nio4r (2.5.
|
174
|
+
nio4r (2.5.7)
|
179
175
|
nokogiri (1.11.2)
|
180
176
|
mini_portile2 (~> 2.5.0)
|
181
177
|
racc (~> 1.4)
|
178
|
+
nokogiri (1.11.2-x86_64-linux)
|
179
|
+
racc (~> 1.4)
|
182
180
|
orm_adapter (0.5.0)
|
183
|
-
pagy (3.
|
181
|
+
pagy (3.12.0)
|
184
182
|
parallel (1.20.1)
|
185
183
|
parser (3.0.0.0)
|
186
184
|
ast (~> 2.4.1)
|
@@ -196,20 +194,20 @@ GEM
|
|
196
194
|
rack
|
197
195
|
rack-test (1.1.0)
|
198
196
|
rack (>= 1.0, < 3)
|
199
|
-
rails (6.0.3.
|
200
|
-
actioncable (= 6.0.3.
|
201
|
-
actionmailbox (= 6.0.3.
|
202
|
-
actionmailer (= 6.0.3.
|
203
|
-
actionpack (= 6.0.3.
|
204
|
-
actiontext (= 6.0.3.
|
205
|
-
actionview (= 6.0.3.
|
206
|
-
activejob (= 6.0.3.
|
207
|
-
activemodel (= 6.0.3.
|
208
|
-
activerecord (= 6.0.3.
|
209
|
-
activestorage (= 6.0.3.
|
210
|
-
activesupport (= 6.0.3.
|
197
|
+
rails (6.0.3.6)
|
198
|
+
actioncable (= 6.0.3.6)
|
199
|
+
actionmailbox (= 6.0.3.6)
|
200
|
+
actionmailer (= 6.0.3.6)
|
201
|
+
actionpack (= 6.0.3.6)
|
202
|
+
actiontext (= 6.0.3.6)
|
203
|
+
actionview (= 6.0.3.6)
|
204
|
+
activejob (= 6.0.3.6)
|
205
|
+
activemodel (= 6.0.3.6)
|
206
|
+
activerecord (= 6.0.3.6)
|
207
|
+
activestorage (= 6.0.3.6)
|
208
|
+
activesupport (= 6.0.3.6)
|
211
209
|
bundler (>= 1.3.0)
|
212
|
-
railties (= 6.0.3.
|
210
|
+
railties (= 6.0.3.6)
|
213
211
|
sprockets-rails (>= 2.0.0)
|
214
212
|
rails-controller-testing (1.0.5)
|
215
213
|
actionpack (>= 5.0.1.rc1)
|
@@ -220,9 +218,9 @@ GEM
|
|
220
218
|
nokogiri (>= 1.6)
|
221
219
|
rails-html-sanitizer (1.3.0)
|
222
220
|
loofah (~> 2.3)
|
223
|
-
railties (6.0.3.
|
224
|
-
actionpack (= 6.0.3.
|
225
|
-
activesupport (= 6.0.3.
|
221
|
+
railties (6.0.3.6)
|
222
|
+
actionpack (= 6.0.3.6)
|
223
|
+
activesupport (= 6.0.3.6)
|
226
224
|
method_source
|
227
225
|
rake (>= 0.8.7)
|
228
226
|
thor (>= 0.20.3, < 2.0)
|
@@ -270,9 +268,8 @@ GEM
|
|
270
268
|
ruby-debug-ide (0.7.2)
|
271
269
|
rake (>= 0.8.1)
|
272
270
|
ruby-progressbar (1.10.1)
|
273
|
-
ruby-vips (2.0
|
274
|
-
ffi (~> 1.
|
275
|
-
ruby_dep (1.5.0)
|
271
|
+
ruby-vips (2.1.0)
|
272
|
+
ffi (~> 1.12)
|
276
273
|
rubyzip (2.3.0)
|
277
274
|
sass-rails (6.0.0)
|
278
275
|
sassc-rails (~> 2.1, >= 2.1.1)
|
@@ -351,10 +348,12 @@ GEM
|
|
351
348
|
|
352
349
|
PLATFORMS
|
353
350
|
ruby
|
351
|
+
x86_64-linux
|
354
352
|
|
355
353
|
DEPENDENCIES
|
356
354
|
active_link_to
|
357
355
|
addressable
|
356
|
+
appraisal
|
358
357
|
avo!
|
359
358
|
bootsnap (>= 1.4.2)
|
360
359
|
bump
|
@@ -362,7 +361,6 @@ DEPENDENCIES
|
|
362
361
|
capybara (>= 2.15)
|
363
362
|
countries
|
364
363
|
database_cleaner
|
365
|
-
debase
|
366
364
|
devise
|
367
365
|
dotenv-rails
|
368
366
|
factory_bot_rails
|
@@ -374,8 +372,7 @@ DEPENDENCIES
|
|
374
372
|
image_processing (~> 1.2)
|
375
373
|
iso
|
376
374
|
jbuilder (~> 2.7)
|
377
|
-
listen (>= 3.
|
378
|
-
pagy
|
375
|
+
listen (>= 3.3.0)
|
379
376
|
pg (>= 0.18, < 2.0)
|
380
377
|
puma (~> 4.3.5)
|
381
378
|
pundit
|
@@ -400,4 +397,4 @@ DEPENDENCIES
|
|
400
397
|
zeitwerk (~> 2.3)
|
401
398
|
|
402
399
|
BUNDLED WITH
|
403
|
-
2.2.
|
400
|
+
2.2.15
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<% end %>
|
20
20
|
<%= a_link "/avo/resources/#{@resource.model.model_name.route_key}/#{@resource.model.id
|
21
21
|
}/active_storage_attachments/#{@id}/#{@file.id}", color: :red, variant: :outlined, size: :xs, class: 'text-center', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
|
22
|
-
<%= helpers.svg 'trash' %> <span class="hidden lg:block lg:flex-1"><%= t
|
22
|
+
<%= helpers.svg 'trash' %> <span class="hidden lg:block lg:flex-1"><%= t 'avo.delete_file', item: @file.filename %></span>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
25
|
<% end %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<% end %>
|
20
20
|
<%= a_link "/avo/resources/#{@resource.model.model_name.route_key}/#{@resource.model.id
|
21
21
|
}/active_storage_attachments/#{@id}/#{@file.id}", color: :red, variant: :outlined, size: :md, class: '', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
|
22
|
-
<%= helpers.svg 'trash' %> <%= t
|
22
|
+
<%= helpers.svg 'trash' %> <%= t 'avo.delete_file', item: @file.filename %>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
25
|
<% else %>
|
@@ -6,5 +6,5 @@
|
|
6
6
|
path = helpers.resource_path(@resource.model)
|
7
7
|
end
|
8
8
|
%>
|
9
|
-
<% link_to_if (@field.link_to_resource or Avo.configuration.id_links_to_resource), @field.value, path, title: t('avo.view_item',
|
9
|
+
<% link_to_if (@field.link_to_resource or Avo.configuration.id_links_to_resource), @field.value, path, title: t('avo.view_item', item: @resource.name).humanize %>
|
10
10
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% if can_view? %>
|
3
3
|
<%= link_to helpers.svg('eye', class: 'text-gray-400 h-6 hover:text-gray-600'),
|
4
4
|
show_path,
|
5
|
-
title: t('avo.view_item',
|
5
|
+
title: t('avo.view_item', item: @resource.model.model_name.name.downcase ).capitalize,
|
6
6
|
data: {
|
7
7
|
control: :show,
|
8
8
|
'tippy': 'tooltip',
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% if can_edit? %>
|
14
14
|
<%= link_to helpers.svg('edit', class: 'text-gray-400 h-6 hover:text-gray-600'),
|
15
15
|
edit_path,
|
16
|
-
title: t('avo.edit_item',
|
16
|
+
title: t('avo.edit_item', item: @resource.model.model_name.name.downcase ).capitalize,
|
17
17
|
data: {
|
18
18
|
control: :edit,
|
19
19
|
'resource-id': @resource.model.id,
|
@@ -27,10 +27,10 @@
|
|
27
27
|
'data-turbo-frame': params[:turbo_frame]
|
28
28
|
} do |form| %>
|
29
29
|
<%= form.button helpers.svg('trash-sm', class: 'text-gray-400 h-6 hover:text-gray-600'),
|
30
|
-
title: t('avo.detach_item',
|
30
|
+
title: t('avo.detach_item', item: @resource.model.model_name.name.downcase).capitalize,
|
31
31
|
type: :submit,
|
32
32
|
data: {
|
33
|
-
confirm: t('avo.are_you_sure_detach_item',
|
33
|
+
confirm: t('avo.are_you_sure_detach_item', item: @resource.model.model_name.name.downcase),
|
34
34
|
control: :detach,
|
35
35
|
'resource-id': @resource.model.id,
|
36
36
|
'tippy': 'tooltip',
|
@@ -47,10 +47,10 @@
|
|
47
47
|
'data-turbo-frame': params[:turbo_frame]
|
48
48
|
} do |form| %>
|
49
49
|
<%= form.button helpers.svg('trash', class: 'text-gray-400 h-6 hover:text-gray-600'),
|
50
|
-
title: t('avo.delete_item',
|
50
|
+
title: t('avo.delete_item', item: @resource.model.model_name.name.downcase ).capitalize,
|
51
51
|
type: :submit,
|
52
52
|
data: {
|
53
|
-
confirm: t('avo.are_you_sure',
|
53
|
+
confirm: t('avo.are_you_sure', item: @resource.model.model_name.name.downcase ),
|
54
54
|
control: :destroy,
|
55
55
|
'resource-id': @resource.model.id,
|
56
56
|
'tippy': 'tooltip',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= panel(title: @field.id.capitalize) do |c| %>
|
7
7
|
<% c.with :tools do %>
|
8
8
|
<%= a_link helpers.resource_attach_path(@resource.model.model_name.route_key, @resource.model.id, @field.id), color: 'indigo', 'data-turbo-frame': 'attach_modal' do %>
|
9
|
-
<%= svg 'view-grid-add' %> <%= t('avo.attach_item',
|
9
|
+
<%= svg 'view-grid-add' %> <%= t('avo.attach_item', item: @field.id).capitalize %>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
<% if can_create? %>
|
6
6
|
<%= a_link create_path do %>
|
7
|
-
<%= svg 'plus' %> <%= t('avo.create_new_item',
|
7
|
+
<%= svg 'plus' %> <%= t('avo.create_new_item', item: @resource.model_class.model_name.human.downcase ) %>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<% if can_detach? %>
|
12
12
|
<%= a_link detach_path, color: 'indigo', method: :delete, data: { confirm: "Are you sure you want to detach this #{@resource.singular_name}." } do %>
|
13
|
-
<%= svg 'trash' %> <%= t('avo.detach_item',
|
13
|
+
<%= svg 'trash' %> <%= t('avo.detach_item', item: @resource.singular_name).capitalize %>
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
16
|
|
17
17
|
<% if can_attach? %>
|
18
18
|
<%= a_link attach_path, color: 'indigo', 'data-turbo-frame': 'attach_modal' do %>
|
19
|
-
<%= svg 'view-grid-add' %> <%= t('avo.attach_item',
|
19
|
+
<%= svg 'view-grid-add' %> <%= t('avo.attach_item', item: @resource.singular_name).capitalize %>
|
20
20
|
<% end %>
|
21
21
|
<% end %>
|
22
22
|
<% end %>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<% if @models.present? %>
|
45
45
|
<div class="py-4">
|
46
|
-
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame } %>
|
46
|
+
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame || 'none' } %>
|
47
47
|
</div>
|
48
48
|
<% end %>
|
49
49
|
</div>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
<%= render Avo::Index::ResourceGridComponent.new(resources: @resources, resource: @resource, reflection: @reflection, parent_model: @parent_model) %>
|
56
56
|
|
57
57
|
<div class="bg-white rounded-xl shadow-xl mt-8 py-6">
|
58
|
-
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame } %>
|
58
|
+
<%= render partial: 'avo/partials/paginator', locals: { pagy: @pagy, turbo_frame: @turbo_frame || 'none' } %>
|
59
59
|
</div>
|
60
60
|
<% end %>
|
61
61
|
<% end %>
|