[freeside-commits] freeside/httemplate/browse part_tag.html, 1.1.2.2, 1.1.2.3
Ivan,,,
ivan at wavetail.420.am
Sat Jul 17 14:41:51 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv7401/httemplate/browse
Modified Files:
Tag: FREESIDE_1_9_BRANCH
part_tag.html
Log Message:
customer tags, RT#9192
Index: part_tag.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_tag.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- part_tag.html 15 Jul 2010 21:47:03 -0000 1.1.2.2
+++ part_tag.html 17 Jul 2010 21:41:49 -0000 1.1.2.3
@@ -6,9 +6,10 @@
],
'query' => { 'table' => 'part_tag', },
'count_query' => 'SELECT COUNT(*) FROM part_tag',
- 'header' => [ 'Tag', 'Description', 'Color' ],
- 'fields' => [ 'tagname', 'tagdesc', 'tagcolor' ],
- 'links' => [ $link, '', '' ],
+ 'header' => [ 'Tag', 'Message', ],
+ 'fields' => [ 'tagname', 'tagdesc', ],
+ 'links' => [ $link, '', ],
+ 'cell_style' => [ '', $tagdesc_style ],
'disableable' => 1,
'disabled_statuspos' => 1,
)
@@ -18,6 +19,8 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+my $tagdesc_style = sub { 'background-color:#'.shift->tagcolor };
+
my $link = [ "${p}edit/part_tag.html?", 'tagnum' ];
</%init>
More information about the freeside-commits
mailing list