From 4898e37830be0a2bf392f5f480be9b9c775b570f Mon Sep 17 00:00:00 2001 From: Jordan Zimmerman Date: Sun, 21 Mar 2021 07:51:20 -0500 Subject: [PATCH 1/3] Create concord.yml --- concord.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 concord.yml diff --git a/concord.yml b/concord.yml new file mode 100644 index 0000000..09803ad --- /dev/null +++ b/concord.yml @@ -0,0 +1,3 @@ +flows: + default: + - log: "Hello Concord User" From 9d9ab70b572164fa647932ce135ea7ce2b67fcdd Mon Sep 17 00:00:00 2001 From: Jordan Zimmerman Date: Sun, 21 Mar 2021 07:57:28 -0500 Subject: [PATCH 2/3] Update concord.yml --- concord.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/concord.yml b/concord.yml index 09803ad..82df5cb 100644 --- a/concord.yml +++ b/concord.yml @@ -1,3 +1,16 @@ +forms: + myForm: + - fullName: { label: "Name", type: "string", pattern: ".* .*", readonly: true, placeholder: "Place name here" } + - age: { label: "Age", type: "int", min: 21, max: 100 } + - favouriteColour: { label: "Favourite colour", type: "string", allow: ["gray", "grey"], search: true } + - languages: { label: "Preferred languages", type: "string+", allow: "${locale.languages()}" } + - password: { label: "Password", type: "string", inputType: "password" } + - rememberMe: { label: "Remember me", type: "boolean" } + - photo: { label: "Photo", type: "file" } + - email: { label: "Email", type: "string", inputType: "email" } + flows: default: - log: "Hello Concord User" + - form: myForm + saveSubmittedBy: true From ad5dd63517f7555f43bb1edc27b42a10ee7be305 Mon Sep 17 00:00:00 2001 From: Jordan Zimmerman Date: Sun, 21 Mar 2021 07:59:28 -0500 Subject: [PATCH 3/3] Update concord.yml --- concord.yml | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/concord.yml b/concord.yml index 82df5cb..48234b0 100644 --- a/concord.yml +++ b/concord.yml @@ -1,16 +1,37 @@ -forms: - myForm: - - fullName: { label: "Name", type: "string", pattern: ".* .*", readonly: true, placeholder: "Place name here" } - - age: { label: "Age", type: "int", min: 21, max: 100 } - - favouriteColour: { label: "Favourite colour", type: "string", allow: ["gray", "grey"], search: true } - - languages: { label: "Preferred languages", type: "string+", allow: "${locale.languages()}" } - - password: { label: "Password", type: "string", inputType: "password" } - - rememberMe: { label: "Remember me", type: "boolean" } - - photo: { label: "Photo", type: "file" } - - email: { label: "Email", type: "string", inputType: "email" } +configuration: + arguments: + myForm: + lastName: Smith flows: default: - - log: "Hello Concord User" - form: myForm - saveSubmittedBy: true + # form calls can override form values or provide additional data + values: + lastName: "Appleseed" + sum: "${1 + 2}" + address: + city: Toronto + province: Ontario + country: Canada + + - log: "Hello, ${myForm.firstName} ${myForm.lastName}" + - log: "We got your file and stored it as ${myForm.aFile}" + - log: "You have following skills" + - task: log + in: + msg: "Skill -> ${item}" + withItems: ${myForm.skills} + - if: ${myForm.tosAgree} + then: + - log: "${myForm.firstName} says: I have agreed to the Terms and Conditions" + +forms: + myForm: + - firstName: { label: "First name", type: "string", value: "John" } + - lastName: { label: "Last name", type: "string" } + - age: { label: "Age", type: "int", min: 21, max: 999 } + - color: { label: "Favorite color", type: "string", allow: ["red", "green", "blue"] } + - aFile: { label: "A file", type: "file?" } + - tosAgree: { label: "Terms and conditions read", type: "boolean", value: true } + - skills: { label: "Skills", type: "string*", allow: ["css", "design", "angular"]}