summaryrefslogtreecommitdiff
path: root/templates/config
diff options
context:
space:
mode:
Diffstat (limited to 'templates/config')
-rw-r--r--templates/config/config.toml11
-rw-r--r--templates/config/templates/field-input.html9
-rw-r--r--templates/config/templates/form.html8
3 files changed, 28 insertions, 0 deletions
diff --git a/templates/config/config.toml b/templates/config/config.toml
new file mode 100644
index 0000000..03977a1
--- /dev/null
+++ b/templates/config/config.toml
@@ -0,0 +1,11 @@
+[app]
+title = "Flat-File Forms"
+
+[email]
+host = localhost
+user = root
+password = 123456
+
+[api]
+keys = []
+
diff --git a/templates/config/templates/field-input.html b/templates/config/templates/field-input.html
new file mode 100644
index 0000000..407bde0
--- /dev/null
+++ b/templates/config/templates/field-input.html
@@ -0,0 +1,9 @@
+<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
new file mode 100644
index 0000000..b880ee4
--- /dev/null
+++ b/templates/config/templates/form.html
@@ -0,0 +1,8 @@
+<form action="{{ form.action }}" method="POST">
+ {{ csrf() }}
+
+ {% for field in fields %}
+ {{ field.render() }}
+ {% endfor %}
+</form>
+