diff options
author | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-21 20:07:32 +0100 |
---|---|---|
committer | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-21 20:07:32 +0100 |
commit | 2fd6f0c9621c8d746b8a4836bd61be6c86df80a7 (patch) | |
tree | 9bfe7e548f32a1d969b26ed5758b7b065160476d | |
parent | 8ae507b78ae3739e1c70d4e2d6249805fba8b572 (diff) | |
download | jm2l-2fd6f0c9621c8d746b8a4836bd61be6c86df80a7.tar.gz jm2l-2fd6f0c9621c8d746b8a4836bd61be6c86df80a7.tar.bz2 jm2l-2fd6f0c9621c8d746b8a4836bd61be6c86df80a7.tar.xz jm2l-2fd6f0c9621c8d746b8a4836bd61be6c86df80a7.zip |
Fixes for W3C
-rw-r--r-- | jm2l/templates/helpers.mako | 8 |
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 |