From 2fd6f0c9621c8d746b8a4836bd61be6c86df80a7 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sat, 21 Feb 2015 20:07:32 +0100 Subject: Fixes for W3C --- jm2l/templates/helpers.mako | 8 ++++++-- 1 file 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 -- cgit v1.2.3-70-g09d2