Sha256: 6ab3f45744cf19678c9c3b6e6bd7a79045f96f6e0a9f3e1f9336240b9584a9fc
Contents?: true
Size: 1008 Bytes
Versions: 2
Compression:
Stored size: 1008 Bytes
Contents
- dynamic_field = f.index.is_a? String - css_class = ['js-new-order-item', 'hidden'].join(' ') if dynamic_field tr.comable-order-items class="#{css_class}" td width="180" = image_tag f.object.image_url, width: '100%', data: { name: 'image-url' } td p = f.text_field :name, placeholder: f.object.class.human_attribute_name(:name), data: { name: 'name' } p.text-muted = f.text_field :sku, placeholder: f.object.class.human_attribute_name(:sku), data: { name: 'sku' } td = f.text_field :price, placeholder: f.object.class.human_attribute_name(:price), data: { name: 'price' } td = f.text_field :quantity, placeholder: f.object.class.human_attribute_name(:quantity), data: { name: 'quantity' } td = f.text_field :subtotal_price, disabled: true, data: { name: 'subtotal-price' } br = f.text_field :variant_id, data: { name: 'variant-id' }, class: 'hidden' = link_to Comable.t('admin.actions.destroy'), 'javascript:void(0)', class: 'js-remove-order-item'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comable-backend-0.7.1 | app/views/comable/admin/shared/_order_items_fields.slim |
comable-backend-0.7.0 | app/views/comable/admin/shared/_order_items_fields.slim |