[freeside-commits] freeside/httemplate/browse part_tag.html, 1.1, 1.2

Ivan,,, ivan at wavetail.420.am
Sat Jul 17 14:41:50 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv7390/httemplate/browse

Modified Files:
	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
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- part_tag.html	15 Jul 2010 21:46:31 -0000	1.1
+++ part_tag.html	17 Jul 2010 21:41:48 -0000	1.2
@@ -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