<% include( 'elements/edit.html', 'table' => 'part_tag', 'name_singular' => 'tag', 'fields' => [ { field=>'tagname', type=>'text', size=>10 }, { field=>'disabled', type=>'checkbox', value=>'Y' }, { field=>'tagdesc', type=>'text', size=>60 }, $tagcolor, ], 'labels' => { 'tagnum' => 'Tag #', 'tagname' => 'Tag', 'tagdesc' => 'Message', 'tagcolor' => 'Highlight Color', 'disabled' => 'Disabled', }, 'viewall_dir' => 'browse', ) %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $tagcolor = { field => 'tagcolor', type => 'pickcolor', };