Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize Calendar slot duration and slot label interval #271

Open
wants to merge 2 commits into
base: 7.0.0.dev
Choose a base branch
from

Conversation

abuckles-uci
Copy link
Contributor

Hello, this PR is for issue #223

It adds these two calendar customizations:

customization

Which in this example would look like this:

calendar

Please let me know if anything needs to be added/changed. Thanks!

Comment on lines +622 to +623
"slotDuration": '{{ calendar_slot_duration }}',
"slotLabelInterval": '{{ calendar_slot_label_interval }}',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually fixed this because pre-commit added spaces instead of tabs

@rptmat57
Copy link
Contributor

I think the visual end in mixins.py would need to be adjusted if we use something less than 15min.
Also when editing the start or end date it currently checks that it's 15 min increment too, so that needs to be changed too.

Lastly, I believe some of the functions in timed_services also rely on the 15 minimum increment.

@rptmat57 rptmat57 changed the base branch from 6.1.0.dev to 7.0.0.dev February 14, 2025 02:07
@rptmat57
Copy link
Contributor

And one more: in kiosk and mobile devices, the times for reservations also use a 15 min interval currently.

@abuckles-uci
Copy link
Contributor Author

Ok got, I'll look into these. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants