summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_tag.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/part_tag.html')
-rw-r--r--httemplate/edit/part_tag.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/httemplate/edit/part_tag.html b/httemplate/edit/part_tag.html
new file mode 100644
index 0000000..87c77fa
--- /dev/null
+++ b/httemplate/edit/part_tag.html
@@ -0,0 +1,29 @@
+<% 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',
+};
+
+</%init>