X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=2ae216c5c73e4a0f4a1f10c2673acd06028b4b16;hb=430b2c784d2ee9ea5be00b821d2dbd27279ef132;hp=8cbbd174274107192f8566e0a0cf4ce5d683c196;hpb=ec9b0f903dfa57efc0c82791b9efa74f0c746bc0;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 8cbbd1742..2ae216c5c 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -197,6 +197,10 @@ foreach my $svcdb ( FS::part_svc->svc_tables() ) { [ $fsurl. 'search/report_svc_phone_usage.html', 'Total usage (minutes, and amount billed) for the specified time period, per phone number.', ]; + $report_svc{"${name} by state"} = + [ $fsurl. 'search/phone_state.html', + 'Current or historical phone services broken down by state.', + ]; } @@ -504,6 +508,10 @@ tie my %config_broadband, 'Tie::IxHash', 'Routers' => [ $fsurl.'browse/router.cgi', 'Broadband access routers' ], 'Address blocks' => [ $fsurl.'browse/addr_block.cgi', 'Manage address blocks and block assignments to broadband routers' ], ; +if ( $curuser->access_right('Broadband global configuration') ) { + $config_broadband{'Address ranges'} = + [ $fsurl.'browse/addr_range.html', 'Designate special address ranges' ]; +} tie my %config_phone, 'Tie::IxHash', 'View/Edit phone device types' => [ $fsurl.'browse/part_device.html', 'Phone device types' ], @@ -517,9 +525,16 @@ tie my %config_radius, 'Tie::IxHash', ; tie my %config_cable, 'Tie::IxHash', + 'Cable providers' => [ $fsurl.'browse/cable_provider.html', '' ], 'Cable modem models' => [ $fsurl.'browse/cable_model.html', '' ], ; +tie my %config_alarm, 'Tie::IxHash', + 'Alarm system vendors' => [ $fsurl.'browse/alarm_system.html', '' ], + 'Alarm system types' => [ $fsurl.'browse/alarm_type.html', '' ], + 'Alarm central stations' => [ $fsurl.'browse/alarm_station.html', '' ], +; + tie my %config_export_svc, 'Tie::IxHash', (); if ( $curuser->access_right('Configuration') ) { $config_export_svc{'Service definitions'} = [ $fsurl.'browse/part_svc.cgi', 'Services are items you offer to your customers' ]; @@ -536,6 +551,8 @@ $config_export_svc{'RADIUS'} = [ \%config_radius, '' ] if $curuser->access_right('Configuration'); $config_export_svc{'Cable'} = [ \%config_cable, '' ] if $curuser->access_right('Configuration'); +$config_export_svc{'Alarm'} = [ \%config_alarm, '' ] + if $curuser->access_right(['Alarm configuration', 'Alarm global configuration']); $config_export_svc{'Hardware types'} = [ $fsurl.'browse/hardware_class.html', 'Set up hardware type catalog' ] if $curuser->access_right('Configuration'); @@ -559,6 +576,7 @@ if ( $curuser->access_right('Configuration') ) { #eo package grouping sub-menu $config_pkg{'Discounts'} = [ $fsurl.'browse/discount.html', '' ]; + $config_pkg{'Discount classes'} = [ $fsurl.'browse/discount_class.html', '' ]; $config_pkg{'Cancel/Suspend Reasons'} = [ \%config_pkg_reason, '' ]; } @@ -600,6 +618,7 @@ $config_billing{'Billing events'} = [ $fsurl.'browse/part_event.html', 'Billing || $curuser->access_right('Edit global billing events'); if ( $curuser->access_right('Configuration') ) { #$config_billing{'Invoice events'} = [ $fsurl.'browse/part_bill_event.cgi', 'Deprecated, old-style actions for overdue invoices' ]; + $config_billing{'Invoice configurations'} = [ $fsurl.'browse/invoice_conf.html', 'Adjust invoice settings for special-purpose notices' ]; $config_billing{'Invoice templates'} = [ $fsurl.'browse/invoice_template.html', 'Edit templates for HTML, plaintext and typeset invoices' ]; $config_billing{'separator'} = ''; #its a separator! $config_billing{'Prepaid cards'} = [ $fsurl.'search/prepay_credit.html', 'View outstanding cards, generate new cards' ]; @@ -752,8 +771,8 @@ my $wiki = 'http://www.freeside.biz/mediawiki/index.php'; my $doc_link = $conf->config('support-key') ? "$wiki/Supported:Documentation" : $curuser->access_right('Configuration') - ? "$wiki/Freeside:2.1:Documentation" - : "$wiki/Freeside:2.1:Documentation:User"; + ? "$wiki/Freeside:4:Documentation" + : "$wiki/Freeside:2.1:Documentation:User"; #no page for other versions yet :/ eval "use RT;" if $conf->config('ticket_system') eq 'RT_Internal'; @@ -817,16 +836,23 @@ $menu{'Reports'} = [ \%report_menu, 'Lists, reporting and graphing' ] $menu{'Tools'} = [ \%tools_menu, 'Tools' ] if keys %tools_menu; $menu{'Configuration'} = [ \%config_menu, 'Configuration and setup' ] - if $curuser->access_right('Configuration') - || $curuser->access_right('Edit package definitions') - || $curuser->access_right('Edit global package definitions') - || $curuser->access_right('Edit billing events') - || $curuser->access_right('Edit global billing events') - || $curuser->access_right('Dialup configuration') - || $curuser->access_right('Wireless broadband configuration') - || $curuser->access_right('Phone configuration') - || $curuser->access_right('Edit advertising sources') - || $curuser->access_right('Edit global advertising sources'); + if $curuser->access_right([ 'Configuration', + 'Edit package definitions', + 'Edit global package definitions', + 'Edit billing events', + 'Edit global billing events', + 'Dialup configuration', + 'Wireless broadband configuration', + 'Phone configuration', + 'Alarm configuration', + 'Alarm global configuration', + 'Edit advertising sources', + 'Edit global advertising sources', + 'View templates', + 'View global templates', + 'Edit templates', + 'Edit global templates', + ]); $menu{'Help'} = [ \%help_menu, '' ];