- @page_title= t('workarea.admin.country_exceptions.index.page_title', product: @product.name) .view .view__header .grid .grid__cell.grid__cell--25 = render 'workarea/admin/releases/select' .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) .section %h2.view__heading= t('workarea.admin.country_exceptions.index.heading') %table.index-table %thead %tr %th= t('workarea.admin.fields.country') %th= t('workarea.admin.fields.vat_rate') %th= t('workarea.admin.fields.restricted') %th %tbody - @product.country_exceptions.each do |country_exception| %tr.index-table__row %td= country_exception.country.name %td= country_exception.vat_rate %td - if country_exception.restricted? restricted - else not restricted %td .align-right< = link_to edit_catalog_product_country_exception_path(@product, country_exception), id: dom_id(country_exception, 'edit_action') do = inline_svg('workarea/admin/icons/edit.svg', class: 'svg-icon svg-icon--small', title: t('workarea.admin.actions.edit')) = link_to catalog_product_country_exception_path(@product, country_exception), id: dom_id(country_exception, 'delete_action'), data: { method: 'delete', confirm: t('workarea.admin.actions.delete_confirmation') } do = inline_svg('workarea/admin/icons/delete.svg', class: 'svg-icon svg-icon--small svg-icon--red', title: t('workarea.admin.actions.delete')) .workflow-bar .grid.grid--auto.grid--right.grid--middle .grid__cell = link_to t('workarea.admin.country_exceptions.index.add_new'), new_catalog_product_country_exception_path(@product), class: 'workflow-bar__button workflow-bar__button--create'