def mobile_basic_assess():
 if (not auth.is_logged_in()):
  redirect(URL(c='default', f='index'))
 assess_tables()
 impact_tables()
 custom_assess_fields = (('assess', 'location_id', 'auto'), ('impact', 1), ('impact', 2), ('impact', 3), ('impact', 4), ('impact', 5), ('impact', 6), ('impact', 7), ('assess', 'comments'))
 (form, form_accepted, assess_id) = custom_assess(custom_assess_fields)
 if form_accepted:
  form = FORM(H1(settings.get_system_name_short()), H2(T('Short Assessment')), P(T('Assessment Reported')), A(T('Report Another Assessment...'), _href=URL(r=request)), _class='mobile')
 return dict(form=form)

def mobile_basic_assess ( ) : if ( not auth . is_logged_in ( ) ) : redirect ( URL ( c = 'default' , f = 'index' ) ) assess_tables ( ) impact_tables ( ) custom_assess_fields = ( ( 'assess' , 'location_id' , 'auto' ) , ( 'impact' , 1 ) , ( 'impact' , 2 ) , ( 'impact' , 3 ) , ( 'impact' , 4 ) , ( 'impact' , 5 ) , ( 'impact' , 6 ) , ( 'impact' , 7 ) , ( 'assess' , 'comments' ) ) ( form , form_accepted , assess_id ) = custom_assess ( custom_assess_fields ) if form_accepted : form = FORM ( H1 ( settings . get_system_name_short ( ) ) , H2 ( T ( 'Short Assessment' ) ) , P ( T ( 'Assessment Reported' ) ) , A ( T ( 'Report Another Assessment...' ) , _href = URL ( r = request ) ) , _class = 'mobile' ) return dict ( form = form )
custom page to hide the complexity of the assessments/impacts/summary model: mobile device version .