- @page_title = t('workarea.admin.create_pricing_discounts.publish.title', discount: @discount.name) .view .view__header .view__heading %h1.heading.heading--no-margin= t('workarea.admin.create_pricing_discounts.publish.when_does_it_go_live', discount_name: @discount.name) %p= link_to t('workarea.admin.create_pricing_discounts.workflow.or_skip_this'), url_for(@discount) .view__container.view__container--narrow = form_tag save_publish_create_pricing_discount_path(@discount), method: 'post' do .section .grid.grid--center .grid__cell.grid__cell--40-at-medium = render 'workarea/admin/releases/publish' = render 'workarea/admin/segments/publish', model: @discount .workflow-bar .grid.grid--middle .grid__cell.grid__cell--20 = link_to t('workarea.admin.create_pricing_discounts.workflow.cancel'), pricing_discount_path(@discount), class: 'workflow-bar__button workflow-bar__button--delete', data: { method: 'delete', confirm: t('workarea.admin.create_pricing_discounts.workflow.cancel_confirmation') } .grid__cell.grid__cell--60 %ol.workflow-bar__steps %li.workflow-bar__step 1) #{link_to t('workarea.admin.create_pricing_discounts.workflow.steps.setup'), create_pricing_discounts_path(@discount.workflow_params)} %li.workflow-bar__step 2) #{link_to t('workarea.admin.create_pricing_discounts.workflow.steps.details'), details_create_pricing_discounts_path(@discount.workflow_params)} %li.workflow-bar__step 3) #{link_to t('workarea.admin.create_pricing_discounts.workflow.steps.rules'), rules_create_pricing_discounts_path(@discount.workflow_params)} %li.workflow-bar__step %strong 4) #{t('workarea.admin.create_pricing_discounts.workflow.steps.publish')} .grid__cell.grid__cell--20 .grid.grid--auto.grid--right.grid--middle .grid__cell= button_tag t('workarea.admin.create_pricing_discounts.workflow.save_and_finish'), value: 'publish', class: 'workflow-bar__button workflow-bar__button--create'