RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / browse / realestate_location.html
1 <% include( 'elements/browse.html',
2   title       => emt('Real Estate Locations'),
3   name        => 'real estate locations',
4
5   menubar => [
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",
9   ],
10
11   query => { table => 'realestate_location' },
12   count_query => 'SELECT COUNT(*) FROM realestate_location',
13
14   header => [ 'Location', 'Address', 'Address 2', 'City', 'State', 'Zip' ],
15   fields => [
16     'location_title',
17     'address1',
18     'address2',
19     'city',
20     'state',
21     'zip'
22   ],
23   links => [
24     ["${p}edit/realestate_location.html?",  'realestatelocnum' ],
25   ],
26
27   agent_virt  => 1,
28   agent_pos   => 0,
29   disableable => 1,
30 )
31 %>
32 <%init>
33
34
35 my $curuser = $FS::CurrentUser::CurrentUser;
36 die("access denied")
37   unless $curuser->access_right('Edit inventory')
38       || $curuser->access_right('Edit global inventory')
39       || $curuser->access_right('Configuration');
40
41
42
43 </%init>