-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not sure where classname commit went
- Loading branch information
Showing
15 changed files
with
287 additions
and
933 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.8.1' | ||
__version__ = '0.7.1' |
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 |
---|---|---|
@@ -1,4 +1,61 @@ | ||
metadata: | ||
title: ALToolbox - CustomDatatype "ThreePartsDate" | ||
--- | ||
features: | ||
css: al_three_parts_date.css | ||
--- | ||
modules: | ||
- .ThreePartsDate | ||
--- | ||
mandatory: True | ||
code: | | ||
date_of_birth | ||
end | ||
--- | ||
question: | | ||
Regular datatype vs ThreePartsDate datatype. | ||
subquestion: | | ||
This example shows you how to use the **ThreePartsDate** datatype.<br/><br/> | ||
ThreePartsDate is good for dates such as a birth date where it's easier for a user to type than to use a long dropdown, or when a browser doesn't honor a datepicker. | ||
The BirthDate datatype is like ThreePartsDate, but it adds | ||
validation so that you cannot enter dates in the future. | ||
fields: | ||
- When is your high school graduation?: date_of_graduation | ||
datatype: ThreePartsDate | ||
required: False | ||
- Birth date (today is valid): date_of_birth | ||
datatype: BirthDate | ||
default: ${ today(format='MM/dd/yyyy') } | ||
required: True | ||
- Show hidden date fields: show_fields | ||
datatype: yesno | ||
- Court date: court_date | ||
datatype: ThreePartsDate | ||
default: '2/1/2055' | ||
required: True | ||
show if: show_fields | ||
- Date you lost your first tooth: tooth_date | ||
datatype: BirthDate | ||
required: False | ||
show if: show_fields | ||
--- | ||
#mandatory: true | ||
event: end | ||
question: | | ||
Your dates | ||
subquestion: | | ||
% if date_of_birth: | ||
You were born ${ date_of_birth }. | ||
% endif | ||
% if date_of_graduation: | ||
Your graduation date is ${ date_of_graduation } | ||
% endif | ||
% if defined('court_date'): | ||
Your court date is ${ court_date } | ||
% endif | ||
% if defined('tooth_date') and not tooth_date is None: | ||
The date lost your first tooth was ${ tooth_date } | ||
% endif |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.al_collapse_template { | ||
padding-bottom: 1rem; | ||
} | ||
|
||
a span.pdcaretopen { | ||
display: inline; | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
background: lightcyan; | ||
color: darkgreen; | ||
} | ||
h5 { | ||
|
||
h5, .h5 { | ||
color: brown; | ||
} |
Oops, something went wrong.