summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-04-30 02:34:51 -0700
committerIvan Kohler <ivan@freeside.biz>2015-04-30 02:34:51 -0700
commit7d34aacffa38c4cac09b54080487a66c264e4668 (patch)
treee3b27abf58b2c71ff3a12eb18971140c60e6d973 /httemplate/browse
parent58cdf1b78c0cd419eacf7db8661564af050e0f12 (diff)
service dependencies: UI, RT#33685
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/part_svc_link.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/httemplate/browse/part_svc_link.html b/httemplate/browse/part_svc_link.html
new file mode 100644
index 000000000..d31acc646
--- /dev/null
+++ b/httemplate/browse/part_svc_link.html
@@ -0,0 +1,32 @@
+<& elements/browse.html,
+ 'title' => 'Service dependencies',
+ 'name_singular' => 'dependency',
+ 'menubar' => [ 'Add a new service dependency' =>
+ $p.'edit/part_svc_link.html',
+ ],
+ 'query' => { 'table' => 'part_svc_link',
+ 'order_by' => 'ORDER BY src_svcpart',
+ },
+ 'count_query' => 'SELECT COUNT(*) FROM part_svc_link',
+ 'header' => [ 'Source', 'Dependency', ],
+ 'fields' => [ 'src_svc', 'description', ],
+ 'sort_fields' => [],
+ 'links' => [ $svc_link, $link, ],
+ 'disableable' => 1,
+ 'disabled_statuspos' => 1,
+ 'agent_virt' => 1,
+ 'agent_null' => 1,
+ 'agent_null_right' => 'Configuration',
+ #agent_null_right_link'
+ 'agent_pos' => 0,
+&>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $svc_link = [ "${p}edit/part_svc.cgi?", 'src_svcpart' ];
+
+my $link = [ "${p}edit/part_svc_link.html?", 'svclinknum' ];
+
+</%init>