Sha256: 4980e13d075a3f94edaff6fcab264cca0c70ff1e6b744f15608215e7d58f3684
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
- @page_title = t('workarea.admin.country_exceptions.edit.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) .view__container.view__container = form_tag catalog_product_country_exception_path(@product, @country_exception), method: :patch, data: { unsaved_changes: '' } do %table %thead %tr %th= t('workarea.admin.fields.country') %th= t('workarea.admin.fields.vat_rate') %th= t('workarea.admin.fields.restricted') %th %th %tbody - @product.country_exceptions.each do |country_exception| - if country_exception.id == @country_exception.id %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 = text_field_tag 'country_exception[vat_rate]', @country_exception.vat_rate, class: 'text-box text-box--small', title: t('workarea.admin.fields.vat_rate') %td = toggle_button_for 'country_exception[restricted]', @country_exception.restricted? - else %tr %td= country_exception.country %td= country_exception.vat_rate %td= country_exception.restricted %td .workflow-bar .grid.grid--auto.grid--right.grid--middle .grid__cell= button_tag t('workarea.admin.form.save_changes'), value: 'save_country_exception', class: 'workflow-bar__button workflow-bar__button--update'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-global_e-1.3.0 | app/views/workarea/admin/country_exceptions/edit.html.haml |
workarea-global_e-1.2.1 | app/views/workarea/admin/country_exceptions/edit.html.haml |