1
0

206 Commits

Author SHA1 Message Date
cryptogopher
80b10d108a Test pass: test_index_table_header_close_exposure
Allow closing last quantity column
2021-01-21 11:17:51 +01:00
cryptogopher
a29eba9861 Togglable quantities in table header 2021-01-21 10:28:49 +01:00
cryptogopher
53e8db20d1 Fix quantity header borders 2021-01-20 11:27:10 +01:00
cryptogopher
7d096748bf Test pass: test_index_options_add_exposure 2021-01-19 18:53:02 +01:00
cryptogopher
bd9b5f04f4 Restore Redmine default table header 2021-01-19 11:27:02 +01:00
cryptogopher
b742f39c7d Link rearrangement 2021-01-19 09:36:21 +01:00
cryptogopher
503f393f68 Set page title same as heading 2021-01-18 21:38:53 +01:00
cryptogopher
8d4e5215b3 Changed params [:goal][:id] -> [:goal_id] 2020-08-24 22:09:52 +02:00
cryptogopher
c2055c4eb4 Replaced #current_goal with @goal 2020-08-24 22:09:04 +02:00
cryptogopher
7e8508f9d4 Targets form allows only targets within one Goal 2020-08-24 15:33:17 +02:00
cryptogopher
8f0e718b4a Test refinements 2020-08-22 16:28:12 +02:00
cryptogopher
f9ba308072 Added test_create_binding_target
Goals (incl. binding) are required to have targets
Plugin fixtures are available through accessors
2020-08-20 21:52:18 +02:00
cryptogopher
59a14043c8 Added is_binding attribute to Goal
Fixed test_index to check for data rows only
2020-08-18 17:40:46 +02:00
cryptogopher
c79e03d0f4 Removed unused partials 2020-08-06 21:56:44 +02:00
cryptogopher
cf3bbb205d Added Targets index 2020-08-06 21:52:33 +02:00
cryptogopher
ffcc9553d5 Added Target create action 2020-07-25 16:28:55 +02:00
cryptogopher
5b83860ed7 Target form WIP 2020-07-02 18:59:55 +02:00
cryptogopher
0df2c6ec4f Preliminary Target #new support 2020-06-27 21:52:32 +02:00
cryptogopher
1dd2e2b596 Added Goal model and preliminary Targets index 2020-06-25 03:56:49 +02:00
cryptogopher
356e264c51 Cleaned up nutrients index table 2020-06-02 23:12:50 +02:00
cryptogopher
2216cea6d5 Displaying heirarchical quantity headers 2020-05-24 18:57:10 +02:00
cryptogopher
a416e1ce9b Fixed importing Foods with QuantityValue
Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
2020-05-20 23:33:34 +02:00
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