summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-07-15 21:47:03 +0000
committerivan <ivan>2010-07-15 21:47:03 +0000
commit96a5362009cade1872f5de8cab41951c6ee57ef9 (patch)
treebf2887c068e7845adb2b6b7060525f58d5d854c5 /httemplate/edit
parentb4191ff558b141b8f9a4374b0d3f0ce6312d4439 (diff)
customer tags, RT#9192
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/part_tag.html23
-rw-r--r--httemplate/edit/process/part_tag.html11
2 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/edit/part_tag.html b/httemplate/edit/part_tag.html
new file mode 100644
index 000000000..938e34256
--- /dev/null
+++ b/httemplate/edit/part_tag.html
@@ -0,0 +1,23 @@
+<% include( 'elements/edit.html',
+ 'table' => 'part_tag',
+ 'name_singular' => 'tag',
+ 'fields' => [ 'tagname',
+ { field=>'disabled', type=>'checkbox', value=>'Y' },
+ 'tagdesc',
+ 'tagcolor'
+ ],
+ 'labels' => { 'tagnum' => 'Tag #',
+ 'tagname' => 'Tag',
+ 'tagdesc' => 'Description',
+ 'tagcolor' => 'Highlight Color',
+ 'disabled' => 'Disabled',
+ },
+ 'viewall_dir' => 'browse',
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+</%init>
diff --git a/httemplate/edit/process/part_tag.html b/httemplate/edit/process/part_tag.html
new file mode 100644
index 000000000..077dc4cd9
--- /dev/null
+++ b/httemplate/edit/process/part_tag.html
@@ -0,0 +1,11 @@
+<% include( 'elements/process.html',
+ 'table' => 'part_tag',
+ 'viewall_dir' => 'browse',
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+</%init>