summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-04 16:23:54 -0800
committerIvan Kohler <ivan@freeside.biz>2014-01-04 16:23:54 -0800
commit5264cbf1175e3ea73cf9bcf5087c5028e6cf3b1c (patch)
tree01c07f0d3f21feaf8fa606355ed38da700fd6db1 /httemplate/browse
parent50e89d97c110d58e0755c69775e0d243a82e352d (diff)
svc_conferencing, RT#24389
Diffstat (limited to 'httemplate/browse')
-rw-r--r--httemplate/browse/conferencing_quality.html32
-rw-r--r--httemplate/browse/conferencing_type.html32
2 files changed, 64 insertions, 0 deletions
diff --git a/httemplate/browse/conferencing_quality.html b/httemplate/browse/conferencing_quality.html
new file mode 100644
index 000000000..88545591b
--- /dev/null
+++ b/httemplate/browse/conferencing_quality.html
@@ -0,0 +1,32 @@
+<& elements/browse.html,
+ 'title' => 'Conferencing quality levels',
+ 'html_init' => $html_init,
+ 'name_singular' => 'quality',
+ 'disableable' => 1,
+ 'disabled_statuspos' => 1,
+ 'query' => { 'table' => 'conferencing_quality',
+ 'hashref' => {},
+ 'order_by' => 'ORDER BY qualityid',
+ },
+ 'count_query' => $count_query,
+ 'header' => $header,
+ 'fields' => $fields,
+ 'links' => $links,
+&>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $html_init =
+ qq!<A HREF="${p}edit/conferencing_quality.html"><I>Add a conferencing quality</I></A><BR><BR>!;
+
+my $count_query = 'SELECT COUNT(*) FROM conferencing_quality';
+
+my $link = [ $p.'edit/conferencing_quality.html?', 'confqualitynum' ];
+
+my $header = [ 'ID', 'Quality' ];
+my $fields = [ 'qualityid', 'qualityname' ];
+my $links = [ $link, $link ];
+
+</%init>
diff --git a/httemplate/browse/conferencing_type.html b/httemplate/browse/conferencing_type.html
new file mode 100644
index 000000000..176b6a278
--- /dev/null
+++ b/httemplate/browse/conferencing_type.html
@@ -0,0 +1,32 @@
+<& elements/browse.html,
+ 'title' => 'Conferencing types',
+ 'html_init' => $html_init,
+ 'name_singular' => 'type',
+ 'disableable' => 1,
+ 'disabled_statuspos' => 1,
+ 'query' => { 'table' => 'conferencing_type',
+ 'hashref' => {},
+ 'order_by' => 'ORDER BY typeid',
+ },
+ 'count_query' => $count_query,
+ 'header' => $header,
+ 'fields' => $fields,
+ 'links' => $links,
+&>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $html_init =
+ qq!<A HREF="${p}edit/conferencing_type.html"><I>Add a conferencing type</I></A><BR><BR>!;
+
+my $count_query = 'SELECT COUNT(*) FROM conferencing_type';
+
+my $link = [ $p.'edit/conferencing_type.html?', 'conftypenum' ];
+
+my $header = [ 'ID', 'Type' ];
+my $fields = [ 'typeid', 'typename' ];
+my $links = [ $link, $link ];
+
+</%init>