From b8f19a1bba58689f296e2b9180fb65967dbd544f Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Wed, 24 Jun 2015 08:28:45 +0200 Subject: [PATCH] Enforce min and max dates on "date" fields in HTML5 capable browsers. --- src/formrender.py | 10 +++++----- src/webapp.py | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/formrender.py b/src/formrender.py index 0fc0f3e..8065234 100644 --- a/src/formrender.py +++ b/src/formrender.py @@ -42,7 +42,7 @@ class FormRender(object): u'max="{maxval}" step="any" name="{name}" ' u'value="{value}" class="{classes}" style="{style}" />', "date": u'', + u'min="{min}" max="{max}" class="{classes}" style="{style}" />', "file": u'', "password": u'