summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_tag.html
blob: 2cf34c6e8375028d9716a50d99a89c41feea33fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<% include( 'elements/edit.html',
              'table'         => 'part_tag',
              'name_singular' => 'customer tag',
              'fields'        => [
                { 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',
          )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $tagcolor = {
  field => 'tagcolor',
  type  => 'pickcolor',
};

</%init>