Sha256: e2e8e86f181ef21111228dc814a681119295297d77a8fcc9d2a572c91243ff6c

Contents?: true

Size: 1.03 KB

Versions: 28

Compression:

Stored size: 1.03 KB

Contents

- if rule.persisted?
  = form_tag product_list_product_rule_path(product_list.to_global_id, rule), method: 'patch', data: { product_rules_preview: '', product_list_id: product_list.to_global_id.to_param, rule_id: rule.id.to_s, unsaved_changes: '' } do
    = hidden_field_tag 'return_to', local_assigns[:return_to]
    = hidden_field_tag 'show_all', params[:show_all], id: nil
    = render_product_rule_fields_for(rule)
    = button_tag t('workarea.admin.actions.save'), class: 'button button--small'
- else
  = form_tag product_list_product_rules_path(product_list.to_global_id), method: 'post', data: { product_rules_preview: '', product_list_id: product_list.to_global_id.to_param, rule_id: rule.id.to_s, unsaved_changes: '' } do
    = hidden_field_tag 'return_to', local_assigns[:return_to]
    = hidden_field_tag 'show_all', params[:show_all], id: nil
    = hidden_field_tag 'product_rule[activate_with]', current_release&.id
    = render_product_rule_fields_for(rule)
    = button_tag t('workarea.admin.actions.save'), class: 'button button--small'

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.6 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.5 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.4 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.3 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.2 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.1 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.0 app/views/workarea/admin/product_rules/_form.html.haml
workarea-admin-3.5.0.beta.1 app/views/workarea/admin/product_rules/_form.html.haml