summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-10-23 11:59:40 +0200
committerDaniel Weipert <code@drogueronin.de>2022-10-23 11:59:40 +0200
commit61a6af60577280a5914b07d48ee348a797c5b512 (patch)
treec8558466a04145109a016551e006beb3d74b55fd
parent1334236bb6059b2302a760196ce7885df379e984 (diff)
Remove templates
-rw-r--r--templates/config/config.toml14
-rw-r--r--templates/config/templates/email/email.html2
-rw-r--r--templates/config/templates/field-input.html9
-rw-r--r--templates/config/templates/form.html8
-rw-r--r--templates/form-paged/fields/_fields.toml13
-rw-r--r--templates/form-paged/fields/email.toml7
-rw-r--r--templates/form-paged/fields/name.toml6
-rw-r--r--templates/form-paged/fields/second.toml17
-rw-r--r--templates/form/fields/_fields.toml6
-rw-r--r--templates/form/fields/email.toml7
-rw-r--r--templates/form/fields/name.toml6
11 files changed, 0 insertions, 95 deletions
diff --git a/templates/config/config.toml b/templates/config/config.toml
deleted file mode 100644
index 8f9a76f..0000000
--- a/templates/config/config.toml
+++ /dev/null
@@ -1,14 +0,0 @@
-[app]
-title = "Flat-File Forms"
-
-[email]
-host = "localhost"
-user = "root"
-password = 123456
-
-[api]
-keys = []
-
-[api.cors]
-origins = []
-
diff --git a/templates/config/templates/email/email.html b/templates/config/templates/email/email.html
deleted file mode 100644
index 3c706b1..0000000
--- a/templates/config/templates/email/email.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<h1>Hello this is E-Mail!</h1>
-
diff --git a/templates/config/templates/field-input.html b/templates/config/templates/field-input.html
deleted file mode 100644
index 407bde0..0000000
--- a/templates/config/templates/field-input.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<input
- type="{{ field.type }}"
- name="{{ field.name }}"
- placeholder="{{ field.placeholder }}"
- {% for key, value in field.attributes %}
- {{ key }}="{{ value }}"
- {% endfor %}
->
-
diff --git a/templates/config/templates/form.html b/templates/config/templates/form.html
deleted file mode 100644
index b880ee4..0000000
--- a/templates/config/templates/form.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<form action="{{ form.action }}" method="POST">
- {{ csrf() }}
-
- {% for field in fields %}
- {{ field.render() }}
- {% endfor %}
-</form>
-
diff --git a/templates/form-paged/fields/_fields.toml b/templates/form-paged/fields/_fields.toml
deleted file mode 100644
index c0bfc7f..0000000
--- a/templates/form-paged/fields/_fields.toml
+++ /dev/null
@@ -1,13 +0,0 @@
-[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
deleted file mode 100644
index 3ef14e8..0000000
--- a/templates/form-paged/fields/email.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-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
deleted file mode 100644
index 5c888b6..0000000
--- a/templates/form-paged/fields/name.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-type = "text"
-name = "name"
-
-[attributes]
-data-value = 123
-
diff --git a/templates/form-paged/fields/second.toml b/templates/form-paged/fields/second.toml
deleted file mode 100644
index cdeb9f0..0000000
--- a/templates/form-paged/fields/second.toml
+++ /dev/null
@@ -1,17 +0,0 @@
-[field.text]
-placeholder = "Text placeholder"
-
-[field.text.validation]
-pattern = "\\w+"
-
-[field.manythings]
-type = "select"
-
-[field.manythings.options]
-first = "First level"
-second = "Second level"
-
-[field.multiplethings]
-type = "checkbox"
-options = ["thing-1", "thing-2", "thing-3"]
-
diff --git a/templates/form/fields/_fields.toml b/templates/form/fields/_fields.toml
deleted file mode 100644
index 2be25cc..0000000
--- a/templates/form/fields/_fields.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-[field.name]
-file = "name.toml"
-
-[field.email]
-file = "email.toml"
-
diff --git a/templates/form/fields/email.toml b/templates/form/fields/email.toml
deleted file mode 100644
index 3ef14e8..0000000
--- a/templates/form/fields/email.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-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
deleted file mode 100644
index 5c888b6..0000000
--- a/templates/form/fields/name.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-type = "text"
-name = "name"
-
-[attributes]
-data-value = 123
-