diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-01-11 20:05:34 -0600 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-01-11 20:05:34 -0600 |
commit | 69e481a4a9191b9912d6bb8202627a5dc75f74ce (patch) | |
tree | 85604b29a5ce712824472778f488e69d0b0be1c5 /httemplate/browse/realestate_location.html | |
parent | 77daf007ef522ae71041d9b094643cf868d8ecce (diff) |
rt# 74031 implement svc_realestate
Diffstat (limited to 'httemplate/browse/realestate_location.html')
-rw-r--r-- | httemplate/browse/realestate_location.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/httemplate/browse/realestate_location.html b/httemplate/browse/realestate_location.html new file mode 100644 index 000000000..be2cd11f8 --- /dev/null +++ b/httemplate/browse/realestate_location.html @@ -0,0 +1,43 @@ +<% include( 'elements/browse.html', + title => emt('Real Estate Locations'), + name => 'real estate locations', + + menubar => [ + 'Edit units' => "${p}browse/realestate_unit.html", + 'Add a new location' => "${p}edit/realestate_location.html", + 'Add a new unit' => "${p}edit/realestate_unit.html", + ], + + query => { table => 'realestate_location' }, + count_query => 'SELECT COUNT(*) FROM realestate_location', + + header => [ 'Location', 'Address', 'Address 2', 'City', 'State', 'Zip' ], + fields => [ + 'location_title', + 'address1', + 'address2', + 'city', + 'state', + 'zip' + ], + links => [ + ["${p}edit/realestate_location.html?", 'realestatelocnum' ], + ], + + agent_virt => 1, + agent_pos => 0, + disableable => 1, +) +%> +<%init> + + +my $curuser = $FS::CurrentUser::CurrentUser; +die("access denied") + unless $curuser->access_right('Edit inventory') + || $curuser->access_right('Edit global inventory') + || $curuser->access_right('Configuration'); + + + +</%init> |