Sha256: ca2a0f1e5ea53cceb6e2eebf2bf3fd35ed2c4d144f13d04751d535840e8410f3

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 Bytes

Contents

<div class="left six columns alpha">
  <div class="field">
    <%= f.label :can_be_part, t('spree.can_be_part')%>
    <%= f.check_box(:can_be_part) %>
  </div>
</div>
<div class="right six columns omega">
  <div class="field">
    <%= f.label :individual_sale, t('spree.individual_sale')%>
    <%= f.check_box(:individual_sale) %>
  </div>
</div>

<% if @product.assembly? %>
  <% content_for :head do %>
    <script type="text/javascript">
      jQuery(document).ready(function(){
        $("input[id='product_on_hand']").attr('disabled',true).parent().hide();
        $("input#product_can_be_part").attr('disabled',true);
      });
    </script>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_product_assembly-1.4.0 app/views/spree/admin/products/_product_assembly_fields.html.erb
solidus_product_assembly-1.3.0 app/views/spree/admin/products/_product_assembly_fields.html.erb
solidus_product_assembly-1.2.0 app/views/spree/admin/products/_product_assembly_fields.html.erb
solidus_product_assembly-1.1.0 app/views/spree/admin/products/_product_assembly_fields.html.erb