From f46056f1423db7b7daf4a43f11610e1d961823af Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 23 Mar 2010 03:48:02 +0000 Subject: adding svc_mailinglist for communigate "groups" (mailing lists), RT#7514 --- httemplate/edit/mailinglistmember.html | 25 +++++++++++++++++++++++++ httemplate/edit/part_svc.cgi | 3 ++- httemplate/edit/process/mailinglistmember.html | 6 ++++++ httemplate/edit/process/svc_mailinglist.html | 11 +++++++++++ httemplate/edit/svc_mailinglist.cgi | 25 +++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 httemplate/edit/mailinglistmember.html create mode 100644 httemplate/edit/process/mailinglistmember.html create mode 100644 httemplate/edit/process/svc_mailinglist.html create mode 100644 httemplate/edit/svc_mailinglist.cgi (limited to 'httemplate/edit') diff --git a/httemplate/edit/mailinglistmember.html b/httemplate/edit/mailinglistmember.html new file mode 100644 index 000000000..2391cb697 --- /dev/null +++ b/httemplate/edit/mailinglistmember.html @@ -0,0 +1,25 @@ +<% include( 'elements/edit.html', + 'name_singular' => 'member', + 'table' => 'mailinglistmember', + 'popup' => 1, + 'fields' => [ + { field=>'listnum', type=>'hidden', }, + { field=>'svcnum', type=>'hidden', }, #not yet + { field=>'contactemailnum', type=>'hidden', }, #not yet + { field=>'email', type=>'text', }, + ], + 'labels' => { 'membernum' => 'Member', + 'email' => 'Email address', + }, + 'new_callback' => $new_callback, + ) +%> +<%init> + +my $new_callback = sub { + #my( $cgi, $object, $fields_listref, $opt_hashref ) = @_; + my( $cgi, $object ) = @_; + $object->listnum( $cgi->param('listnum') ); +}; + + diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 51925c0c5..98ed9fec1 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -15,7 +15,8 @@ Disable new orders Service definitions are the templates for items you offer to your customers.