-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default text doesn't enter time inputs correct for a few reasons: * The text input doesn't expected you to type ":", spaces, or the "M" in "AM" or "PM". The space specifically seems to mess up inputs. * You need to key press "Enter" after entering the time, otherwise moving focus will erase the current input. This change filters the time value given to remove ":", " ", and "M", and also adds an Enter keypress to make sure the value is entered correctly.
- Loading branch information
1 parent
12dc240
commit bc3f744
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
docassemble/ALKilnTests/data/questions/test_date_and_time.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
metadata: | ||
title: Test testing library - date and time | ||
short title: Test ALKiln | ||
--- | ||
features: | ||
css: | ||
- styles.css | ||
--- | ||
# Necessary to tell us what the sought var is on each page | ||
# Every interview that wants testing will need to have an element like this | ||
default screen parts: | ||
post: | | ||
<div data-variable="${ encode_name(str( user_info().variable )) }" id="trigger" aria-hidden="true" style="display: none;"></div> | ||
--- | ||
mandatory: True | ||
id: interview order | ||
code: | | ||
date_and_time | ||
end | ||
--- | ||
id: date and time | ||
continue button field: date_and_time | ||
question: | | ||
Date and time | ||
fields: | ||
- date field: date_input | ||
datatype: date | ||
- time field: time_input | ||
datatype: time | ||
--- | ||
id: the end | ||
event: end | ||
question: | | ||
Congratulations! Tests have passed! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters