Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / edit / realestate_location.html
1 <% include( 'elements/edit.html',
2  'name_singular' => 'Real Estate Location',
3  'table'  => 'realestate_location',
4
5  'labels' => {
6     realestatelocnum => 'Location',
7     location_title => "Location",
8     address1       => "Address",
9     address2       => "Address",
10     city           => "City",
11     state          => "State",
12     zip            => "Zip-Code",
13     disabled       => "Disabled",
14   },
15   'fields' => [
16     { field => 'realestatelocnum', type => 'hidden' },
17
18     { field => 'location_title',
19       type=>'text',
20       size => 40,
21       maxlength => 80,
22     },
23     { field => 'address1',
24       type=>'text',
25       size => 40,
26       maxlength => 80,
27     },
28     { field => 'address2',
29       type=>'text',
30       size => 40,
31       maxlength => 80,
32     },
33     { field => 'city',
34       type=>'text',
35       size => 40,
36       maxlength => 80,
37     },
38     { field => 'state',
39       type=>'text',
40       size => 40,
41       maxlength => 80,
42     },
43     { field => 'zip',
44       type=>'text',
45       size => 5,
46       maxlength => 5,
47     },
48
49     { field => 'agentnum',
50       type => 'select-agent',
51       value => 1,
52     },
53     { field => 'disabled',
54       type=>'checkbox',
55       value=>'Y'
56     },
57   ],
58
59  'viewall_dir' => 'browse',
60  'agent_virt' => 1,
61 )
62 %>
63
64 <%init>
65
66 my $curuser = $FS::CurrentUser::CurrentUser;
67 die("access denied")
68   unless $curuser->access_right('Edit inventory')
69       || $curuser->access_right('Edit global inventory')
70       || $curuser->access_right('Configuration');
71
72 </%init>