Exemple #1
0
 def _render(self, c, attr):
     c.addStory(xhtml2pdf_reportlab.PmlInput(attr.name,
                                             type="select",
                                             default=c.select_options[0],
                                             options=c.select_options,
                                             width=100,
                                             height=40))
     c.select_options = None
Exemple #2
0
 def _render(self, c, attr):
     width = 10
     height = 10
     if attr.type == "text":
         width = 100
         height = 12
     c.addStory(xhtml2pdf_reportlab.PmlInput(attr.name,
                                             type=attr.type,
                                             default=attr.value,
                                             width=width,
                                             height=height,
     ))
Exemple #3
0
 def _render(self, c, attr):
     c.addStory(xhtml2pdf_reportlab.PmlInput(attr.name,
                                             default="",
                                             width=100,
                                             height=100))