David Cook
5a1190cdda
Remove superfluous %div from haml elements with class
...
Div is the default element in HAML, so we don't need to specify it. https://haml.info/docs/yardoc/file.REFERENCE.html#implicit-div-elements
2025-03-03 14:46:24 +01:00
Gaetan Craig-Riou
67c11333f3
Use AdminTooltipComponent, instead of partial
2024-10-14 15:02:35 +11:00
Gaetan Craig-Riou
ce0c7929a7
Per review, remove the use of raw
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
a500c75ee9
Add stying for the unit pop out
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
4ae392490b
Fix variant system spec
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
8f38762393
Add missing translations for variant form
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
058d7eeb69
Use unit_value_with_description
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
7f16b6acde
Update variant form and rip out angular
2024-10-14 15:01:18 +11:00
Gaetan Craig-Riou
25371ee9d0
Fix admin pages
...
- move supplier to variant row on Bulk Edit product page
- add supplier dropdow on add/update variant page
2024-07-03 10:17:49 +10:00
David Cook
3e1e7d3a10
Show error messages and highlight for bulk editing
...
The validation message is on "tax_category", so labels and error messages can use that to show the error state.
But the select field has to be "tax_category_id" to work.
2024-05-16 14:19:58 +10:00
Matt-Yorkley
b30944471d
Update admin forms
2024-04-02 09:27:36 +11:00
Matt-Yorkley
eefc356472
Update shipping_category usage in admin pages
2023-08-14 21:02:47 +01:00
Matt-Yorkley
a52516bcbf
Move tax_category dropdown in edit pages
2023-07-31 09:23:20 +10:00
Jean-Baptiste Bellet
3286094804
number_to_currency can be nil: use a safe operator
2023-06-29 10:47:00 +02:00
Jean-Baptiste Bellet
2fcf706aa3
Remove unwanted space at the end of the price
...
This `number_to_currency` method seems to display an extra space, not necessary when unit is `''`
Strip it.
Update specs as well. Thanks @filipefurtad0 for specs!!!
2023-06-29 10:40:01 +02:00
Matt-Yorkley
a20277c3a7
Completely remove option_values and option_types from the codebase
2023-06-01 10:12:19 +01:00
Matt-Yorkley
3e5ecba738
Remove unhelpful Helper
2023-06-01 10:11:20 +01:00
MadisonBowron
697f2795d4
Remove arbitrary comments
2023-04-14 01:25:14 -04:00
MadisonBowron
9d0a69cceb
Fix admin product variants form to close issues #10579 & #430
2023-04-10 18:53:01 -04:00
binarygit
fd81429f39
Specify weight, height, width and depth as numeric field
2023-03-01 16:32:18 +01:00
Jean-Baptiste Bellet
e3f56556cf
Remove feature toggle around unit_price and enable it
2021-06-07 20:53:45 +02:00
Jean-Baptiste Bellet
608a28316c
Specify right for attribute for <label /> element
...
- So, `<label />` is rightly linked to its `<input />`
2021-04-02 15:22:01 +02:00
Jean-Baptiste Bellet
76fbb2be84
Use custom input text (instead of :price one)
...
- Use `variant_unit_price` for `id` attribute and `variant[unit_price]` for `name` attribute
- Previously, there was an duplicated `#id` on the page because we used `:price`
2021-04-02 15:22:01 +02:00
Jean-Baptiste Bellet
2849f18313
Add some CSS specification to avoid page content up/down move
...
- Use `display: flex`
- Improve the display of the blue cross by a better alignement into the circle
2021-03-25 23:21:26 +01:00
Jean-Baptiste Bellet
5c93ccc0e3
Refactor unit price i18n keys
...
- Now got two keys: `js.admin.unit_price_tooltip` and `js.shopfront.unit_price_tooltip`
2021-03-25 17:59:20 +01:00
Jean-Baptiste Bellet
e8a0858f15
Add unit prices into the "Edit variant" form
...
- Only needs to watch `unit_value_human` and `variant.price` the only two editable field for this form that is related to unit price
- Add hidden_field_tag to retrieve values into the controller
2021-03-18 09:48:42 +01:00
Arun Kumar Mohan
beece545de
Remove cost price field from product variant form
2021-02-06 18:48:06 -05:00
jeffrey s hill md
ed91c179cd
Changed translation paths
2020-04-17 12:04:27 -05:00
jeffrey s hill md
d8444dcf3c
Added placeholders
2020-04-16 14:59:41 -05:00
luisramos0
76e32b126f
Add a few more missing translation keys for product images and variants display as and display name
2019-11-01 10:40:02 +11:00
luisramos0
5fb9ebc594
Add missing translations for variants edit page
2019-11-01 10:40:02 +11:00
Hugo Daniel
0b20b80219
Add missing translations on product edit page
2019-11-01 10:38:06 +11:00
Luis Ramos
35d76ac991
Merge pull request #4298 from luisramos0/variant_edit
...
Make unit description visible in the variant edit page even for products which variant_unit is items
2019-10-13 19:54:41 +01:00
luisramos0
591efecde6
Make unit description field visible in the variant edit page even for products which variant_unit is items
2019-09-22 16:42:03 +01:00
luisramos0
cd6d34663e
Remove all usages of Spree Config track_inventory_levels, this is always true in OFN since v2.0.0
2019-09-22 15:25:24 +01:00
Hugo Daniel
bf2c1a0c1d
Add ng directive for setting on demand
2019-08-09 14:42:39 +02:00
Hugo Daniel
ec6f6056a8
Remove data-hooks
2019-07-25 14:34:06 +02:00
Hugo Daniel
986837d601
Import variants/_form.html.erb from spree_backend to ofn and de-deface it
2019-07-25 11:07:35 +02:00