# index.html $:render.base() # html...
like include On Thu, Aug 19, 2010 at 1:11 AM, Klerik <[email protected]> wrote: > Hi, > > on my site i have search form. On index class works good, but I will add > this form to my base template (base.html), is any solution for me? > > code: > > class Index(): > """Zakladni trida pro zobrazeni indexu webu.""" > form_hledej = web.form.Form( > web.form.Textbox("vyhledavani", size=5, description=""), > web.form.Button("Vyhledat") > ) # Formular pro vyhledavani na webu > > def GET(self): > form_hledej = self.form_hledej() > ... > > index.html template: > > <form method="post"> > $:form_hledej.vyhledavani.render() > $:form_hledej.Vyhledat.render() > </form> > ... > > but how to add this form to base.html template? > > thanks for any answer and sorry for my bad english. > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <webpy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- 百才招聘 baicai.com:中国最大的免费招聘网站 跳哪 tiaona.com:中国最大的工作搜索引擎 Email: [email protected] Gtalk: [email protected] twitter.com/qichangxing blog.hi0791.com -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
