Commit Graph

189 Commits

Author SHA1 Message Date
billybonks dd4e565008 feat: improve styling of pill groups
1. add default spacing
2. increase size to use all space on mobile
2024-02-27 20:11:41 -08:00
billybonks 66ccc1c6c8 refactor: move javascript to babybuddy.js
having it directly in the page html is not ideal, now its properly
isolated.

Also use the new classname
2024-02-27 20:11:41 -08:00
billybonks b7743674d8 feat: Improve advanced fields styling
on mobile it text align center
Increased the font size so its easier to click
Added translations
2024-02-27 20:11:41 -08:00
billybonks 232cde19ee feat: use field set on some forms
Create choices template to have all multi choice experience be the same
as radio select choices.

Moved notes and tags into advanced template in order to reduce the
amount of fields in a form for users. Given that these two fields are
usually a catch all for anything that is not in the core data model. it
is not garunteed that users will use them.

If a user does decide to use the fields we will store that selection in
localstorage so that they dont have to open it every time.

I put the javascript into the page section, as i seem to have had issues
with javascript blocks overriding each other.
2024-02-27 20:11:41 -08:00
billybonks 3edd645f53 feat: Add PillRadioSelect widget
In order to promote less clicks on the mobile experience, this wideget
will splat out the drop down options similar to child select
2024-02-27 20:11:41 -08:00
Sebastien Stettler 682090f594
feat: add links for bottle feeding (#764)
Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
2024-02-06 20:17:54 -08:00
Sebastien Stettler f30479db42
ci: add djlint to ci (#763)
* ci: add djlint to ci

* lint: all django templates
2024-02-06 05:35:36 -08:00
billybonksl 3c54636790 feat: create a trimmed form just for bottle feeding.
While Feeding for is great, i think there is room to create optimised
forms for breast feeding and bottle feeding.

This is the first one a trimmed down form for bottle feeding
specifically
2024-01-28 06:03:41 -08:00
Christopher C. Wells 39c1e98d8c Add birth time support to Child model 2023-10-21 14:02:07 -07:00
Christopher C. Wells b54499d6f2 Add image field to note 2023-10-20 17:06:59 -07:00
Christopher C. Wells b0de44b5d5 Correct missed BS5 class name updates
Fixes #677
2023-07-13 10:27:32 -07:00
Christopher C. Wells ad5f81d84a Adopt new Bootstrap 5 dark mode support 2023-07-09 09:26:13 -07:00
John Merlie d227a88403 fix for /pull/665#discussion_r1250140997 2023-07-09 08:48:54 -07:00
John Merlie dbbb0d325c add pumping to quick timer disposition 2023-07-09 08:48:54 -07:00
John Merlie 54c305fc46 update field references in pumping_list 2023-07-09 08:48:54 -07:00
Christopher C. Wells 472dba13f8 Update missed BS4 classes for BS5 2023-04-15 14:03:18 -07:00
Christopher C. Wells 4d1d915478 Adjust for changes from main rebase 2023-03-25 13:54:25 -07:00
Christopher C. Wells 7b7f17fde6 Remove "inactive" timer concept -- delete on complete
Closes #109
2023-03-25 13:23:05 -07:00
Christopher C. Wells 353533a6ef Remove custom frontend datetime handlers 2023-03-25 13:15:20 -07:00
Christopher C. Wells 4e98d18448 Update child radio for BS5 2023-03-25 13:12:15 -07:00
Christopher C. Wells 34fe811a54 Upgrade to Bootstrap 5 (#479)
* Update Tempus Dominus to v6 (WIP)

* Re-add calendar input prepend container

* Normalize setting of default date values

* Migrate to Bootstrap 5 (WIP)

* Remove deprecated card columns implementation from dashboard

* Update BS5 data props

* Use Masonry layout for dashboard cards (for now)

This doesn't seem particularly ideal so may need a more involved refactor

* Update styles for Bootstrap 5 deprecations

* Remove resolutions crap

* Refactor deprecated BS4 classes

* Update list table styles

* Refactor deprecated jumbotron class usages

* Update close button structure

* Add `v2` branch to standard CI workflows
2023-03-25 12:57:12 -07:00
Christopher Charbonneau Wells 996d81966c
Indicate user locked state and allow unlocking from users admin (#600)
* Use custom template for account lock

* Rename Baby Buddy base template tags

* Add user unlock view

* Add user unlock test
2023-02-11 09:02:23 -08:00
Brian O'Connor 6c14590579 Add tags to the list view and the Api serializer 2023-01-29 14:09:35 -08:00
earthcomfy 62bde09b3d fix: Hide recently used tags when tag list is empty 2022-10-04 17:03:44 -07:00
earthcomfy 364676aeac fix: Hide delete inactive timers button if there are no entries 2022-10-04 16:47:17 -07:00
Jean-Louis Jouannic 4455e74262 💄 improves dropdown toggle look and feel 2022-08-03 10:45:22 -07:00
Jean-Louis Jouannic 0cd989ff96 🚸 adds a child quick switch in breadcrumb
This quick switch is available in dashboard, timeline and reports breadcrumbs
and allows to quickly switch to the "same" page but for another child
2022-08-03 10:45:22 -07:00
Jean-Louis Jouannic a606f86033 🚸 improves quick timer user experience 2022-07-24 12:32:07 -07:00
Jean-Louis Jouannic a453d869a3 🎨 fixes template formatting 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic ac664cb511 applies new child selection widget to all forms
filters out blank option for timer form as it does not really
make sense to allow user to select no child
2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic e86d7cc6f6 💄 renders inputs as Bootstrap radio buttons 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic 956125afcc ♻️ puts child thumbnail in a dedicated template 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic 424f9947af ⚗️ changes the way to select child in feeding (for now)
- uses input radio instead of select,
- displays child thumbnail.
2022-07-07 14:28:40 -07:00
Christopher Charbonneau Wells f5ae1a55a7
Fix list view classes and colspans and re-sort menu items (#481)
* Standardize list class and fix colspans

Fixes #469

* Alpha organize new recent menu item additions
2022-06-12 19:24:00 -07:00
Xuesong 5ab2fce0d0
Handle plurals with `count` tag (#473) 2022-06-05 06:34:52 -07:00
bugbountyguy 9b4bbef5bf Change reading to entry and other PR feedback 2022-04-04 20:39:39 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy 5c45b037f0 Finish up adding the brestpump measurement 2022-04-04 20:39:39 -07:00
Paul Konstantin Gerke 5446c5a02c Add tags to timeline and all list views 2022-03-08 19:16:18 -08:00
Paul Konstantin Gerke 4919222d41 Rendering tag lists with templates 2022-03-08 19:16:18 -08:00
Paul Konstantin Gerke 3fa652cc25 Simple rendering of tags in lists 2022-03-08 19:16:18 -08:00
Paul Konstantin Gerke cfdb9e1ade Made widget translateable, added German translation 2022-02-27 19:41:27 +01:00
Paul Konstantin Gerke f1aa7c151c Replaced alert with bootstrap-modal 2022-02-27 02:19:19 +01:00
Paul Konstantin Gerke 332a5999bc Adding/removing tags works again 2022-02-26 15:50:38 +01:00
Paul Konstantin Gerke 747b398bd5 Create new javascript file for tags editor 2022-02-22 19:40:27 +01:00
Paul Konstantin Gerke 4fd55124f4 Basically everything works :) 2022-02-20 12:15:04 +01:00
Paul Konstantin Gerke c397836e68 Add dynamic tag creation 2022-02-18 00:22:01 +01:00
Paul Konstantin Gerke 5046b754e5 Add api-serializer 2022-02-15 22:24:13 +01:00
Paul Konstantin Gerke bf49cc92ad Initial (bugged) work on tag editor 2022-02-15 10:13:35 +01:00
Paul Konstantin Gerke d34814260f Alternative implementation for item ordering 2022-01-17 07:27:07 -08:00