-
Notifications
You must be signed in to change notification settings - Fork 5
/
ql_baseline.yml
2467 lines (2408 loc) · 69.9 KB
/
ql_baseline.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###############################################
# This file holds the default questions for various object
# types. Things like how to ask for a person's name
---
include:
- al_terms_of_use.yml
---
objects:
- interview_metadata: DADict.using(object_type=DADict.using(auto_gather=False, gathered=True), auto_gather=False, gathered=True)
- users: ALPeopleList.using(there_are_any=True)
- children: ALPeopleList.using(ask_number=True)
- plaintiff: ALIndividual
- other_parties: ALPeopleList
- witnesses: ALPeopleList.using(ask_number=True)
- docket_numbers: DAList
- case_numbers: DAList
- caregivers: ALPeopleList
- guardians_ad_litem: ALPeopleList
- attorneys: ALPeopleList
- translators: ALPeopleList
- debt_collectors: ALPeopleList
- creditors: ALPeopleList
- spouses: ALPeopleList
- parents: ALPeopleList
- decedents: ALPeopleList.using(ask_number=True, target_number=1)
- interested_parties: ALPeopleList
- guardians: ALPeopleList
- adoptees: ALPeopleList
- allowed_courts: DAEmpty
# Support old interviews that use `courts`
- courts: DAList.using(auto_gather=False, target_number=1, gathered=True)
- trial_court_address: Address
- appeals_court_address: Address
---
generic object: ALIndividual
objects:
- x.service_address: ALAddress
---
id: basic questions intro screen
question: |
${interview_short_title}: ${ AL_ORGANIZATION_TITLE}
subquestion: |
% if form_approved_for_email_filing:
${ AL_ORGANIZATION_TITLE } can help you complete and file court forms in 3 steps:
% else:
${ AL_ORGANIZATION_TITLE } can help you complete and download forms in 3 steps:
% endif
Step 1. Answer questions that will fill in your form for you.<br>
Step 2. Preview the completed form.<br>
% if form_approved_for_email_filing:
Step 3. Email the form to the court using this secure website and save copies
for yourself for later reference.
% elif al_form_type in ['starts_case','existing_case','appeal']:
Step 3. Download and print the final form. You will need to deliver it
to the court on your own.
% else:
Step 3. Download and print the final form. You will need to deliver it
on your own.
% endif
This site is not a lawyer. If you would like a lawyer, find [your local
legal aid provider](https://www.lsc.gov/what-legal-aid/find-legal-aid).
Tap the {green words} in any screen for a definition or more information.
% if chat_partners_available().help:
Live help is currently available in this interview. Click the speech bubble
(:comment-alt:) in the navigation bar to connect to a live advocate for help.
% endif
fields:
- note: |
${ display_template(al_terms_of_use, scrollable=True) }
To continue, you must accept our terms of use
- I accept the terms of use: acknowledged_information_use
datatype: yesnowide
grid: 8
continue button field: al_intro_screen
terms:
green words: |
Green words are legal terms or a short way of referring to something that needs more explanation. The definition or explanation pops up when you tap the green words.
validation code: |
if not acknowledged_information_use:
validation_error("You must accept the terms of use to continue.", field="acknowledged_information_use")
---
##### Backwards compatibility #####
code: |
al_intro_screen
basic_questions_intro_screen = True
---
id: is the user the plaintiff or defendant?
comment: |
This question is asked if the interview can be used by both
a Plaintiff and a Defendant.
Directly set the value of user_started_case if you know which role the user
plays in the litigation.
This question doesn't make sense if it's not a court case.
question: |
% if al_form_type in ['starts_case','existing_case']:
Did you start this case, or are you responding to a case
that someone else started?
% elif al_form_type == 'appeal':
Did you start the case in the trial court, or did you respond
to a case that someone else started?
% else:
Did you file the first form in this dispute, or did you respond
to a form that someone else filed first?
% endif
subquestion: |
${ collapse_template(help_user_ask_role_template) }
fields:
- no label: user_ask_role
datatype: radio
choices:
- Starting a new case: plaintiff
- Responding to a case: defendant
- note: |
Okay, you are the **Plaintiff** or Petitioner in this case. The other
side is the **Defendant** or Respondent.
show if:
variable: user_ask_role
is: "plaintiff"
- note: |
Okay, you are the **Defendant** or Respondent in this case. The other
side is the **Plaintiff** or Petitioner.
show if:
variable: user_ask_role
is: "defendant"
---
template: help_user_ask_role_template
subject: |
How do I know?
content: |
If you are the first person to file a form in the case, you
started the case. You are the "Plaintiff" or the "Petitioner."
If you are responding to a case or court papers someone else filed, you
are the "Defendant" or the "Respondent."
---
depends on:
- user_started_case
code: |
if user_started_case:
plaintiffs = users
petitioners = users
defendants = other_parties
respondents = other_parties
else:
defendants = users
respondents = users
plaintiffs = other_parties
petitioners = other_parties
---
depends on:
- user_ask_role
code: |
# If the interview author didn't specify and it's a "court" or "other" case, we just ask
user_started_case = user_ask_role == 'plaintiff'
---
id: what is the user's detailed role in this case?
comment: |
This provides a placeholder question to request the user's specific role
for very general forms, such as motions, where the parties can be either
defendants or respondents.
question: |
% if al_form_type in ['starts_case','existing_case']:
Did you start this case, or are you responding to a case
that someone else started?
% elif al_form_type == 'appeal':
Did you start the case in the trial court, or did you respond
to a case that someone else started?
% else:
Did you file the first form in this dispute, or did you respond
to a form that someone else filed first?
% endif
subquestion: |
${ collapse_template(help_user_ask_role_template) }
fields:
- no label: user_detailed_role_started_case
datatype: radio
choices:
- I started this case: started
- I responded to this case: responded
- Are you the **petitioner** or **plaintiff**?: user_detailed_role
datatype: radio
choices:
- Petitioner: petitioner
- Plaintiff: plaintiff
- I don't know: unknown
show if:
variable: user_detailed_role_started_case
is: "started"
- Are you the **respondent** or **defendant**?: user_detailed_role
datatype: radio
choices:
- Respondent: respondent
- Defendant: defendant
- I don't know: unknown
show if:
variable: user_detailed_role_started_case
is: "responded"
---
code: |
# This will be considered after any code in the parent interview
# Most likely, user_started_case should be True for form types "other" and "out_of_court" but
# we will let form author decide
if al_form_type in ['letter', 'starts_case']:
user_started_case = True
---
id: is there an opposing party?
question: |
% if al_form_type in ['starts_case','existing_case','appeal'] and user_started_case:
Is there a **defendant** or respondent in this case?
% elif al_form_type in ['starts_case','existing_case','appeal']:
Is there a **plaintiff** or petitioner in this case?
% else:
Is there someone on the other side of your dispute?
% endif
subquestion: |
% if al_form_type in ['starts_case','existing_case','appeal'] and user_started_case:
Answer yes if there is a person or organization you are suing or taking to court.
% elif al_form_type in ['starts_case','existing_case','appeal']:
You should be able to find out from the paperwork that told you to
go to court.
Answer yes if someone else has sued you or is bringing you to court.
% endif
fields:
- no label: other_parties.there_are_any
datatype: yesnoradio
---
code: |
# If the form is a letter, it _always_ is addressed to someone.
if al_form_type == 'letter':
other_parties.there_are_any = True
---
#######################################################
# These small templates are used as labels for prompts.
# This helps us keep questions consistent and translated just once
---
generic object: ALIndividual
template: x.name_title_label
content: |
Title (optional)
---
generic object: ALIndividual
template: x.first_name_label
content: |
First name
---
generic object: ALIndividual
template: x.middle_name_label
content: |
Middle name
---
generic object: ALIndividual
template: x.last_name_label
content: |
Last name
---
generic object: ALIndividual
template: x.suffix_label
content: |
Suffix
---
generic object: ALIndividual
template: x.person_type_label
content: |
Is this a person, or a business?
---
generic object: ALIndividual
template: x.business_name_label
content: |
Name of business or organization
---
generic object: ALIndividual
template: x.individual_choice_label
content: |
Person
---
generic object: ALIndividual
template: x.business_choice_label
content: |
Business or organization
---
generic object: ALAddress
template: x.address_label
content: |
Street address
---
generic object: ALAddress
template: x.unit_label
content: |
Apartment
---
generic object: ALAddress
template: x.city_label
content: |
City
---
generic object: ALIndividual
template: x.gender_label
content: |
Gender
---
generic object: ALIndividual
template: x.gender_female_label
content: |
Female
---
generic object: ALIndividual
template: x.gender_male_label
content: |
Male
---
# Arbitrarily selected most common hyphenation as of April 2021.
# Note that this usage is still evolving.
# https://nonbinary.wiki/wiki/Nonbinary_Wiki:Style_guide#Nonbinary,_non-binary,_or_non_binary?
generic object: ALIndividual
template: x.gender_nonbinary_label
content: |
Nonbinary
---
generic object: ALIndividual
template: x.gender_prefer_not_to_say_label
content: |
Prefer not to say
---
generic object: ALIndividual
template: x.gender_prefer_self_described_label
content: |
Prefer to write something else
---
generic object: ALIndividual
template: x.gender_self_described_label
content: |
Self-described gender
---
generic object: ALIndividual
template: x.gender_unknown_label
content: |
Unknown
---
generic object: ALIndividual
template: x.gender_help_text
content: |
Some forms require you to select either "Male" or "Female". If you do not select
"Male" or "Female", your form may include an empty checkbox.
---
generic object: ALAddress
template: x.state_label
# See https://docassemble.org/docs/functions.html#subdivision_type
content: |
% if safe_subdivision_type(AL_DEFAULT_COUNTRY):
${ safe_subdivision_type(AL_DEFAULT_COUNTRY) }
% else:
State
% endif
---
generic object: ALAddress
template: x.state_or_province_label
content: |
State / Province
---
generic object: ALAddress
template: x.zip_label
content: |
Zip or postal code
---
generic object: ALAddress
template: x.postal_code_label
content: |
Postal code
---
generic object: ALAddress
template: x.country_label
content: |
Country
---
generic object: ALAddress
template: x.impounded_label
content: |
This address is impounded
---
generic object: ALAddress
template: x.impounded_output_label
content: |
**IMPOUNDED**
---
generic object: ALIndividual
template: x.impounded_phone_output_label
content: |
**IMPOUNDED**
---
generic object: ALAddress
template: x.county_label
content: |
County
# Note: Louisiana uses Parish while Alaska uses Borough. Handle by overriding this template
---
id: any other users
question: |
% if al_form_type in ['starts_case','existing_case','appeal']:
Is anyone else on your side of this case?
% else:
Is anyone else adding their name to this form with you?
% endif
subquestion: |
% if len(users.elements) > 1:
So far you have told us about ${comma_and_list(users.complete_elements())}.
% endif
fields:
- no label: users.there_is_another
datatype: yesnoradio
---
sets:
- users[i].name.first
- users[i].name.last
- users[i].name.middle
- users[i].name.suffix
id: other users names
question: |
% if i == 0 and al_person_answering == "user":
What is your name?
% else:
% if al_form_type in ['starts_case','existing_case','appeal']:
Who is the ${ ordinal(i) } person on your side of the case?
% else:
What is the name of the ${ ordinal_number(i) } person who is adding their name to
this form with you?
% endif
% endif
fields:
- code: |
users[i].name_fields()
---
id: birthdate question
generic object: ALIndividual
question: |
When was ${x} born?
fields:
- Birthdate: x.birthdate
datatype: BirthDate
---
id: user i's address
question: |
% if i == 0 and al_person_answering == "user":
What is your address?
% else:
What is ${ users[i] }'s address?
% endif
fields:
- label: |
% if i > 0 and al_person_answering == "user":
Same as your address
% else:
Same as ${ users[0] }'s address
% endif
field: users[i].address
datatype: object_radio
choices:
- users[0].address if defined("users[0].address.address") else None
object labeler: |
lambda y: y.on_one_line()
none of the above: |
Somewhere else
disable others: True
show if:
code: |
i > 0 and defined("users[0].address.address")
- ${ users[i].address.address_label}: users[i].address.address
address autocomplete: True
- ${ users[i].address.unit_label}: users[i].address.unit
required: False
- ${ users[i].address.city_label}: users[i].address.city
- ${ users[i].address.state_label}: users[i].address.state
code: |
states_list(country_code=AL_DEFAULT_COUNTRY)
default: ${ AL_DEFAULT_STATE }
- ${ users[i].address.zip_label}: users[i].address.zip
required: False
# - ${ users[i].address.country_label}: users[i].address.country
# code: countries_list()
# default: ${ AL_DEFAULT_COUNTRY }
---
generic object: ALIndividual
id: any mailing address
question: |
What is ${ x }'s mailing address?
fields:
- ${ x }'s mailing address is: x.mailing_address
datatype: object_radio
choices:
- x.address
object labeler: |
lambda y: y.on_one_line()
none of the above: |
Somewhere else
disable others: True
- ${ x.address.address_label }: x.mailing_address.address
address autocomplete: True
- ${ x.address.unit_label }: x.mailing_address.unit
required: False
- ${ x.address.city_label }: x.mailing_address.city
- ${ x.address.state_label }: x.mailing_address.state
code: |
states_list(country_code=AL_DEFAULT_COUNTRY)
default: ${ AL_DEFAULT_STATE }
- ${ x.address.zip_label }: x.mailing_address.zip
required: False
- ${ x.address.country_label }: x.mailing_address.country
code: countries_list()
default: ${ AL_DEFAULT_COUNTRY }
---
generic object: ALIndividual
id: any service address
question: |
At what address will you serve ${ x }?
fields:
- ${ x }'s service address is: x.service_address
datatype: object_radio
choices:
- x.address if defined(x.address.attr_name("address")) else None
- x.mailing_address if defined(x.mailing_address.attr_name("address")) else None
object labeler: |
lambda y: y.on_one_line()
none of the above: |
Somewhere else
disable others: True
- ${ x.service_address.address_label }: x.service_address.address
address autocomplete: True
- ${ x.service_address.unit_label }: x.service_address.unit
required: False
- ${ x.service_address.city_label }: x.service_address.city
- ${ x.service_address.state_label }: x.service_address.state
code: |
states_list(country_code=AL_DEFAULT_COUNTRY)
default: ${ AL_DEFAULT_STATE }
- ${ x.service_address.zip_label }: x.service_address.zip
required: False
- ${ x.service_address.country_label }: x.service_address.country
code: countries_list()
default: ${ AL_DEFAULT_COUNTRY }
---
generic object: ALIndividual
id: service method
question: |
How will you get a copy of the documents to ${ x }?
fields:
- I will serve ${ x } by: x.service_method
input type: radio
code: al_service_methods
---
comment: |
You can customize this block, and also add a translation for it with a language modifier,
demonstrated below
variable name: al_service_methods
use objects: True
data:
e-filing system:
question: E-filing system
document: e-filing system
mail:
question: Mail
document: mail
hand:
question: Hand delivery
document: hand delivery
email:
question: Email
document: email
---
language: es
variable name: al_service_methods
use objects: True
data:
e-filing system:
question: Presentación electrónica (e-filing)
document: presentación electrónica (e-filing)
mail:
question: Correo
document: correo
hand:
question: Entrega en mano
document: entrega en mano
email:
question: Correo electrónico (email)
document: correo electrónico (email)
---
id: your contact information
question: |
What is your contact information?
subquestion: |
Include at least **one** way to reach you other than by mail.
${ collapse_template(why_contact_info_needed_template) }
fields:
- Mobile number: users[0].mobile_number
required: False
- Other phone number: users[0].phone_number
required: False
- Email address: users[0].email
datatype: email
required: False
- Other ways to reach you: users[0].other_contact_method
input type: area
required: False
help: |
If you do not have a phone number or email, provide
specific contact instructions. For example, use a friend's phone number.
But the friend must be someone you can rely on to give you a
message.
validation code: |
if (not showifdef('users[0].phone_number') and \
(not showifdef('users[0].mobile_number')) and \
(not showifdef('users[0].email')) and \
(not showifdef('users[0].other_contact_method'))):
validation_error(word("You need to provide at least one contact method."), field="users[0].other_contact_method")
---
template: why_contact_info_needed_template
subject: |
Why do I need to give my contact information?
content: |
% if al_form_type in ['starts_case','existing_case','appeal']:
The court **must** be able to reach you. So you have to give them some way to do this.
Some forms allow you to tell the court you need to keep your address, phone,
and email confidential, so that only court staff can see this information.
% else:
It is important that the person or organization you deliver this form to
is able to contact you. Make sure to include at least one way to reach you
other than mail.
% endif
---
id: docket number
question: |
What is the case number used to track this case in court?
fields:
- I don't know the case number: dont_know_docket_number
datatype: yesno
- Case number: docket_number
hide if: dont_know_docket_number
validation code: |
# This should be safe too
if dont_know_docket_number:
docket_number = ''
---
question: |
Do you have a case number used to track this case in court?
fields:
- I have a case number: docket_numbers.there_are_any
datatype: yesnoradio
---
id: docket numbers
question: |
Case number
subquestion: |
If there are multiple case numbers on this form, you can tap "${word("Add another")}"
to add more than one.
list collect: True
fields:
- Case number: docket_numbers[i]
required: False
---
id: case number
question: |
What is the case number used to track this case in court?
fields:
- I don't know the case number: dont_know_case_number
datatype: yesno
- Case number: case_number
hide if: dont_know_case_number
validation code: |
# This should be safe too
if dont_know_case_number:
case_number = ''
---
question: |
Do you have a case number used to track this case in court?
fields:
- I have a case number: case_numbers.there_are_any
datatype: yesnoradio
---
id: case numbers
question: |
Case number
subquestion: |
If there are multiple case numbers on this form, you can tap "${word("Add another")}"
to add more than one.
list collect: True
fields:
- Case number: case_numbers[i]
required: False
---
id: who will be on this form
generic object: ALPeopleList
question: |
Will this form include any ${noun_plural(x.object_name())}?
fields:
- no label: x.there_are_any
datatype: yesnoradio
---
id: any witnesses
question: |
Do you need to list a witness for this form?
fields:
- no label: witnesses.there_are_any
datatype: yesnoradio
---
#id: witness name
#question: |
# Name of ${ ordinal(i) } witness
---
id: another witness
question: |
Do you need to add another witness?
fields:
- no label: witnesses.there_is_another
datatype: yesnoradio
---
id: name of ALIndividual
sets:
- x.name.first
- x.name.last
- x.name.middle
- x.name.suffix
generic object: ALIndividual
question: |
What is ${x.object_possessive('name')}?
fields:
- code: |
x.name_fields()
---
id: name of decedent
question: |
What is the name of the person who died?
fields:
- code: |
decedents[0].name_fields()
---
id: how many children
comment: |
This question is not likely to be used as-is, because the user
is likely to need to know which children to list on the form.
That will be very context-specific.
question: |
% if al_form_type in ['starts_case','existing_case','appeal']:
Are any children involved in this case?
% else:
Are any children involved in this matter?
% endif
fields:
- no label: children.there_are_any
datatype: yesnoradio
- How many?: children.target_number
datatype: integer
show if: children.there_are_any
validation code: |
if not children.there_are_any:
children.target_number = 0
---
# Customize this question if you know whose children they are in your interview!
# this is just a very generic way to ask.
id: children names without birthdate
sets:
- children[i].name.first
- children[i].name.last
- children[i].name.middle
- children[i].name.suffix
question: |
% if hasattr(children, 'ask_number') and children.ask_number and children.target_number == 1 and i == 0:
Child's name
% else:
Name of ${ ordinal(i) } child
% endif
fields:
- code: |
children[i].name_fields()
---
id: how many witnesses
question: |
Do you have any witnesses?
fields:
- no label: witnesses.there_are_any
datatype: yesnoradio
- no label: witnesses.target_number
datatype: integer
show if: witnesses.there_are_any
validation code: |
if not witnesses.there_are_any:
witnesses.target_number = 0
---
sets:
- witnesses[i].name.first
- witnesses[i].name.last
- witnesses[i].name.middle
- witnesses[i].name.suffix
id: names of witnesses
question: |
% if hasattr(witnesses, 'ask_number') and witnesses.ask_number and witnesses.target_number == 1:
Witness name
% else:
Name of the ${ ordinal(i) } witness
% endif
fields:
- code: |
witnesses[i].name_fields()
---
generic object: ALPeopleList
id: any other people
question: |
Do you have any other ${ noun_plural(x.object_name()) } to tell us about?
fields:
- no label: x.there_is_another
datatype: yesnoradio
---
id: names of people
sets:
- x[i].name.first
- x[i].name.last
- x[i].name.middle
- x[i].name.suffix
generic object: ALPeopleList
question: |
% if hasattr(x, 'ask_number') and x.ask_number and x.target_number == 1:
Name of ${ noun_plural(x.object_name(),1) }
% else:
Name of the ${ ordinal(i) } ${ noun_plural(x.object_name(), 1) }
% endif
fields:
- code: |
x[i].name_fields()
---
id: people list revisit
generic object: ALPeopleList
question: |
Edit your answers about the ${noun_plural(x.object_name())}?
subquestion: |
${ x.table }
${ x.add_action() }
continue button field: x.revisit
---
id: users revisit
question: |
% if al_person_answering == "user":
Edit your answers about people on your side of the case
% else:
Edit your answers about people on ${ users }'s side of the case
% endif
subquestion: |
${ users.table }
${ users.add_action() }
continue button field: users.revisit
---
id: other parties revisit
question: |
Edit your answers about people on the other side of your case
subquestion: |
${ other_parties.table }
${ other_parties.add_action() }
continue button field: other_parties.revisit
---
generic object: ALPeopleList
table: x.table
rows: x
columns:
- Name: |
row_item.name if defined('row_item.name.first') else ''
- Address: |
row_item.address if defined('row_item.address.address') else ''
- Phone number: |
row_item.phone_number if defined('row_item.phone_number') else ''
edit:
- name.first
- address.address
- phone_number
---
id: any other opposing parties
question: |
% if user_started_case:
Is there any other **defendant** or respondent in this
matter?
% else:
Is there any other **plaintiff** or petitioner in this matter?
% endif
fields:
- no label: other_parties.there_is_another
datatype: yesnoradio
---
sets:
- other_parties[i].name.first
- other_parties[i].name.last
- other_parties[i].name.middle
- other_parties[i].name.suffix
id: names of opposing parties
question: |
% if user_started_case:
Name of ${ ordinal(i) } **defendant** or respondent in this
matter
% else:
Name of ${ ordinal(i) } **plaintiff** or petitioner in this matter
% endif
fields:
- code: |
other_parties[i].name_fields(person_or_business='unsure')
---
id: generic address
generic object: ALAddress
sets:
- x.address
- x.city
- x.zip
- x.unit
- x.state
- x.country
question: |
What is the ${ x.object_name() }?
fields:
- code: |
x.address_fields(country_code=AL_DEFAULT_COUNTRY, default_state=AL_DEFAULT_STATE)
comment: |
This is left as just object_name() rather than "address of object_name()" because
commonly the word "address" would be included in the variable name.
You should generally consider overriding this question with one that will be easier
to read. This is here just as a placeholder. It will be difficult to translate and
the variable name will not always make sense to show the user even with the help
of object_name().
---
# TODO: consider removing default state
# BUT: could be helpful to model how to set a default state
sets:
- x.address.address
- x.address.city
- x.address.zip
- x.address.unit
- x.address.state
- x.address.country
id: persons address
generic object: ALIndividual
question: |
What is ${ x.possessive('address') }?
fields:
- code: |
x.address_fields(country_code=AL_DEFAULT_COUNTRY, default_state=AL_DEFAULT_STATE)
---
generic object: ALIndividual
id: x has other addresses
question: |
Does ${ x } live at more than one address?
fields:
- ${ x } lives at more than one address: x.other_addresses.there_are_any
datatype: yesnoradio
---
generic object: ALIndividual
sets:
- x.other_addresses[i].address
- x.other_addresses[i].city
id: other address where x lives
question: |
Tell us about the ${ordinal(i)} other address where ${ x } lives
subquestion: |
You already told us about ${x.address.on_one_line()}
% if len(x.other_addresses.complete_elements()):
as well as ${x.other_addresses.complete_elements()}
% endif
fields:
- code: |
x.other_addresses[i].address_fields(default_state=AL_DEFAULT_STATE)
---
generic object: ALIndividual
id: x has another other address
question: |
Does ${ x } have any other address where they currently live to tell us about?
subquestion: |
You already told us about ${ x.address.on_one_line() }
% if len(x.other_addresses.complete_elements()):
as well as ${x.other_addresses.complete_elements()}
% endif
fields:
- Does ${ x } have another address?: x.other_addresses.there_is_another
datatype: yesnoradio
---
generic object: ALIndividual
id: x has previous addresses
question: |
Does ${ x } have any previous addresses?
fields:
- ${ x } has a previous address to list: x.previous_addresses.there_are_any
datatype: yesnoradio
---
generic object: ALIndividual
sets: