app/views/workarea/admin/pricing_discounts/edit.html.haml in workarea-admin-3.4.45 vs app/views/workarea/admin/pricing_discounts/edit.html.haml in workarea-admin-3.5.0.beta.1

- old
+ new

@@ -28,25 +28,15 @@ .property = label_tag 'discount_tag_list', t('workarea.admin.fields.tags'), class: 'property__name' = text_field_tag 'discount[tag_list]', @discount.tag_list, class: 'text-box' %span.property__note= t('workarea.admin.form.csv_field_note') - .grid - .grid__cell.grid__cell--50.grid__cell--25-at-medium - .property - %span.property__name - = t('workarea.admin.fields.active') - = inline_svg('workarea/admin/i18n.svg', class: 'svg-icon svg-icon--small') if locale_options.many? && Workarea.config.localized_active_fields - = toggle_button_for 'discount[active]', @discount.active? - .grid__cell.grid__cell--50.grid__cell--25-at-medium - .property - %span.property__name - = t('workarea.admin.fields.auto_deactivate') - = link_to '#auto-deactivate-info', data: { tooltip: '' } do - = inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue') - = toggle_button_for 'discount[auto_deactivate]', @discount.auto_deactivate? + .property + %span.property__name + = t('workarea.admin.fields.active') + = inline_svg('workarea/admin/i18n.svg', class: 'svg-icon svg-icon--small') if locale_options.many? && Workarea.config.localized_active_fields + = render 'workarea/admin/shared/active_field', scope: 'discount', model: @discount - #auto-deactivate-info.tooltip-content= t('workarea.admin.pricing_discounts.edit.auto_deactivate_info', duration: duration_in_words(Workarea.config.discount_staleness_ttl)) .grid .grid__cell.grid__cell--33.grid__cell--25-at-medium .property = label_tag 'redemptions', t('workarea.admin.fields.redemptions'), class: 'property__name'