def work_rheader(r, tabs=[]):
 if (r.representation != 'html'):
  return None
 tablename = r.tablename
 record = r.record
 rheader = None
 rheader_fields = []
 if record:
  T = current.T
  if (tablename == 'work_job'):
   if (not tabs):
    tabs = [(T('Basic Details'), ''), (T('Assignments'), 'assignment')]
   rheader_fields = [['name'], ['site_id'], ['start_date', 'duration'], ['status']]
  rheader = S3ResourceHeader(rheader_fields, tabs)(r)
 return rheader

def work_rheader ( r , tabs = [ ] ) : if ( r . representation != 'html' ) : return None tablename = r . tablename record = r . record rheader = None rheader_fields = [ ] if record : T = current . T if ( tablename == 'work_job' ) : if ( not tabs ) : tabs = [ ( T ( 'Basic Details' ) , '' ) , ( T ( 'Assignments' ) , 'assignment' ) ] rheader_fields = [ [ 'name' ] , [ 'site_id' ] , [ 'start_date' , 'duration' ] , [ 'status' ] ] rheader = S3ResourceHeader ( rheader_fields , tabs ) ( r ) return rheader
work module resource headers .