[freeside-commits] freeside/httemplate/browse part_event.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Fri Nov 21 23:10:13 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv12704/browse
Modified Files:
part_event.html
Log Message:
billing event cloning
Index: part_event.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_event.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- part_event.html 1 Aug 2007 22:24:58 -0000 1.1
+++ part_event.html 22 Nov 2008 07:10:11 -0000 1.2
@@ -144,7 +144,17 @@
#XXX better description
'Events are billing, collection or other actions triggered when certain '.
'customer, invoice, package or other conditions are met.<BR><BR>'.
- qq!<A HREF="${p}edit/part_event.html"><I>Add a new event</I></A><BR><BR>!;
+ qq!<FORM METHOD="POST" ACTION="${p}edit/part_event.html">!.
+ qq!<A HREF="${p}edit/part_event.html"><I>Add a new event</I></A>!.
+ ' or <SELECT NAME="clone"><OPTION></OPTION>';
+
+foreach my $part_event ( qsearch('part_event', {'diabled'=>''}) ) {
+ $html_init .= '<OPTION VALUE="'. $part_event->eventpart. '">'.
+ $part_event->event. '</OPTION>';
+}
+
+$html_init .= '</SELECT><INPUT TYPE="submit" VALUE="Clone existing event">'.
+ '</FORM><BR>';
my $count_query = 'SELECT COUNT(*) FROM part_event WHERE '.
$FS::CurrentUser::CurrentUser->agentnums_sql(
More information about the freeside-commits
mailing list