-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config will not look for hostname-sql and similar objects unless the …
…CONTAINERROLE is something other than all; item grid field modifier; developer can install Configuration directive; debug startup process Configuration directive; current_section attribute of output of user_info(); changed CSS so that spaces are preserved in code; fixed Sync and Run timing issue; fixed issue with datatype range UI not being disabled along with underlying input element; zipped packages were assumed to contain a root directory; datatype checkboxes variable passed as field to validation_error will be converted to a particular checkbox field; fixed the user/owner password system; support for Zitadel OAuth2 login; most social login methods did not correctly return first name and last name fields; under text field modifier
- Loading branch information
Showing
62 changed files
with
1,153 additions
and
470 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
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
29 changes: 29 additions & 0 deletions
29
docassemble_base/docassemble/base/data/questions/examples/disabled-field-dummy.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,29 @@ | ||
metadata: | ||
title: Disabled field | ||
documentation: "https://docassemble.org/docs/fields.html#disabled" | ||
example start: 1 | ||
example end: 2 | ||
--- | ||
question: | | ||
What is your favorite vegetable? | ||
fields: | ||
- Vegetable: favorite_vegetable | ||
--- | ||
question: | | ||
What are your favorite things to eat? | ||
fields: | ||
- Fruit: favorite_fruit | ||
- Vegetable: favorite_vegetable_placeholder | ||
disabled: True | ||
default: | | ||
${ favorite_vegetable } | ||
--- | ||
question: Result of question | ||
subquestion: | | ||
Your favorite fruit is ${ favorite_fruit }. | ||
Your favorite vegetable is ${ favorite_vegetable }. | ||
Note that the variable | ||
`favorite_vegetable_placeholder` is not defined. | ||
mandatory: True |
23 changes: 23 additions & 0 deletions
23
docassemble_base/docassemble/base/data/questions/examples/disabled-field.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,23 @@ | ||
metadata: | ||
title: Disabled field | ||
documentation: "https://docassemble.org/docs/fields.html#disabled" | ||
--- | ||
question: | | ||
What are your favorite things to eat? | ||
subquestion: | | ||
(It goes without saying that you love turnips.) | ||
fields: | ||
- Fruit: favorite_fruit | ||
- Vegetable: favorite_vegetable | ||
disabled: True | ||
default: turnips | ||
--- | ||
question: Result of question | ||
subquestion: | | ||
Your favorite fruit is ${ favorite_fruit }. | ||
The `favorite_vegetable` variable | ||
was not defined by the previous | ||
question because the field was | ||
disabled. | ||
mandatory: True |
34 changes: 34 additions & 0 deletions
34
docassemble_base/docassemble/base/data/questions/examples/item-grid-breakpoint.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: Multiple choice items in a grid | ||
short title: Item grid | ||
documentation: "https://docassemble.org/docs/fields.html#item grid" | ||
example start: 2 | ||
example end: 2 | ||
--- | ||
features: | ||
labels above fields: True | ||
--- | ||
question: | | ||
Select your favorite number. | ||
fields: | ||
- Favorite fruit: favorite_number | ||
item grid: | ||
width: 3 | ||
breakpoint: sm | ||
choices: | ||
- 1 | ||
- 2 | ||
- 3 | ||
- 4 | ||
- 5 | ||
- 6 | ||
- 7 | ||
- 8 | ||
- 9 | ||
- 10 | ||
- 11 | ||
- 12 | ||
--- | ||
mandatory: True | ||
question: | | ||
Your favorite number is ${ favorite_number }. |
26 changes: 26 additions & 0 deletions
26
docassemble_base/docassemble/base/data/questions/examples/item-grid.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,26 @@ | ||
metadata: | ||
title: Multiple choice items in a grid | ||
short title: Item grid | ||
documentation: "https://docassemble.org/docs/fields.html#item grid" | ||
example start: 2 | ||
example end: 2 | ||
--- | ||
features: | ||
labels above fields: True | ||
--- | ||
question: | | ||
Select your favorite fruit. | ||
fields: | ||
- Favorite fruit: favorite_fruit | ||
item grid: 6 | ||
choices: | ||
- Apple | ||
- Orange | ||
- Peach | ||
- Pear | ||
- Banana | ||
- Grapes | ||
--- | ||
mandatory: True | ||
question: | | ||
Your favorite fruit is ${ favorite_fruit }. |
41 changes: 41 additions & 0 deletions
41
docassemble_base/docassemble/base/data/questions/examples/json-response-ajax.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,41 @@ | ||
metadata: | ||
title: JSON response | ||
short title: JSON | ||
documentation: "https://docassemble.org/docs/functions.html#json_response" | ||
example start: 1 | ||
example end: 2 | ||
--- | ||
mandatory: True | ||
question: | | ||
Tell me about your shipment. | ||
fields: | ||
- Weight (lbs): weight | ||
datatype: number | ||
- Size: size | ||
choices: | ||
- Small box: 1 | ||
- Medium box: 2 | ||
- Large box: 3 | ||
- html: | | ||
<button id="calcButton" class="btn btn-info float-end" type="button">Calculate</button> | ||
<span id="calcResults"></span> | ||
script: | | ||
<script> | ||
$("#calcButton").on('click', function(){ | ||
var theWeight = parseFloat(val('weight')) | ||
var theSize = parseInt(val('size')) | ||
if (theWeight && theSize){ | ||
action_call('calc', {weight: theWeight, size: theSize}, function(data){ | ||
$("#calcResults").html("That will cost $" + data.cost.toLocaleString('en-US') + "."); | ||
}); | ||
} | ||
}) | ||
</script> | ||
--- | ||
event: calc | ||
code: | | ||
json_response({'cost': 4.44 + action_argument('weight') * 5.2 + action_argument('size') * 13.1}) | ||
--- | ||
mandatory: True | ||
question: | | ||
We will ship that right away. |
19 changes: 19 additions & 0 deletions
19
docassemble_base/docassemble/base/data/questions/examples/under-text.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,19 @@ | ||
metadata: | ||
title: Under text | ||
documentation: "https://docassemble.org/docs/fields.html#under text" | ||
--- | ||
question: | | ||
What are your favorite things to eat? | ||
subquestion: | | ||
Please be specific. | ||
fields: | ||
- Vegetable: target_variable | ||
under text: E.g., eggplant, turnips | ||
- Fruit: other_target_variable | ||
under text: E.g., apples, oranges | ||
--- | ||
question: Result of question | ||
subquestion: | | ||
target_variable is: "${ target_variable }" | ||
mandatory: True | ||
|
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
Oops, something went wrong.