From e356f2ebb6564fe8d5333fc89bb4583ee3cd1fb1 Mon Sep 17 00:00:00 2001 From: levinse Date: Sun, 13 Feb 2011 07:22:32 +0000 Subject: bulk DID orders and inventory, RT11291 --- httemplate/elements/menu.html | 3 +++ httemplate/elements/tr-select-state.html | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 httemplate/elements/tr-select-state.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 710850cc2..651b04d28 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -380,6 +380,8 @@ $tools_menu{'Process payment batches'} = [ $fsurl.'search/pay_batch.cgi?magic=_d && $curuser->access_right('Process batches'); $tools_menu{'Download invoice batches'} = [ $fsurl.'search/bill_batch.cgi' ] if $conf->exists('invoice_print_pdf'); +$tools_menu{'Bulk DID Orders'} = [ $fsurl.'browse/did_order.html', 'View/manage bulk DID orders' ] + if $curuser->access_right('Import'); $tools_menu{'Job Queue'} = [ $fsurl.'search/queue.html', 'View pending job queue' ] if $curuser->access_right('Job queue'); $tools_menu{'Ticketing'} = [ \%tools_ticketing, 'Ticketing tools' ] @@ -496,6 +498,7 @@ tie my %config_broadband, 'Tie::IxHash', tie my %config_phone, 'Tie::IxHash', 'View/Edit phone device types' => [ $fsurl.'browse/part_device.html', 'Phone device types' ], + 'View/Edit bulk DID vendors' => [ $fsurl.'browse/did_vendor.html', 'Bulk DID vendors' ], ; tie my %config_misc, 'Tie::IxHash'; diff --git a/httemplate/elements/tr-select-state.html b/httemplate/elements/tr-select-state.html new file mode 100644 index 000000000..1a62ae561 --- /dev/null +++ b/httemplate/elements/tr-select-state.html @@ -0,0 +1,19 @@ +% unless ( $opt{'js_only'} ) { + <% include('tr-td-label.html', @_ ) %> + + > +% } + + <% include( '/elements/select-state.html', %opt ) %> + +% unless ( $opt{'js_only'} ) { + + +% } +<%init> + +my %opt = @_; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + + -- cgit v1.2.1