avo 0.5.0.beta15 → 1.0.5

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.

Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -5
  3. data/Gemfile.lock +77 -80
  4. data/README.md +3 -1
  5. data/app/components/avo/common/multiple_file_viewer_component.html.erb +1 -1
  6. data/app/components/avo/common/single_file_viewer_component.html.erb +1 -1
  7. data/app/components/avo/edit/fields/belongs_to_field_component.html.erb +0 -1
  8. data/app/components/avo/edit/fields/belongs_to_field_component.rb +7 -0
  9. data/app/components/avo/index/fields/gravatar_field_component.html.erb +1 -1
  10. data/app/components/avo/index/fields/id_field_component.html.erb +1 -1
  11. data/app/components/avo/index/resource_controls_component.html.erb +6 -6
  12. data/app/components/avo/show/fields/has_one_field_component.html.erb +1 -1
  13. data/app/components/avo/views/resource_index_component.html.erb +5 -5
  14. data/app/components/avo/views/resource_show_component.html.erb +3 -3
  15. data/app/views/avo/partials/_empty_state.html.erb +1 -1
  16. data/app/views/avo/partials/_view_toggle_button.html.erb +2 -2
  17. data/app/views/avo/relations/new.html.erb +1 -1
  18. data/lib/avo/base_resource.rb +11 -12
  19. data/lib/avo/fields/belongs_to_field.rb +0 -2
  20. data/lib/avo/version.rb +1 -1
  21. data/public/avo-packs/css/application-9d115b7e.css.map +1 -1
  22. data/public/avo-packs/css/application-9d115b7e.css.map.br +0 -0
  23. data/public/avo-packs/css/application-9d115b7e.css.map.gz +0 -0
  24. data/public/avo-packs/js/application-e351ef988a3cb9687542.js +26 -0
  25. data/public/avo-packs/js/{application-4751feac1bb0404b9c47.js.LICENSE.txt → application-e351ef988a3cb9687542.js.LICENSE.txt} +0 -0
  26. data/public/avo-packs/js/application-e351ef988a3cb9687542.js.br +0 -0
  27. data/public/avo-packs/js/application-e351ef988a3cb9687542.js.gz +0 -0
  28. data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map +1 -0
  29. data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map.br +0 -0
  30. data/public/avo-packs/js/application-e351ef988a3cb9687542.js.map.gz +0 -0
  31. data/public/avo-packs/manifest.json +8 -8
  32. metadata +11 -11
  33. data/public/avo-packs/js/application-4751feac1bb0404b9c47.js +0 -26
  34. data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.br +0 -0
  35. data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.gz +0 -0
  36. data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.map +0 -1
  37. data/public/avo-packs/js/application-4751feac1bb0404b9c47.js.map.br +0 -0
  38. 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: 2a48bc5ad159fe15a95e73adda76e1dbbbce2438ad1e7a0a40a5216874b67458
4
- data.tar.gz: 8cb8b516feafe9d6efb788a6adb0ba046c1bf677975998607584bed1c4602d59
3
+ metadata.gz: e461e9a96846fa13974beece6c1c7e7f4ab5bfd1e06d3582c60adf4524320a4a
4
+ data.tar.gz: 1222bceeff2b6c86c4a681cb686ead096b5b045a8520a8c1fe89768e9141fdd6
5
5
  SHA512:
6
- metadata.gz: 406bf2c13f50b26005ef1f205584d0477bd444ab026f593eb121cc8a7ed0425f742bc9e905fd1a9c682c8a868e1d391b75a7de8c2d0d8006a9026066d54d26ed
7
- data.tar.gz: 41e9b649b69a77d1ef2d58d9d78fa5de006804472091bf4c8906e94558ea9fc3b1e848a50ce9dee0820837a1dc55965910860b7ec00c5593eb2b57e0e57fc317
6
+ metadata.gz: e84debf74d612cbece059c7d49528e588894dcce64151dea13957947dd72517e73bc09d2b682efb2d206bcfa1c5d670e82dcbadebb5fd8c37af3714c839084ce
7
+ data.tar.gz: 8a0f4ce64b781820b5dd484bce061ed28cb585cea4423daf27729fd6594af61ca42ee93a580010c4a62eafb085a4301fe9cbba4ae3f9005f95039794e61aa2b0
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.0.5", "< 3.2"
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 (0.5.0.beta15)
4
+ avo (1.0.5)
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.5)
22
- actionpack (= 6.0.3.5)
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.5)
26
- actionpack (= 6.0.3.5)
27
- activejob (= 6.0.3.5)
28
- activerecord (= 6.0.3.5)
29
- activestorage (= 6.0.3.5)
30
- activesupport (= 6.0.3.5)
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.5)
33
- actionpack (= 6.0.3.5)
34
- actionview (= 6.0.3.5)
35
- activejob (= 6.0.3.5)
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.5)
39
- actionview (= 6.0.3.5)
40
- activesupport (= 6.0.3.5)
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.5)
46
- actionpack (= 6.0.3.5)
47
- activerecord (= 6.0.3.5)
48
- activestorage (= 6.0.3.5)
49
- activesupport (= 6.0.3.5)
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.5)
52
- activesupport (= 6.0.3.5)
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.5)
61
- activesupport (= 6.0.3.5)
60
+ activejob (6.0.3.6)
61
+ activesupport (= 6.0.3.6)
62
62
  globalid (>= 0.3.6)
63
- activemodel (6.0.3.5)
64
- activesupport (= 6.0.3.5)
65
- activerecord (6.0.3.5)
66
- activemodel (= 6.0.3.5)
67
- activesupport (= 6.0.3.5)
68
- activestorage (6.0.3.5)
69
- actionpack (= 6.0.3.5)
70
- activejob (= 6.0.3.5)
71
- activerecord (= 6.0.3.5)
72
- marcel (~> 0.3.1)
73
- activesupport (6.0.3.5)
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.1)
100
- i18n_data (~> 0.10.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.13.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.9)
145
+ i18n (1.8.10)
145
146
  concurrent-ruby (~> 1.0)
146
- i18n_data (0.10.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.5)
155
- rb-fsevent (~> 0.9, >= 0.9.4)
156
- rb-inotify (~> 0.9, >= 0.9.7)
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.3.3)
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.2020.0512)
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.2)
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.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.10.0)
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.5)
200
- actioncable (= 6.0.3.5)
201
- actionmailbox (= 6.0.3.5)
202
- actionmailer (= 6.0.3.5)
203
- actionpack (= 6.0.3.5)
204
- actiontext (= 6.0.3.5)
205
- actionview (= 6.0.3.5)
206
- activejob (= 6.0.3.5)
207
- activemodel (= 6.0.3.5)
208
- activerecord (= 6.0.3.5)
209
- activestorage (= 6.0.3.5)
210
- activesupport (= 6.0.3.5)
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.5)
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.5)
224
- actionpack (= 6.0.3.5)
225
- activesupport (= 6.0.3.5)
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.17)
274
- ffi (~> 1.9)
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.0.5, < 3.2)
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.5
400
+ 2.2.15
data/README.md CHANGED
@@ -15,10 +15,12 @@ Avo is a beautiful next-generation framework that empowers you, the developer, t
15
15
  **Documentation**: [docs.avohq.io](https://docs.avohq.io)\
16
16
  **Twitter**: [avo_hq](https://twitter.com/avo_hq)\
17
17
  **Community chat**: [discord](https://discord.gg/pkTF6y8)\
18
- **Issue tracker**: [GitHub issues](http://github.com/avo-hq/avo/issues)
18
+ **Issue tracker**: [GitHub issues](http://github.com/avo-hq/avo/issues)\
19
+ **Discussions and feature requests**: [GitHub issues](http://github.com/avo-hq/avo/discussions)
19
20
 
20
21
  ## Features
21
22
 
23
+ - **Powered by Hotwire** - Rails ❤️ Hotwire
22
24
  - **Code driven configuration** - Configure your Rails dashboard entirely by writing Ruby code.
23
25
  - **Resource Management** - Create a CRUD interface for Active Record from one command. No more copy-pasting view and controller files around.
24
26
  - **Active Storage support** - Amazingly easy, **one-line**, single or multi-file integration with **ActiveStorage**.
@@ -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('avo.delete_file', { item: @file.filename }) %></span>
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('avo.delete_file', { item: @file.filename }) %>
22
+ <%= helpers.svg 'trash' %> <%= t 'avo.delete_file', item: @file.filename %>
23
23
  <% end %>
24
24
  </div>
25
25
  <% else %>
@@ -1,5 +1,4 @@
1
1
  <%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal do %>
2
- <% disabled = @field.readonly || params[:via_resource_id] %>
3
2
  <%= @form.select @field.foreign_key, @field.options.map { |o| [o[:label], o[:value]] },
4
3
  {
5
4
  include_blank: @field.placeholder,
@@ -1,4 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::Edit::Fields::BelongsToFieldComponent < Avo::Edit::Fields::FieldComponent
4
+ def disabled
5
+ return true if @field.readonly
6
+ return true if @field.target_resource.model_class.name == params[:via_resource_class]
7
+ return true if @field.id.to_s == params[:via_relation].to_s
8
+
9
+ false
10
+ end
4
11
  end
@@ -6,7 +6,7 @@
6
6
  rounded: @field.rounded,
7
7
  link_to_resource: @field.link_to_resource,
8
8
  link: helpers.resource_path(@resource.model),
9
- title: t('avo.view_item', { item: @resource.name}).humanize
9
+ title: t('avo.view_item', item: @resource.name).humanize
10
10
  )
11
11
  %>
12
12
  <% end %>
@@ -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', { item: @resource.name}).humanize %>
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', { item: @resource.model.model_name.name.downcase }).capitalize,
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', { item: @resource.model.model_name.name.downcase }).capitalize,
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', { item: @resource.model.model_name.name.downcase }).capitalize,
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', { item: @resource.model.model_name.name.downcase }),
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', { item: @resource.model.model_name.name.downcase }).capitalize,
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', { item: @resource.model.model_name.name.downcase }),
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',