def screen():
dpform=SQLFORM(db.info,row.id,fields=['dp']).process()
return locals()
def delformforscreen():
row=db(db.info.info_id==auth.user_id).select().first()
form=SQLFORM(db.info,row.id,fields=['first_name','last_name','dob','sex','hometown',
'highschool', 'university', 'oneself']).process()
return locals()
in view:
default/delformforscreen.load
<script>
jQuery(document).ready(function(){
jQuery('#info_id__row').hide();
jQuery('#info_id__row').hide();
});
</script>
{{=form}}
in default/screen.html:
{{extend 'layout.html'}}
{{=dpform}}
{{=LOAD('default', 'delformforscreen.load', ajax=True)}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.