cryptogopher
1f5ea1cfb6
compute_quantities: allow indirect associations and model dependencies
2020-05-10 18:06:32 +02:00
cryptogopher
85ec7efa16
Removed some table borders
2020-05-02 17:44:50 +02:00
cryptogopher
b3f7199f93
Moved adjust from IngredientsController to MealsController
2020-05-02 16:49:54 +02:00
cryptogopher
4397249fa9
Separated show for date/meal/ingredient
2020-05-02 15:47:08 +02:00
cryptogopher
3ac73ac3a8
Style changes
2020-05-02 15:17:21 +02:00
cryptogopher
1734910d10
Styling changes
2020-05-02 14:50:42 +02:00
cryptogopher
54fc7ecf7e
Coloring index summaries
2020-05-01 23:44:37 +02:00
cryptogopher
dafebdc529
Displaying date summary
2020-05-01 18:45:22 +02:00
cryptogopher
f6a7f0219e
Summarizing nutrients + displaying meal summary
2020-05-01 18:34:40 +02:00
cryptogopher
9ccd41b422
Styles adjustments
2020-04-30 18:50:28 +02:00
cryptogopher
e74c707729
Displaying amount column in same format as quantities
2020-04-29 23:12:59 +02:00
cryptogopher
da11c0f626
Restyled quantity header
...
Exposure close button removed, toggling only from select
2020-04-29 22:26:48 +02:00
cryptogopher
3418af87c1
Displaying quantities with fixed precision/MFU unit removed
2020-04-28 16:05:42 +02:00
cryptogopher
dfa20a55d1
Displaying quantities in MEals index, WIP
2020-04-27 18:15:40 +02:00
cryptogopher
4230d72206
compute_quantities now returns single hash
...
Fixed MeasurementsController view management
2020-04-26 20:21:17 +02:00
cryptogopher
c24bdd6f45
Renamed: formula_q -> filter_q
...
Added Meal related associations to Project
2020-04-25 22:49:48 +02:00
cryptogopher
c029ba59c2
Fixed saving Meal exposures
...
According to:
https://stackoverflow.com/questions/34328735/imageable-type-is-not-setting-for-polymorphic-associations
and
https://stackoverflow.com/questions/2494452/rails-polymorphic-association-with-multiple-associations-on-the-same-model
2020-04-25 18:07:58 +02:00
cryptogopher
ab8ed92929
Added MealsController#toggle_exposure
2020-04-25 15:52:35 +02:00
cryptogopher
a4781b4fcd
Renamed: column -> exposure
...
Moved toggle_column_options to body_trackers helper
2020-04-25 15:42:22 +02:00
cryptogopher
1007385e1f
Added eaten_at to Meal form
2020-04-24 16:53:24 +02:00
cryptogopher
cdd7107567
Rearranged Meals index columns
2020-04-24 15:36:16 +02:00
cryptogopher
5ab17cf69b
Added MealsController#destroy
2020-04-24 00:54:32 +02:00
cryptogopher
dfeb9af6db
Added Meal edit/update
2020-04-20 22:56:05 +02:00
cryptogopher
6b5cb85b11
Buttons/amount in separate columns
2020-04-20 22:07:10 +02:00
cryptogopher
baaefb2b68
Proper sorting of meals, index
2020-04-20 21:43:12 +02:00
cryptogopher
66cd7926e8
Added adjusting ingredient amount
2020-04-19 21:50:59 +02:00
cryptogopher
03d0a56474
Moved notes form from div to td
2020-04-19 21:34:24 +02:00
cryptogopher
3706206191
Update notes in div
2020-04-19 18:16:07 +02:00
cryptogopher
e659ecc760
Added MealsController#toggle_eaten
2020-04-19 16:03:03 +02:00
cryptogopher
620d86b18a
Updated Meals index
2020-04-19 00:02:39 +02:00
cryptogopher
923df9c8b2
Visual changes
2020-04-18 20:36:09 +02:00
cryptogopher
50b89de904
Meals index, WIP
2020-04-18 18:29:53 +02:00
cryptogopher
3ff36df168
IngredientsController#index WIP
2020-04-18 01:22:21 +02:00
cryptogopher
ed6b1b9fe7
Preliminary MealsController#create
2020-04-16 22:02:53 +02:00
cryptogopher
eb939a1be5
Sending Food id from autocomplete on Meal create
2020-04-16 19:09:24 +02:00
cryptogopher
e78803e474
Added MealsController#new and form autocomplete for Food
...
Renamed QuantityColumn -> Exposure
2020-04-15 23:42:58 +02:00
cryptogopher
8e8160c41a
Renamed Ingredient -> Food
...
Ingredient is now part of composition (meal/recipe/dish)
2020-04-14 19:44:19 +02:00
cryptogopher
c3010a70e8
Adding Meals, WIP
2020-04-13 15:36:59 +02:00
cryptogopher
dbb8bdc62e
Fixed formatting of routine description
2020-04-11 23:18:38 +02:00
cryptogopher
40d6a3a3f0
Displaying Measurement notes
2020-04-04 02:41:46 +02:00
cryptogopher
1b6905d105
Form improvements
2020-04-04 02:37:37 +02:00
cryptogopher
f00f93c9e9
View tracking through params in Ingredients
...
Squeezed ingredient form
2020-04-04 02:13:46 +02:00
cryptogopher
738161fc43
Squeezed time and source in 1 line
2020-04-03 23:55:39 +02:00
cryptogopher
90a8c263f5
Fixed labels in MeasurementRoutine form
2020-04-03 23:51:56 +02:00
cryptogopher
0e8634a3dd
Fixed multiple form creation on edit
2020-04-03 21:40:50 +02:00
cryptogopher
14f4c063de
Fixed creating/updating with MeasurementRoutine
...
Updated Measurement links with :view
2020-04-03 18:34:39 +02:00
cryptogopher
9f63c14f8a
Adding MeasurementRoutine selection/editing support
2020-04-02 02:23:53 +02:00
cryptogopher
0c724ed63f
Moved tracking of view state from session to params
2020-03-29 18:52:30 +02:00
cryptogopher
18419f1aeb
Added MeasurementRoutine as a nested Measurement model
...
Updated ItemsWithQuantities to work with MeasurementRoutine
Replaced ColumnViews HABTM with polymorphic HMT
Added Measurement notes
Added destroy restrictions on Quantity
Replaced BodyTrackingPluginController with Finders concern
Removed 'body_trackers' prefix from paths
Unified styling for textarea
2020-03-29 00:56:37 +01:00
cryptogopher
e7a33c684f
Dispplaying units of computed values
...
Fixed formula error messages display when filter formula not given
2020-03-25 23:07:59 +01:00