mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace old ruby syntax with new
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
= render :partial => 'spree/admin/shared/product_sub_menu'
|
||||
= render partial: 'spree/admin/shared/product_sub_menu'
|
||||
|
||||
= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Product Properties' }
|
||||
= render partial: 'spree/admin/shared/product_tabs', locals: { current: 'Product Properties' }
|
||||
|
||||
= render :partial => 'spree/shared/error_messages', :locals => { :target => @product }
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @product }
|
||||
|
||||
- content_for :page_actions do
|
||||
%ul.tollbar.inline-menu
|
||||
%li
|
||||
= link_to_add_fields Spree.t(:add_product_properties), 'tbody#product_properties', :class => 'icon-plus button'
|
||||
= link_to_add_fields Spree.t(:add_product_properties), 'tbody#product_properties', class: 'icon-plus button'
|
||||
%li
|
||||
%span#new_ptype_link
|
||||
= link_to Spree.t(:select_from_prototype), available_admin_prototypes_url, :remote => true, 'data-update' => 'prototypes', :class => 'button icon-copy'
|
||||
= link_to Spree.t(:select_from_prototype), available_admin_prototypes_url, remote: true, 'data-update' => 'prototypes', class: 'button icon-copy'
|
||||
|
||||
= form_for @product, :url => admin_product_url(@product), :method => :put do |f|
|
||||
= form_for @product, url: admin_product_url(@product), method: :put do |f|
|
||||
%fieldset.no-border-top
|
||||
.add_product_properties{"data-hook" => "add_product_properties"}
|
||||
#prototypes{"data-hook" => ""}
|
||||
= image_tag 'select2-spinner.gif', :plugin => 'spree', :style => 'display:none;', :id => 'busy_indicator'
|
||||
= image_tag 'select2-spinner.gif', plugin: 'spree', style: 'display:none;', id: 'busy_indicator'
|
||||
|
||||
%table.index.sortable{"data-hook" => "", "data-sortable-link" => update_positions_admin_product_product_properties_url}
|
||||
%thead
|
||||
@@ -28,10 +28,10 @@
|
||||
|
||||
%tbody#product_properties{"data-hook" => ""}
|
||||
= f.fields_for :product_properties do |pp_form|
|
||||
= render :partial => 'product_property_fields', :locals => { :f => pp_form }
|
||||
= render partial: 'product_property_fields', locals: { f: pp_form }
|
||||
|
||||
=f.check_box :inherits_properties
|
||||
=f.label :inherits_properties, t(".inherits_properties_checkbox_hint", supplier: @product.supplier.name)
|
||||
= f.check_box :inherits_properties
|
||||
= f.label :inherits_properties, t(".inherits_properties_checkbox_hint", supplier: @product.supplier.name)
|
||||
%br
|
||||
%br
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
%td.actions
|
||||
|
||||
|
||||
= render :partial => 'spree/admin/shared/edit_resource_links'
|
||||
= render partial: 'spree/admin/shared/edit_resource_links'
|
||||
|
||||
= hidden_field_tag 'clear_product_properties', 'true'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user