wger icon indicating copy to clipboard operation
wger copied to clipboard

Allow decimal numbers for amount of minutes

Open Flooohhh opened this issue 4 years ago • 3 comments

If you enter a decimal numbers in the amount-field of the exercise you get a message that tells you to use the next integer value. With minutes as the unit it would make more sense to allow decimal numbers to be more precise.

Flooohhh avatar Mar 01 '21 20:03 Flooohhh

Mhh, you are right. Since this is internally stored in an integer field, it would be a nice usability improvement to also accept times and convert them after saving e.g. (same goes for displaying the values)

rolandgeider avatar Mar 01 '21 22:03 rolandgeider

Where can i find this problem?

jonte450 avatar Mar 08 '21 12:03 jonte450

When you add a new set you can select different units

image

This is rendered un set/formset.html (you might need to take a look at crispy forms helpers)

rolandgeider avatar Mar 08 '21 19:03 rolandgeider