= form_for [page, share], remote: true, html: { class: "shares-editor__new-form #{css_class}", data: {share: share.name} }  do |f|

  = f.hidden_field :name
  = render partial: "share/#{share.name}s/share_fields", locals: { form: f, share: share, page: page }
  = f.submit 'Add share variant', class: 'btn btn-primary', 'data-disable-with' => t('common.saving')

= form_for [page, share], remote: true, html: { class: "shares-editor__new-form #{css_class}", data: {share: share.name} }  do |f|

  = f.hidden_field :name
  = render partial: "share/#{share.name}s/share_fields", locals: { form: f, share: share, page: page }
  = f.submit 'Save share variant', class: 'btn btn-primary', 'data-disable-with' => t('common.saving')

Save share variant instead of add share variant
Save share variant instead of add share variant

SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign