diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-08 00:14:03 -0500 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-08 00:14:03 -0500 |
| commit | 6df492990ea195513430f3a56d537e57e50b6913 (patch) | |
| tree | fbad0bec707db6bf6ee6cb6eb34444885e21f3f7 /httemplate/elements | |
| parent | 24c164b829dce551badd130dba51b011342676f2 (diff) | |
72393: High-priority: Tags history
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/change_history_common.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index e228e6555..5aaf6e691 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -197,6 +197,12 @@ my $svc_labelsub = sub { $label. ': <b>'. encode_entities($item->label($item->history_date)). '</b>'; }; +my $tag_labelsub = sub { + my($item, $label) = @_; + my $part_tag = qsearchs('part_tag',{ tagnum => $item->tagnum }); + $label. ': <SPAN STYLE="background-color: #'.$part_tag->tagcolor.'">'. encode_entities($part_tag->tagname). '</SPAN>'; +}; + my %h_table_labelsub = ( 'h_cust_pkg' => $pkg_labelsub, 'h_svc_acct' => $svc_labelsub, @@ -208,6 +214,7 @@ my %h_table_labelsub = ( 'h_svc_external' => $svc_labelsub, 'h_svc_phone' => $svc_labelsub, #'h_phone_device' + 'h_cust_tag' => $tag_labelsub, ); my $discounts = {}; |
