avo 0.5.0.beta13 → 1.0.2
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 +1 -2
- data/Gemfile.lock +69 -79
- 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 +3 -3
- 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 +2 -2
- 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: d4deaec43a305c17e1cfb0427f2f2539ffe31f3aa0abbd2f353d45c4fbd7c122
|
4
|
+
data.tar.gz: a6351b2c75af841dda72bf09e85f693e6e1b0b733f4e47fe73de4e6577e0afbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e0ab93027fd906fed93a6e188034d83adcc57a712c75522c856fca89982d6fed648251d7037e5ab3f48d528205475bdd6f7f9214efe59d580ee0b7d4945f261
|
7
|
+
data.tar.gz: 1222aba1414d9ea3e7392698b3a0a8917b8d0d56ac4e746afd3373b2f2f8d648263eaa93b30601216c976d040ebc4ead197e9d49b79e8f9427fb3ac0b73de3cc
|
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
|
#
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (
|
4
|
+
avo (1.0.2)
|
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)
|
@@ -96,16 +96,13 @@ GEM
|
|
96
96
|
xpath (~> 3.2)
|
97
97
|
childprocess (3.0.0)
|
98
98
|
concurrent-ruby (1.1.8)
|
99
|
-
countries (3.0
|
100
|
-
i18n_data (~> 0.
|
99
|
+
countries (3.1.0)
|
100
|
+
i18n_data (~> 0.11.0)
|
101
101
|
sixarm_ruby_unaccent (~> 1.1)
|
102
102
|
unicode_utils (~> 1.4)
|
103
103
|
crack (0.4.4)
|
104
104
|
crass (1.0.6)
|
105
105
|
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
106
|
devise (4.7.3)
|
110
107
|
bcrypt (~> 3.0)
|
111
108
|
orm_adapter (~> 0.1)
|
@@ -126,7 +123,7 @@ GEM
|
|
126
123
|
railties (>= 5.0.0)
|
127
124
|
faker (2.14.0)
|
128
125
|
i18n (>= 1.6, < 2)
|
129
|
-
ffi (1.
|
126
|
+
ffi (1.15.0)
|
130
127
|
fuubar (2.5.0)
|
131
128
|
rspec-core (~> 3.0)
|
132
129
|
ruby-progressbar (~> 1.4)
|
@@ -141,9 +138,9 @@ GEM
|
|
141
138
|
httparty (0.18.1)
|
142
139
|
mime-types (~> 3.0)
|
143
140
|
multi_xml (>= 0.5.2)
|
144
|
-
i18n (1.8.
|
141
|
+
i18n (1.8.10)
|
145
142
|
concurrent-ruby (~> 1.0)
|
146
|
-
i18n_data (0.
|
143
|
+
i18n_data (0.11.0)
|
147
144
|
image_processing (1.12.1)
|
148
145
|
mini_magick (>= 4.9.5, < 5)
|
149
146
|
ruby-vips (>= 2.0.17, < 3)
|
@@ -151,36 +148,31 @@ GEM
|
|
151
148
|
i18n
|
152
149
|
jbuilder (2.10.1)
|
153
150
|
activesupport (>= 5.0.0)
|
154
|
-
listen (3.1
|
155
|
-
rb-fsevent (~> 0.
|
156
|
-
rb-inotify (~> 0.9, >= 0.9.
|
157
|
-
ruby_dep (~> 1.2)
|
151
|
+
listen (3.5.1)
|
152
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
153
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
158
154
|
loofah (2.9.0)
|
159
155
|
crass (~> 1.0.2)
|
160
156
|
nokogiri (>= 1.5.9)
|
161
157
|
mail (2.7.1)
|
162
158
|
mini_mime (>= 0.1.1)
|
163
|
-
marcel (0.
|
164
|
-
mimemagic (~> 0.3.2)
|
159
|
+
marcel (1.0.0)
|
165
160
|
method_source (1.0.0)
|
166
161
|
mime-types (3.3.1)
|
167
162
|
mime-types-data (~> 3.2015)
|
168
|
-
mime-types-data (3.
|
169
|
-
mimemagic (0.3.10)
|
170
|
-
nokogiri (~> 1)
|
171
|
-
rake
|
163
|
+
mime-types-data (3.2021.0225)
|
172
164
|
mini_magick (4.11.0)
|
173
|
-
mini_mime (1.0.
|
165
|
+
mini_mime (1.0.3)
|
174
166
|
mini_portile2 (2.5.0)
|
175
167
|
minitest (5.14.4)
|
176
168
|
msgpack (1.3.3)
|
177
169
|
multi_xml (0.6.0)
|
178
|
-
nio4r (2.5.
|
170
|
+
nio4r (2.5.7)
|
179
171
|
nokogiri (1.11.2)
|
180
172
|
mini_portile2 (~> 2.5.0)
|
181
173
|
racc (~> 1.4)
|
182
174
|
orm_adapter (0.5.0)
|
183
|
-
pagy (3.
|
175
|
+
pagy (3.12.0)
|
184
176
|
parallel (1.20.1)
|
185
177
|
parser (3.0.0.0)
|
186
178
|
ast (~> 2.4.1)
|
@@ -196,20 +188,20 @@ GEM
|
|
196
188
|
rack
|
197
189
|
rack-test (1.1.0)
|
198
190
|
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.
|
191
|
+
rails (6.0.3.6)
|
192
|
+
actioncable (= 6.0.3.6)
|
193
|
+
actionmailbox (= 6.0.3.6)
|
194
|
+
actionmailer (= 6.0.3.6)
|
195
|
+
actionpack (= 6.0.3.6)
|
196
|
+
actiontext (= 6.0.3.6)
|
197
|
+
actionview (= 6.0.3.6)
|
198
|
+
activejob (= 6.0.3.6)
|
199
|
+
activemodel (= 6.0.3.6)
|
200
|
+
activerecord (= 6.0.3.6)
|
201
|
+
activestorage (= 6.0.3.6)
|
202
|
+
activesupport (= 6.0.3.6)
|
211
203
|
bundler (>= 1.3.0)
|
212
|
-
railties (= 6.0.3.
|
204
|
+
railties (= 6.0.3.6)
|
213
205
|
sprockets-rails (>= 2.0.0)
|
214
206
|
rails-controller-testing (1.0.5)
|
215
207
|
actionpack (>= 5.0.1.rc1)
|
@@ -220,9 +212,9 @@ GEM
|
|
220
212
|
nokogiri (>= 1.6)
|
221
213
|
rails-html-sanitizer (1.3.0)
|
222
214
|
loofah (~> 2.3)
|
223
|
-
railties (6.0.3.
|
224
|
-
actionpack (= 6.0.3.
|
225
|
-
activesupport (= 6.0.3.
|
215
|
+
railties (6.0.3.6)
|
216
|
+
actionpack (= 6.0.3.6)
|
217
|
+
activesupport (= 6.0.3.6)
|
226
218
|
method_source
|
227
219
|
rake (>= 0.8.7)
|
228
220
|
thor (>= 0.20.3, < 2.0)
|
@@ -270,9 +262,8 @@ GEM
|
|
270
262
|
ruby-debug-ide (0.7.2)
|
271
263
|
rake (>= 0.8.1)
|
272
264
|
ruby-progressbar (1.10.1)
|
273
|
-
ruby-vips (2.0
|
274
|
-
ffi (~> 1.
|
275
|
-
ruby_dep (1.5.0)
|
265
|
+
ruby-vips (2.1.0)
|
266
|
+
ffi (~> 1.12)
|
276
267
|
rubyzip (2.3.0)
|
277
268
|
sass-rails (6.0.0)
|
278
269
|
sassc-rails (~> 2.1, >= 2.1.1)
|
@@ -362,7 +353,6 @@ DEPENDENCIES
|
|
362
353
|
capybara (>= 2.15)
|
363
354
|
countries
|
364
355
|
database_cleaner
|
365
|
-
debase
|
366
356
|
devise
|
367
357
|
dotenv-rails
|
368
358
|
factory_bot_rails
|
@@ -374,7 +364,7 @@ DEPENDENCIES
|
|
374
364
|
image_processing (~> 1.2)
|
375
365
|
iso
|
376
366
|
jbuilder (~> 2.7)
|
377
|
-
listen (>= 3.
|
367
|
+
listen (>= 3.3.0)
|
378
368
|
pagy
|
379
369
|
pg (>= 0.18, < 2.0)
|
380
370
|
puma (~> 4.3.5)
|
@@ -400,4 +390,4 @@ DEPENDENCIES
|
|
400
390
|
zeitwerk (~> 2.3)
|
401
391
|
|
402
392
|
BUNDLED WITH
|
403
|
-
2.2.
|
393
|
+
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 %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<% if @reflection.present? && @resource.model.present? %>
|
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
|
<% else %>
|
16
16
|
<%= a_link back_path do %>
|
@@ -19,12 +19,12 @@
|
|
19
19
|
|
20
20
|
<% if @resource.authorization.authorize_action(:destroy, raise_exception: false) %>
|
21
21
|
<%= form_with url: helpers.resource_path(@resource.model), method: :delete, html: { 'data-turbo-frame': params[:turbo_frame] } do |form| %>
|
22
|
-
<%= a_button title: t('avo.delete_item',
|
22
|
+
<%= a_button title: t('avo.delete_item', item: @resource.model.model_name.name.downcase).capitalize,
|
23
23
|
color: 'red',
|
24
24
|
variant: 'outlined',
|
25
25
|
type: :submit,
|
26
26
|
data: {
|
27
|
-
confirm: t('avo.are_you_sure',
|
27
|
+
confirm: t('avo.are_you_sure', item: @resource.model.model_name.name.downcase),
|
28
28
|
control: :destroy,
|
29
29
|
'resource-id': @resource.model.id,
|
30
30
|
'tippy': 'tooltip',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%
|
2
2
|
classes = 'absolute inset-auto left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2'
|
3
3
|
translation_tag = params[:related_name].present? ? 'avo.no_related_item_found' : 'avo.no_item_found'
|
4
|
-
label = t translation_tag,
|
4
|
+
label = t translation_tag, item: resource_name
|
5
5
|
%>
|
6
6
|
<div class="relative flex-1 py-12">
|
7
7
|
<div class="relative block text-gray-300 h-64 w-full">
|
@@ -11,7 +11,7 @@
|
|
11
11
|
translation_key = 'avo.table_view'
|
12
12
|
end
|
13
13
|
%>
|
14
|
-
<%= a_link params.permit!.merge(view_type: new_view_type), color: :blue, 'data-turbo-frame': turbo_frame, title: t('avo.switch_to_view',
|
15
|
-
<%= svg new_icon %> <%= t
|
14
|
+
<%= a_link params.permit!.merge(view_type: new_view_type), color: :blue, 'data-turbo-frame': turbo_frame, title: t('avo.switch_to_view', view_type: new_view_type), 'data-tippy': 'tooltip' do %>
|
15
|
+
<%= svg new_icon %> <%= t translation_key, item: @resource.model_class.model_name.human.downcase %>
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|