backend/app/helpers/spree/admin/base_helper.rb
# renders hidden field and link to remove record using nested_attributes
renders hidden field and link to remove record using nested_attributes
renders hidden field and link to remove record using nested_attributes
def link_to_icon_remove_fields(form)
        url = form.object.persisted? ? [:admin, form.object] : '#'
        link_to_with_icon('delete', '', url,
                          class: 'spree_remove_fields btn btn-sm btn-danger',
                          data: {
                            action: 'remove'
                          },
                          title: Spree.t(:remove),
                          no_text: true
                         ) + form.hidden_field(:_destroy)
      end
def link_to_icon_remove_fields ( form ) url = form . object . persisted? ? [ :admin , form . object ] : '#' link_to_with_icon ( 'delete' , '' , url , class : 'spree_remove_fields btn btn-sm btn-danger' , data : { action : 'remove' } , title : Spree . t ( :remove ) , no_text : true ) + form . hidden_field ( :_destroy ) end
renders hidden field and link to remove record using nested_attributes
renders hidden field and link to remove record using nested_attributes
form