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' },
13 { field => 'custnum', type => 'hidden' },
15 { field => 'unit_title',
19 { field => 'realestatelocnum',
20 type => 'select-realestate_location',
23 # I'd like to have this field disabled for editing on existing records,
24 # and only show the full selectbox for new records.
27 { field => 'agentnum',
28 type => 'select-agent',
30 { field => 'disabled',
36 'viewall_dir' => 'browse',
43 my $curuser = $FS::CurrentUser::CurrentUser;
45 unless $curuser->access_right('Edit inventory')
46 || $curuser->access_right('Edit global inventory')
47 || $curuser->access_right('Configuration');