Sha256: 9f440f47f5a808222bca9a4e2d9c7af49d6aeede1032385fa6dc87241cd8b76f

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

= builder.string :property_name, div_class: 'col-md-7', class: 'property_autocomplete'
= builder.hidden_field :property_id, class: 'property_id'
= builder.string :value, div_class: 'col-md-7'

:javascript
  $(function() {
      $('.property_autocomplete').autocomplete({
          source: '#{admin_market_properties_path}',
          select: function(event, ui) {
            $(this).closest('.fields_container').find('.property_id').val(ui.item.id);
          }
      });
  });

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml
coalla-cms-0.5.2.4 lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml
coalla-cms-0.4.4.3 lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml
coalla-cms-0.5.1.9 lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml
coalla-cms-0.5.1.8 lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml