summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-07-15 21:46:31 +0000
committerivan <ivan>2010-07-15 21:46:31 +0000
commit130c7801e718d55c500e9f777112f51905cad060 (patch)
tree33fb33c18c9a8674c3f81c0ed23d3774335b0849 /httemplate/edit
parent24893d30ecc52b457e37214a598a07c5a0800c23 (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>