1 <% include( 'elements/browse.html',
2 title => emt('Real Estate Locations'),
3 name => 'real estate locations',
6 'Edit units' => "${p}browse/realestate_unit.html",
7 'Add a new location' => "${p}edit/realestate_location.html",
8 'Add a new unit' => "${p}edit/realestate_unit.html",
11 query => { table => 'realestate_location' },
12 count_query => 'SELECT COUNT(*) FROM realestate_location',
14 header => [ 'Location', 'Address', 'Address 2', 'City', 'State', 'Zip' ],
24 ["${p}edit/realestate_location.html?", 'realestatelocnum' ],
35 my $curuser = $FS::CurrentUser::CurrentUser;
37 unless $curuser->access_right('Edit inventory')
38 || $curuser->access_right('Edit global inventory')
39 || $curuser->access_right('Configuration');