rt# 74031 implement svc_realestate
[freeside.git] / httemplate / edit / realestate_unit.html
1 <% include( 'elements/edit.html',
2  'name_singular' => 'Real Estate Unit',
3  'table'  => 'realestate_unit',
4
5  'labels' => {
6     realestatenum  => 'Ref No',
7     unit_title => 'Unit Title',
8     agentnum => 'Agent',
9     realestatelocnum => 'Location',
10   },
11   'fields' => [
12     { field => 'realestatenum', type => 'hidden' },
13
14     { field => 'unit_title',
15       type=>'text',
16       size => 40,
17     },
18     { field => 'realestatelocnum',
19       type => 'select-realestate_location',
20
21       # possible todo:
22       # I'd like to have this field disabled for editing on existing records,
23       # and only show the full selectbox for new records.
24
25     },
26     { field => 'agentnum',
27       type => 'select-agent',
28     },
29     { field => 'disabled',
30       type=>'checkbox',
31       value=>'Y'
32     },
33   ],
34
35  'viewall_dir' => 'browse',
36  'agent_virt' => 1,
37 )
38 %>
39
40 <%init>
41
42 my $curuser = $FS::CurrentUser::CurrentUser;
43 die("access denied")
44   unless $curuser->access_right('Edit inventory')
45       || $curuser->access_right('Edit global inventory')
46       || $curuser->access_right('Configuration');
47
48 </%init>