Browse Source

Fixes for W3C

master
tr4ck3ur des JM2L 9 years ago
parent
commit
2fd6f0c962
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      jm2l/templates/helpers.mako

+ 6
- 2
jm2l/templates/helpers.mako View File

@@ -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


Loading…
Cancel
Save