Commits

Torsten Irländer  committed a2a77f0

Added Infofield Renderer

  • Participants
  • Parent commits e8d86bf

Comments (0)

Files changed (1)

File formbar/renderer.py

             return field._form.external_renderers.get(renderer.render_type)(field, translate)
         if renderer.render_type == "textarea":
             return TextareaFieldRenderer(field, translate)
+        elif renderer.render_type == "info":
+            return InfoFieldRenderer(field, translate)
         elif renderer.render_type == "dropdown":
             return DropdownFieldRenderer(field, translate)
         elif renderer.render_type == "datepicker":
         html.append(self._render_help())
         return "".join(html)
 
+class InfoFieldRenderer(FieldRenderer):
+    """A Renderer to render simple fa_field elements"""
+
+    def __init__(self, field, translate):
+        FieldRenderer.__init__(self, field, translate)
+        self.template = template_lookup.get_template("infofield.mako")
 
 class TextFieldRenderer(FieldRenderer):
     """A Renderer to render simple fa_field elements"""