aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/helpers.mako
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2015-03-01 01:25:09 +0100
committerpiernov <piernov@piernov.org>2015-03-01 01:25:09 +0100
commit3bef68914eeda2605ea1fbf7cad2d99ed3cbfb79 (patch)
tree835432b4526db8be1cb0d0175ea6b20665b65b68 /jm2l/templates/helpers.mako
parent4d448b614e0e84b3c8ad004744601bf19728ea19 (diff)
downloadjm2l-3bef68914eeda2605ea1fbf7cad2d99ed3cbfb79.tar.gz
jm2l-3bef68914eeda2605ea1fbf7cad2d99ed3cbfb79.tar.bz2
jm2l-3bef68914eeda2605ea1fbf7cad2d99ed3cbfb79.tar.xz
jm2l-3bef68914eeda2605ea1fbf7cad2d99ed3cbfb79.zip
Add date picker using webshim
Diffstat (limited to 'jm2l/templates/helpers.mako')
-rw-r--r--jm2l/templates/helpers.mako8
1 files changed, 4 insertions, 4 deletions
diff --git a/jm2l/templates/helpers.mako b/jm2l/templates/helpers.mako
index 525ea62..a8623d7 100644
--- a/jm2l/templates/helpers.mako
+++ b/jm2l/templates/helpers.mako
@@ -39,12 +39,12 @@ TabJs = {'select':[], 'desc':[]}
<%
PlaceHolder = DicFormat[Field.name].get("PlaceHolder")
FieldStyle = DicFormat[Field.name].get("FieldStyle")
- Class = [None,"ckeditor"][ DicFormat[Field.name].has_key("ckeditor") ]
+ Class = [False,"ckeditor"][ "ckeditor" in DicFormat[Field.name] ]
%>
- % if PlaceHolder:
- ${Field(placeholder=PlaceHolder, style=FieldStyle, class_=Class)}
+ % if Field.type == "DateField":
+ ${Field(placeholder=PlaceHolder or False, style=FieldStyle, class_=Class, type = "date")}
% else:
- ${Field(style=FieldStyle, class_=Class)}
+ ${Field(placeholder=PlaceHolder or False, style=FieldStyle, class_=Class)}
% endif
% else:
${Field()}