From 0a88738faa58111ef02ddb6e1ebca9dedf5ba5ed Mon Sep 17 00:00:00 2001 From: Hugo Daniel Date: Wed, 24 Jul 2019 14:37:00 +0200 Subject: [PATCH] Replace old ruby syntax with new --- .../admin/product_properties/index.html.haml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/spree/admin/product_properties/index.html.haml b/app/views/spree/admin/product_properties/index.html.haml index 809746b24b..cf1faa590d 100644 --- a/app/views/spree/admin/product_properties/index.html.haml +++ b/app/views/spree/admin/product_properties/index.html.haml @@ -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'