1 <% include( 'elements/edit.html',
2 'name_singular' => 'Real Estate Unit',
3 'table' => 'realestate_unit',
6 realestatenum => 'Ref No',
7 unit_title => 'Unit Title',
9 realestatelocnum => 'Location',
12 { field => 'realestatenum', type => 'hidden' },
14 { field => 'unit_title',
18 { field => 'realestatelocnum',
19 type => 'select-realestate_location',
22 # I'd like to have this field disabled for editing on existing records,
23 # and only show the full selectbox for new records.
26 { field => 'agentnum',
27 type => 'select-agent',
29 { field => 'disabled',
35 'viewall_dir' => 'browse',
42 my $curuser = $FS::CurrentUser::CurrentUser;
44 unless $curuser->access_right('Edit inventory')
45 || $curuser->access_right('Edit global inventory')
46 || $curuser->access_right('Configuration');