def supply_item_rheader(r):
 if (r.representation == 'html'):
  item = r.record
  if item:
   T = current.T
   tabs = [(T('Edit Details'), None), (T('Packs'), 'item_pack'), (T('Alternative Items'), 'item_alt'), (T('In Inventories'), 'inv_item'), (T('Requested'), 'req_item'), (T('In Catalogs'), 'catalog_item')]
   if (item.kit == True):
    tabs.append((T('Kit Items'), 'kit_item'))
   rheader_tabs = s3_rheader_tabs(r, tabs)
   table = r.table
   rheader = DIV(TABLE(TR(TH(('%s: ' % table.name.label)), item.name), TR(TH(('%s: ' % table.brand_id.label)), table.brand_id.represent(item.brand_id)), TR(TH(('%s: ' % table.model.label)), (item.model or current.messages['NONE']))), rheader_tabs)
   return rheader
 return None

def supply_item_rheader ( r ) : if ( r . representation == 'html' ) : item = r . record if item : T = current . T tabs = [ ( T ( 'Edit Details' ) , None ) , ( T ( 'Packs' ) , 'item_pack' ) , ( T ( 'Alternative Items' ) , 'item_alt' ) , ( T ( 'In Inventories' ) , 'inv_item' ) , ( T ( 'Requested' ) , 'req_item' ) , ( T ( 'In Catalogs' ) , 'catalog_item' ) ] if ( item . kit == True ) : tabs . append ( ( T ( 'Kit Items' ) , 'kit_item' ) ) rheader_tabs = s3_rheader_tabs ( r , tabs ) table = r . table rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . name . label ) ) , item . name ) , TR ( TH ( ( '%s: ' % table . brand_id . label ) ) , table . brand_id . represent ( item . brand_id ) ) , TR ( TH ( ( '%s: ' % table . model . label ) ) , ( item . model or current . messages [ 'NONE' ] ) ) ) , rheader_tabs ) return rheader return None
resource header for items .