From 43ec8517cbc42093ad1f17063495f79e6eddf1cf Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 5 Jan 2022 17:05:10 +0100 Subject: Build pages with file fields --- templates/form-paged/fields/_fields.toml | 13 +++++++++++++ templates/form-paged/fields/email.toml | 7 +++++++ templates/form-paged/fields/name.toml | 6 ++++++ templates/form-paged/fields/second.toml | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 templates/form-paged/fields/_fields.toml create mode 100644 templates/form-paged/fields/email.toml create mode 100644 templates/form-paged/fields/name.toml create mode 100644 templates/form-paged/fields/second.toml (limited to 'templates/form-paged') diff --git a/templates/form-paged/fields/_fields.toml b/templates/form-paged/fields/_fields.toml new file mode 100644 index 0000000..c0bfc7f --- /dev/null +++ b/templates/form-paged/fields/_fields.toml @@ -0,0 +1,13 @@ +[page.one.field.name] +file = "name.toml" + +[page.one.field.email] +file = "email.toml" +required = true + +[page.second] +file = "second.toml" + +[page.second.field.date] +required = true + diff --git a/templates/form-paged/fields/email.toml b/templates/form-paged/fields/email.toml new file mode 100644 index 0000000..3ef14e8 --- /dev/null +++ b/templates/form-paged/fields/email.toml @@ -0,0 +1,7 @@ +type = "email" +name = "email" +placeholder = "E-Mail" + +[attributes] +data-email = "test@example.org" + diff --git a/templates/form-paged/fields/name.toml b/templates/form-paged/fields/name.toml new file mode 100644 index 0000000..5c888b6 --- /dev/null +++ b/templates/form-paged/fields/name.toml @@ -0,0 +1,6 @@ +type = "text" +name = "name" + +[attributes] +data-value = 123 + diff --git a/templates/form-paged/fields/second.toml b/templates/form-paged/fields/second.toml new file mode 100644 index 0000000..bbc6ea7 --- /dev/null +++ b/templates/form-paged/fields/second.toml @@ -0,0 +1,3 @@ +[field.text] +placeholder = "Text placeholder" + -- cgit v1.2.3