summaryrefslogtreecommitdiff
path: root/templates/form/fields
diff options
context:
space:
mode:
Diffstat (limited to 'templates/form/fields')
-rw-r--r--templates/form/fields/_fields.toml6
-rw-r--r--templates/form/fields/email.toml8
-rw-r--r--templates/form/fields/name.toml7
3 files changed, 21 insertions, 0 deletions
diff --git a/templates/form/fields/_fields.toml b/templates/form/fields/_fields.toml
new file mode 100644
index 0000000..2be25cc
--- /dev/null
+++ b/templates/form/fields/_fields.toml
@@ -0,0 +1,6 @@
+[field.name]
+file = "name.toml"
+
+[field.email]
+file = "email.toml"
+
diff --git a/templates/form/fields/email.toml b/templates/form/fields/email.toml
new file mode 100644
index 0000000..9e2626a
--- /dev/null
+++ b/templates/form/fields/email.toml
@@ -0,0 +1,8 @@
+type = "email"
+name = "email"
+placeholder = "E-Mail"
+
+attributes = {
+ "data-email" = "test@example.org"
+}
+
diff --git a/templates/form/fields/name.toml b/templates/form/fields/name.toml
new file mode 100644
index 0000000..5f45d87
--- /dev/null
+++ b/templates/form/fields/name.toml
@@ -0,0 +1,7 @@
+type = "text"
+name = "name"
+
+attributes = {
+ "data-value" = 123,
+}
+