Sha256: 098545201306dbffd1e09fd6bddf04a272a1cce3dff21913d5a78decadbcded6

Contents?: true

Size: 480 Bytes

Versions: 102

Compression:

Stored size: 480 Bytes

Contents

<div data-hook="admin_<%= model_name %>_form_generate_vat_prices" class="<%= local_assigns[:wrapper_class] %> checkbox">
  <label>
    <%= form.check_box :rebuild_vat_prices, checked: form.object.prices.size <= 1 %>
    <%= Spree::Variant.human_attribute_name(:rebuild_vat_prices) %>
  </label>
</div>

<script type="text/javascript">
  $('#<%= model_name %>_price').on('change', function(e) {
    $('#<%= model_name %>_rebuild_vat_prices').prop('checked', true);
  });
</script>

Version data entries

102 entries across 102 versions & 2 rubygems

Version Path
solidus_backend-2.6.2 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.7.0 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.6.1 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.6.0 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.6.0.rc1 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.5.0 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb