aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jm2l/templates/helpers.mako8
1 files changed, 6 insertions, 2 deletions
diff --git a/jm2l/templates/helpers.mako b/jm2l/templates/helpers.mako
index 629d094..525ea62 100644
--- a/jm2l/templates/helpers.mako
+++ b/jm2l/templates/helpers.mako
@@ -40,8 +40,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") ]
- %>
- ${Field(placeholder=PlaceHolder, style=FieldStyle, class_=Class)}
+ %>
+ % if PlaceHolder:
+ ${Field(placeholder=PlaceHolder, style=FieldStyle, class_=Class)}
+ % else:
+ ${Field(style=FieldStyle, class_=Class)}
+ % endif
% else:
${Field()}
% endif