humhub / calendar

Create one-time or recurring events, invite and manage attendees, and keep track of all your events with the Calendar module.
28 stars 46 forks source link

add create button #423

Closed felixhahnweilheim closed 11 months ago

felixhahnweilheim commented 12 months ago

This PR adds a button (just a simple plus icon) to the FullCalendar with which you can create a new event (without selecting from the calendar).

Position: header right Position on mobile: footer right

Default times: start next full hour - end 1 hour later (similar to addFromWall)

The button is hidden via CSS when the user can not create events.

The click function for the button works similar to the "select" function. So the new entry is correctly added to the calendar without refreshing the page.

This solves https://github.com/humhub/calendar/issues/355 and https://github.com/humhub/calendar/issues/240

Screenshots:

Screenshot 2023-09-20 at 15-44-17 Calendar - Felix Hahn Development

Screenshot 2023-09-20 at 15-43-55 Design - Administration - Felix Hahn Development

luke- commented 12 months ago

@felixhahnweilheim Thanks, looks good for me! @yurabakhtin Can you please review?

yurabakhtin commented 12 months ago

@luke- I have tested, it works well.