diff --git a/templates/ergo.html.tera b/templates/ergo.html.tera
index 0391c16..1ffbe65 100644
--- a/templates/ergo.html.tera
+++ b/templates/ergo.html.tera
@@ -48,7 +48,7 @@
- {{ macros::input(label="Distanz [m]", name="result", required=true, type="text", class="input rounded-md") }}
+ {{ macros::input(label="Distanz [m]", name="result", required=true, type="number", class="input rounded-md") }}
@@ -79,7 +79,7 @@
- {{ macros::input(label="Zeit [hh:mm:ss.s] oder Distanz [m]", name="result", required=true, type="text", class="input rounded-md") }}
+ {{ macros::input(label="Zeit [hh:mm:ss.s] oder Distanz [m]", name="result", required=true, type="text", class="input rounded-md", pattern="(?:\d+:\d{2}:\d{2}\.\d+|\d{1,2}:\d{2}\.\d+|\d+(\.\d+)?)") }}
diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera
index 31e1824..d5f2f4f 100644
--- a/templates/includes/macros.html.tera
+++ b/templates/includes/macros.html.tera
@@ -150,10 +150,10 @@
{% endmacro header %}
-{% macro input(label, name, type, required=false, class='rounded-md', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='') %}
+{% macro input(label, name, type, required=false, class='rounded-md', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='') %}
-
-
+
+
{% endmacro input %}