3 Display a pair of select boxes for provisioning a realestate_unit
8 <& tr-td-label.html, %opt &>
10 <& select-tiered.html,
13 # (todo) need to filter out locations where all units are assigned
14 field => 'realestate_location',
15 table => 'realestate_location',
16 #extra_sql => "WHERE $classnum_sql",
17 name_col => 'location_title',
18 empty_label => '(all)',
21 field => 'realestate_unit',
22 table => 'realestate_unit',
23 name_col => 'unit_title',
24 value_col => 'realestatenum',
25 link_col => 'realestatelocnum',
26 #extra_sql => delete($opt{'extra_sql'}),
27 # Need to add a filter to filter-out assigned units (todo)
32 'prefix' => $opt{'prefix'}. $opt{'field'}. '_', #after %opt so it overrides