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].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.