db.define_table('my_tracker',
Field('weight','double',),
Field('created_by','reference auth_user',default = auth.user_id, readable = False, writable = False)) row = db(db.tracker.created_by == auth.user_id).select().first()
if not row:
form = SQLFORM(db.my_tracker, submit_button=T('Submit'))
form.element('input[name=weight]')['_style']='width:60px;height:30px;'You can change style according to your convenience{{extend 'layout.html'}}<figure><embed type="image/svg+xml" src="{{=chart}}" /></figure><h1>{{=form}}</h1>
--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/dGkepqrPY0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/dGkepqrPY0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.