Commit Graph

57 Commits

Author SHA1 Message Date
Paul Konstantin Gerke b431c27835 Add color widget to the admin-UI 2022-03-08 12:55:50 +01:00
Paul Konstantin Gerke 3ac21ed67b Linting 2022-02-27 20:00:12 +01:00
Paul Konstantin Gerke 56ebbd3181 Fix storing of tags 2022-02-15 15:46:07 +01:00
Paul Konstantin Gerke bf49cc92ad Initial (bugged) work on tag editor 2022-02-15 10:13:35 +01:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Yulian Kuncheff 0af4521005 Linting and faker changes 2021-12-31 09:19:53 -05:00
Yulian Kuncheff 9b604627a1 Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature. 2021-12-31 09:19:53 -05:00
Christopher C. Wells 0a74061a7a Remove readonly state from datetime picker fields (#284) 2021-09-03 20:38:15 -07:00
Christopher C. Wells a2da7e32f9 Disable autocomplete on datetime form fields (#224)
The actual issue here is that the readonly property is no longer working. This
should be fixed in a separate commit.
2021-06-19 15:20:03 -07:00
jcgoette 0001281d66 default last feed method if not left/right breast 2021-06-19 14:17:34 -07:00
Christopher C. Wells 3f0694dc9d Make datetime editable for Note model
Closes #151
2020-08-12 19:47:58 -07:00
Peter Hardy 4581722e0b Actually check for FBM as well (#127). 2020-03-26 22:28:27 +11:00
Peter Hardy 4978208d7f Prepopulate method for formula types (#127). 2020-03-26 22:15:08 +11:00
Christopher C. Wells 11164f0cd0 Set notes textarea to 5 rows 2020-02-16 15:09:57 -08:00
Christopher C. Wells 48a0093700 Add general notes to most models 2020-02-16 15:09:57 -08:00
Christopher C. Wells 60cd90ca80 Use `last()` instead of `latest()`
With `latest()`, an exception is thrown if there is one child in the database and no feeding entries.
2020-02-08 14:02:47 -08:00
Christopher C. Wells 3eb0e336c6 Refactor core forms on a base class to handle initial values 2020-01-31 09:09:01 -08:00
Christopher C. Wells 4e01365e85 Set Child from an argument instead of the timer 2020-01-31 09:09:01 -08:00
Christopher C. Wells 5e9946ecd6 Respect child if set when setting feeding defaults 2020-01-31 09:09:01 -08:00
Christopher C. Wells b31d9194d9 Include child when setting defaults from timer 2020-01-31 09:09:01 -08:00
Christopher C. Wells c80ec252bc Add optional Child to Timer model 2020-01-31 09:09:01 -08:00
Christopher C. Wells 475b7abf78 Apply custom style to `.datetimepicker-input` 2020-01-31 08:47:03 -08:00
Christopher C. Wells b8e2416cd1 Set all datetime fields to `readonly` 2020-01-31 08:47:03 -08:00
Christopher C. Wells a8abfb725f Add generic "Amount" field to Diaper Change model (#77) 2020-01-26 13:22:20 -08:00
Christopher C. Wells 4397d4a406 Add temperature tracking. 2019-05-16 21:33:26 -07:00
Christopher C. Wells bd4705b77f Add translateable strings support in core app. 2019-04-13 22:51:44 -07:00
Christopher Charbonneau Wells 7c980150a4 Make sure there is at least one Feeding object before attempting to preset the type for a new entry. 2018-04-07 06:35:35 -07:00
Christopher Charbonneau Wells cdaef446a0 Automatically fill in the type field for a new Feeding entry with the value used for the latest entry. 2018-03-13 19:49:21 -07:00
Christopher Charbonneau Wells b10944b030 Fix datetime picker class name for time form fields. 2018-03-13 19:17:30 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells 5ad656060f Fix bug keeping datetime input open after losing focus. 2018-01-14 09:39:06 -05:00
Isaac Bythewood 969958df09 Move ALLOW_UPLOADS to BABY_BUDDY dict 2017-12-03 04:39:43 -05:00
Isaac Bythewood a503d346ae Make ALLOW_UPLOADS a setting dependent on user preference and platform 2017-11-18 20:59:51 -05:00
Isaac Bythewood bf62a4e252 Add ability to upload picture of child with thumbnailing capabilities. 2017-11-18 04:22:12 -05:00
Christopher Charbonneau Wells 067be4bf07 Add weight tracking. 2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells f947d37285 Add default Child to Note add form. 2017-11-09 19:50:54 -05:00
Christopher Charbonneau Wells 237796a644 Move form clean methods to models. 2017-11-01 16:14:42 -04:00
Christopher Charbonneau Wells 492bcddeb4 Add confirmation form for Child delete. 2017-10-31 20:49:10 -04:00
Christopher Charbonneau Wells c565bfc59a Add some model form validation for Diaper Change and Feeding. 2017-10-31 15:26:37 -04:00
Christopher Charbonneau Wells 5afc55ca31 Make Timer instance.start field editable. 2017-10-28 13:27:33 -04:00
Christopher Charbonneau Wells 98963572ba Use form classes to set appropriate field attributes in date/time fields.
Using a custom input element in the template caused issues with default values (e.g. when set by a timer).
2017-09-17 15:48:23 -04:00
Christopher Charbonneau Wells 115ef15c48 Fix timer add form to include user. 2017-09-10 09:50:16 -04:00
Christopher Charbonneau Wells 32da7873fa Add a timer edit flow. 2017-09-10 05:11:09 -04:00
Christopher Charbonneau Wells 476b7ece70 Add a timer form template. 2017-09-10 04:56:06 -04:00
Christopher Charbonneau Wells a9bc52dfff Move timer_stop to a model method and add a restart method. 2017-09-09 12:47:41 -04:00
Christopher Charbonneau Wells 7f5a40ae41 Add ability to stop a timer (WIP).
This commit handles everything except including the timer in the timers list in the UI. This may require changing the model declaration to make the "active" field more complex or add another field.
2017-09-08 14:36:22 -04:00
Christopher Charbonneau Wells f08ec94e3c Stop timer on instance save instead of form load. 2017-08-18 01:53:48 -04:00
Christopher Charbonneau Wells 62a1142ad6 Add ability to create instances from timer detail view. 2017-08-18 00:42:37 -04:00
Christopher Charbonneau Wells 0c9b953ab4 Default Child foreign keys if only instance exists. 2017-08-17 20:59:55 -04:00
Christopher Charbonneau Wells ac2cc8ec5f Assign user field during Timer instance save. 2017-08-17 20:42:47 -04:00