- @page_title = t('workarea.admin.country_exceptions.new.page_title', product: @product.name) .view .view__header .grid.grid--middle.grid--right .grid__cell.grid__cell--50 .view__heading = link_to_index_for(@product) %h1= link_to @product.name, url_for(@product) .grid__cell.grid__cell--25 = render_aux_navigation_for(@product) .view__container = render_cards_for(@product, :country_exceptions) - @country_exception.errors.full_messages.each do |message| = render_message 'error', message = form_tag catalog_product_country_exceptions_path(@product), method: 'post', id: 'country_exception_form', data: { unsaved_changes: '' } do %table %thead %tr %th= t('workarea.admin.fields.country') %th= t('workarea.admin.fields.restricted') %th= t('workarea.admin.fields.vat_rate') %tbody - @product.country_exceptions.each do |country_exception| %tr %td= country_exception.country %td= country_exception.restricted %td= country_exception.vat_rate %tr %td = select_tag "country_exception[country]", options_for_select(global_e_country_options, @country_exception.country&.alpha2), title: t('workarea.admin.fields.country') %td = toggle_button_for 'country_exception[restricted]', @country_exception.restricted? %td = text_field_tag 'country_exception[vat_rate]', @country_exception.vat_rate, class: 'text-box text-box--small', title: t('workarea.admin.fields.vat_rate') .workflow-bar .grid.grid--auto.grid--right.grid--middle .grid__cell= render 'workarea/admin/shared/activate_select', name: 'country_exception[activate_with]' .grid__cell= button_tag t('workarea.admin.country_exceptions.new.create_country_exception'), value: 'create_country_exception', class: 'workflow-bar__button workflow-bar__button--create'