diff --git a/templates/ergo.html.tera b/templates/ergo.html.tera
index f0d8611..6fdc9d2 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]/Distanz [m]", name="result", required=true, type="text", class="input rounded-md") }}
+ {{ macros::input(label="Zeit [(hh:)mm:ss]/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 a051759..2b5e200 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 %}