1
0

31 Commits

Author SHA1 Message Date
cryptogopher
3ce5d5c940 Fix migration of default quantities
Allow Quantity formula to be nil but not blank
Add computed energy quantity
Reverse default quantities deletion order
2019-11-15 00:04:34 +01:00
cryptogopher
0e5a53b4b9 Moved defaults into separate migration 2019-11-14 22:21:40 +01:00
cryptogopher
12015f6083 Added Quantity.formula
Added timestamps to all models
2019-11-02 23:35:08 +01:00
cryptogopher
fcec8364bc Extra quantities styling in Nutrients listing
Fixed decimal precision/scale
2019-10-31 22:13:39 +01:00
cryptogopher
c0e3fd2e85 Changed Quantity.displayed -> Quantity.primary 2019-10-22 23:19:58 +02:00
cryptogopher
9664df4888 Added ingredient source setting/display/import 2019-09-23 22:33:40 +02:00
cryptogopher
0e6bbd8c74 Added loading default sources 2019-09-23 21:55:04 +02:00
cryptogopher
ce9f011694 Added Source perms and routing
Added Quantity displayed defaults
2019-09-23 15:05:26 +02:00
cryptogopher
e58952b0e7 Merged source db migration
Added Quantity 'displayed' column
2019-09-23 14:55:20 +02:00
cryptogopher
0b549b909a Added Sources model + controller
commands:
rails generate redmine_plugin_model body_tracking source
project:references name:string description:text
rails generate redmine_plugin_controller body_tracking sources index
create destroy
2019-09-23 14:45:13 +02:00
cryptogopher
eb43c4be21 Import fixes 2019-09-21 23:48:59 +02:00
cryptogopher
f039917d0e Added nested nutrients in ingredient form 2019-09-13 19:21:28 +02:00
cryptogopher
c82f903360 Added ingredient index and form 2019-09-13 14:48:43 +02:00
cryptogopher
c916e7fd3c Created ingredients controller
command: rails generate redmine_plugin_controller body_tracking
ingredients index create destroy
2019-09-13 14:03:39 +02:00
cryptogopher
7062652d0d Added nutrient model
command: rails generate redmine_plugin_model body_tracking nutrient
ingredient:references quantity:references unit:references amount:decimal
2019-09-13 13:54:56 +02:00
cryptogopher
8ea838b380 Added default quantity 2019-09-12 22:28:15 +02:00
cryptogopher
ffbe404ac0 Deleting quantities on db downgrade 2019-09-10 00:07:39 +02:00
cryptogopher
c79872b7ff Fixed some quantity descriptions 2019-09-09 23:49:23 +02:00
cryptogopher
9a7a840f3e Added further default quantities 2019-09-09 23:30:02 +02:00
cryptogopher
30314607ae Added importing quantities
Fixed display order of project quantities
2019-09-09 21:14:56 +02:00
cryptogopher
d74b721ee5 Added default quantities 2019-09-08 23:46:16 +02:00
cryptogopher
b31ab9d16a Added Quantity nesting with awesome_nested_set 2019-09-08 20:00:35 +02:00
cryptogopher
96509d5285 Fixed migration 2019-08-28 21:22:43 +02:00
cryptogopher
b63040b037 Added Ingredients model
command: rails generate redmine_plugin_model body_tracking ingredient
name:string ref_unit:references ref_amount:decimal hidden:boolean
source:references group:integer
2019-08-28 21:04:46 +02:00
cryptogopher
9a34cc0b95 Added Quantities model and controller
commands:
rails generate redmine_plugin_model body_tracking quantity
rails generate redmine_plugin_controller body_tracking quantities index
create destroy
2019-08-23 00:01:10 +02:00
cryptogopher
e9fc9c6475 Completed UnitsController#import and Unit index view 2019-08-22 01:12:37 +02:00
cryptogopher
8e7385cdcb Removed Unit.group, added UnitsController#import 2019-08-21 22:54:13 +02:00
cryptogopher
fea736bd36 Changed Unit.type -> .group
Added Unit validations. Added default Units.
2019-08-16 19:29:23 +02:00
cryptogopher
8082e42225 Added Unit types 2019-08-15 22:30:15 +02:00
cryptogopher
b0789e6217 Added new Unit form 2019-08-10 23:31:20 +02:00
cryptogopher
6b1bd9a45e Created Unit model
command: rails generate redmine_plugin_model body_tracking unit
name:string shortname:string type:integer
2019-08-08 21:46:26 +02:00