Sha256: 35e9d969be5ef6a015f88c258e51df33631aa08938e230a5212c48cf2713f875

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

Deface::Override.new(
  virtual_path:  'spree/admin/option_types/_option_value_fields',
  name:          'option_value_translation',
  insert_bottom: 'td.actions',
  text:           <<-HTML
                    <% if f.object.persisted? %>
                      <%= link_to_with_icon 'translate', nil, spree.admin_translations_path('option_values', f.object.id), title: Spree.t(:'i18n.translations'), class: 'btn btn-sm btn-primary' %>
                    <% end %>
                  HTML
)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_mobility-1.3.0 app/overrides/spree/admin/option_types/_option_value_fields/add_translation.rb
spree_mobility-1.2.0 app/overrides/spree/admin/option_types/_option_value_fields/add_translation.rb
spree_mobility-1.1.0 app/overrides/spree/admin/option_types/_option_value_fields/add_translation.rb
spree_mobility-1.0.0 app/overrides/spree/admin/option_types/_option_value_fields/add_translation.rb