diff options
| author | Mark Wells <mark@freeside.biz> | 2012-10-10 12:22:41 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-10-10 12:22:41 -0700 |
| commit | 4dcede787a49e94f502b29d2c2fb42cc130c6aff (patch) | |
| tree | 47bb383013d5c810b44ed0d2d8ec60792f3ee5ff /httemplate/edit | |
| parent | f5399ba1d6f13748fa61d24ecb40164fb8945b81 (diff) | |
HTML templates for printable form letters, #17349
Diffstat (limited to 'httemplate/edit')
| -rwxr-xr-x | httemplate/edit/cust_main.cgi | 2 | ||||
| -rw-r--r-- | httemplate/edit/part_tag.html | 2 | ||||
| -rw-r--r-- | httemplate/edit/process/msg_template.html | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 91419af5a..3d9aa8002 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -318,6 +318,8 @@ if ( $cgi->param('error') ) { $stateid = ''; $payinfo = ''; + $cgi->param('tagnum', FS::part_tag->default_tags); + if ( $cgi->param('qualnum') =~ /^(\d+)$/ ) { my $qualnum = $1; my $qual = qsearchs('qual', { 'qualnum' => $qualnum } ) diff --git a/httemplate/edit/part_tag.html b/httemplate/edit/part_tag.html index 87c77fa98..64ecefba4 100644 --- a/httemplate/edit/part_tag.html +++ b/httemplate/edit/part_tag.html @@ -5,12 +5,14 @@ { field=>'tagname', type=>'text', size=>10 }, { field=>'disabled', type=>'checkbox', value=>'Y' }, { field=>'tagdesc', type=>'text', size=>60 }, + { field=>'by_default', type=>'checkbox', value=>'Y' }, $tagcolor, ], 'labels' => { 'tagnum' => 'Tag #', 'tagname' => 'Tag', 'tagdesc' => 'Message', 'tagcolor' => 'Highlight Color', + 'by_default' => 'On by default', 'disabled' => 'Disabled', }, 'viewall_dir' => 'browse', diff --git a/httemplate/edit/process/msg_template.html b/httemplate/edit/process/msg_template.html index b19f5c542..e146adf76 100644 --- a/httemplate/edit/process/msg_template.html +++ b/httemplate/edit/process/msg_template.html @@ -29,6 +29,8 @@ sub args_callback { # no validation of these; they can contain just about anything $content{'subject'} = $cgi->param('subject') || ''; $content{'body'} = $cgi->param('body') || ''; + $object->subject(''); + $object->body(''); return %content; } |
