[freeside-commits] freeside/httemplate/misc phone_avail-import.html, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Sun Nov 9 01:14:42 PST 2008


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv1247/httemplate/misc

Modified Files:
	phone_avail-import.html 
Log Message:
add a global countrycode to phone_avail import and a conf for the default (some other conf values snuck in also, oh well)

Index: phone_avail-import.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/phone_avail-import.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- phone_avail-import.html	15 Sep 2008 07:18:56 -0000	1.1
+++ phone_avail-import.html	9 Nov 2008 09:14:40 -0000	1.2
@@ -19,8 +19,6 @@
 
   <INPUT TYPE="hidden" NAME="availbatch" VALUE="<% $availbatch %>">
 
-  <INPUT TYPE="hidden" NAME="countrycode" VALUE="1">
-
   <% include( '/elements/tr-select-table.html',
                 'table'       => 'part_export',
                 'name_col'    => 'machine',
@@ -31,6 +29,16 @@
             )
   %>
 
+  <TR>
+    <TH ALIGN="right">Country code</TH>
+    <TD>
+      <INPUT TYPE  = "text"
+             NAME  = "countrycode"
+             VALUE = "<% $conf->config('default_phone_countrycode') || 1 %>"
+      >
+    </TD>
+  </TR>
+
   <% include( '/elements/file-upload.html',
                 'field' => 'file',
                 'label' => 'Filename',
@@ -72,6 +80,9 @@
 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);
 
 </%init>



More information about the freeside-commits mailing list