From 63ec397ccea7b71f6ae9b77db7f905c1a56d430d Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 9 Nov 2008 09:14:40 +0000 Subject: add a global countrycode to phone_avail import and a conf for the default (some other conf values snuck in also, oh well) --- httemplate/misc/phone_avail-import.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/phone_avail-import.html b/httemplate/misc/phone_avail-import.html index 98dcc8abb..1f4d8caae 100644 --- a/httemplate/misc/phone_avail-import.html +++ b/httemplate/misc/phone_avail-import.html @@ -19,8 +19,6 @@ Import a file containing phone numbers (DIDs). - - <% include( '/elements/tr-select-table.html', 'table' => 'part_export', 'name_col' => 'machine', @@ -31,6 +29,16 @@ Import a file containing phone numbers (DIDs). ) %> + + Country code + + + + + <% include( '/elements/file-upload.html', 'field' => 'file', 'label' => 'Filename', @@ -72,6 +80,9 @@ Field information: die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Import'); -my $availbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); +my $conf = new FS::Conf; + +my $availbatch = + time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); -- cgit v1.2.1