Skip to content

Commit

Permalink
unrequired met_people questions
Browse files Browse the repository at this point in the history
  • Loading branch information
noamoss committed May 17, 2020
1 parent 33e5c13 commit 43c1b67
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions scripts/script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -985,36 +985,30 @@
- say: "הרבה אנשים נפגשים עכשיו, בעבודה ובמקומות אחרים -"
- say: "האם ביממה האחרונה שהית בקרבת אנשים (<b>שאינם בני הבית</b>) למשך יותר מ-15 דקות ובמרחק של פחות מ-2 מטרים"
- wait:
variable: public_place
options:
- show: כן, שהיתי בקרבת אנשים נוספים יותר מרבע שעה
steps:
- say: האם זה היה במקום ציבורי גדול?
- say: ... למשל, מקום עבודה, בית ספר או מרכז מסחרי?
- wait:
options:
- show: כן
value: true
- show: לא
value: false
steps:
- say: וכמה מהאנשים האלה, פחות או יותר, היו מבוגרים מעל גיל 18
- wait:
variable: _met_above_18
placeholder: מספר המבוגרים, 0-99
validation: "[0-9]+"
input-kind: number
input-min: 0
input-max: 99
- say: וכמה ילדים מתחת לגיל 18?
- wait:
variable: _met_under_18
placeholder: מספר הילדים, 0-99
validation: "[0-9]+"
input-kind: number
input-min: 0
input-max: 99
- show: לא, רק עם בני הבית
- show: לא
value: false

This comment has been minimized.

Copy link
@akariv

akariv May 25, 2020

Member

Maybe add here a 'לא יודע בדיוק עם כמה נפגשתי' option
instead of the 'leave empty' placeholders which are less intuitive

This comment has been minimized.

Copy link
@noamoss

noamoss May 25, 2020

Author Contributor

I am afraid WSI won't like this offer - but it is ok to try to offer it on our meeting on Wed.

- show: כן
value: true

This comment has been minimized.

Copy link
@akariv

akariv May 25, 2020

Member

no need to define values for options if you're not saving the result into a variable.

steps:
- say: וכמה מהם היו מבוגרים מעל גיל 18?
- wait:
variable: _met_above_18
placeholder: מספר המבוגרים, 0-99, אם לא ידוע ניתן להשאיר ריק
required: false
validation: "[0-9]+"
input-kind: number
input-min: 0
input-max: 99
- say: וכמה ילדים מתחת לגיל 18?
- wait:
variable: _met_under_18
placeholder: מספר הילדים, 0-99, אם לא ידוע ניתן להשאיר ריק
required: false
validation: "[0-9]+"
input-kind: number
input-min: 0
input-max: 99

- do:
cmd: calculate_met_daily
Expand Down

0 comments on commit 43c1b67

Please sign in to comment.