Hi Christian,

assuming the controller is

   def user(): return dict(form=Auth())

the view is views/default/user.html (you have to create it). The forms
are generated in gluon/tools.py (you should not change this).

In user.html you add at the bottom something like:

{{if request.args[0]=='register':}}
<script>
$(document).ready(function(){
   $('#auth_user_first_name').tootip("....."); // note every INPUT
field has an ID
});
<script>
{{pass}}

On May 16, 7:42 am, Cristian Andrei <[email protected]>
wrote:
> Hello,
>
> I'm taking part in developing an application by using Web2Py. We got
> to a point where we want to customize some forms that are
> automatically exposed.
>
> Case in hand, user authentication with the help of the AUTH class. We
> used the tutorial found 
> athttp://mdp.cti.depaul.edu/examples/default/tools#authentication.
>
> I would be most interested in adding a Jquery form tooltip to each
> textarea (some help text to be shown whenever the user enters some
> data in the textarea) in the exposed urls :
>     *http://locahost:8000/application/default/user/register
>     *http://locahost:8000/application/default/user/login
>     *http://locahost:8000/application/default/user/logout
>     *http://locahost:8000/application/default/user/verify_email
>     *http://locahost:8000/application/default/user/profile
>     *http://locahost:8000/application/default/user/change_password
>     *http://locahost:8000/application/default/user/retrieve_password
>     *http://locahost:8000/application/default/user/groups
> but the problem is that I cannot find any piece of code for any of
> those forms.
>
> Do you guys have any idea on how can that be achieved ?
>
> Thanks a million,
> Cristian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to