-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathdocx-table-columns.yml
More file actions
65 lines (64 loc) · 1.43 KB
/
docx-table-columns.yml
File metadata and controls
65 lines (64 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
metadata:
title: Looping over columns in .docx
short title: Columns
documentation: "https://docassemble.org/docs/documents.html#docx template file"
example start: 7
example end: 7
---
objects:
- grantor: Individual
- grantee: Individual
---
generic object: Individual
objects:
- x.income: DADict
---
question: |
Looping over the columns of a table
subquestion: |
This interview will fill fields in
a .docx template. You can
[download the template] to see what
it looks like.
[download the template]: ${ url_of('docx-table-columns.docx') }
field: introduction_shown
---
generic object: Individual
question: |
What is the name of the ${ x.object_name() }?
fields:
- First name: x.name.first
- Last name: x.name.last
---
question: |
Which income types do ${ grantor } or ${ grantee } receive?
fields:
- Types of income: income_types
datatype: checkboxes
choices:
- Retirement
- Employment
- Self-employment
- Benefits
none of the above: False
minlength: 1
---
code: |
inc_types = income_types.true_values()
---
generic object: Individual
question: |
How much does ${ x } receive from ${ i }?
fields:
- Income: x.income[i]
datatype: currency
---
mandatory: True
need: introduction_shown
question: |
Here is a summary of the income of the
grantor and grantee.
attachment:
- name: Income summary
filename: income_summary
docx template file: docx-table-columns.docx