glpi icon indicating copy to clipboard operation
glpi copied to clipboard

feat(forms): Adding date and time category and related question type

Open ccailly opened this issue 1 year ago • 6 comments

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets

Add date and time question category for forms. Possibility of switching to date mode, time mode or both. Added option to set default value to current date/time.

image Short video example

ccailly avatar Feb 27 '24 14:02 ccailly

@ccailly Please rebase to solve conflicts.

cedric-anne avatar Mar 06 '24 10:03 cedric-anne

1st test: image

orthagh avatar Mar 06 '24 13:03 orthagh

1st test: image

The classnames of all the questions have been renamed. Have you tried a new form?

ccailly avatar Mar 06 '24 13:03 ccailly

Yes indeed, it works on a new form. Please let know in PR description when existing stuff could break.

orthagh avatar Mar 06 '24 14:03 orthagh

@ccailly Please rebase to solve conflicts.

cedric-anne avatar Mar 07 '24 11:03 cedric-anne

@cedric-anne A major UI overhaul is underway, I'm drafting the PR.

ccailly avatar Mar 07 '24 12:03 ccailly

@orthagh What do you think of the new UI? I've updated the description with new images and a video.

ccailly avatar Mar 11 '24 12:03 ccailly

Seems good

Just one small note: "Date and time" choice placed side of "Date" + "Time" switches still make an annoying repetition. I can live with, but maybe we could find a first level label that avoid the repetition. I suggest "Scheduling" or "Timing"

orthagh avatar Mar 11 '24 13:03 orthagh