Ok here is an example. Let's say in the controller i have the
following code:
response.menu=[
[’login’,False,t2.action(’login’)],
[’search’,False,t2.action(’searchItems’)],
[’register’,False,t2.action(’register’)]]
def register(): return dict(form=t2.register())
def login(): return dict(form=t2.login())
def logout(): t2.logout(next=’login’)
def searchItems():
search=t2.search(db.items)
return dict(search=search)
And in the login.html we have something like:
<div class="frame">
<h2>Login</h2>
{{=form}}
</div>
And in the registration.html we have something like:
<div class="frame">
<h2>Register</h2>
{{=form}}
</div>
The registration, Login pages for example display some fields that i
don't want, how can I choose which fields to display ?
- Also How can I customized the layout to make it look nice.
- Also for the search criterion, how can i choose which one to display
and how to display it (Layout)
Thanks for your attention and help.
On Jan 24, 7:42 pm, jlegler <[email protected]> wrote:
> There are many ways to do it depending on what you want to do. Can
> you give us an example of what you would like to do?
>
> On Jan 24, 1:50 pm, Yannick <[email protected]> wrote:
>
> > Hello mate,
> > Anyone knows how to customize the form ( Register, Login, etc...)
> > return by T2 application Plug-in ?
>
> > Thanks for your help !
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---