From d8950e63d6c3f6fb910c28077e3a3e054ad12388 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 12 Nov 2014 19:24:13 -0800 Subject: add svc_domain.quota, RT#30832 --- httemplate/edit/svc_domain.cgi | 11 +++++++++++ httemplate/edit/svc_domain/communigate-basics.html | 2 +- httemplate/view/svc_domain/basics.html | 7 +++++++ 3 files changed, 19 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi index 417b1b4c5..9b54422d3 100755 --- a/httemplate/edit/svc_domain.cgi +++ b/httemplate/edit/svc_domain.cgi @@ -56,6 +56,17 @@ Available top-level domains: <% $export->option('tlds') %> +% if ( $part_svc->part_svc_column('quota')->columnflag =~ /^[FA]$/ ) { + +% } else { + + Quota + + + + +% } + <% include('svc_domain/communigate-basics.html', 'svc_domain' => $svc_domain, 'part_svc' => $part_svc, diff --git a/httemplate/edit/svc_domain/communigate-basics.html b/httemplate/edit/svc_domain/communigate-basics.html index dbad35f1c..67f442842 100644 --- a/httemplate/edit/svc_domain/communigate-basics.html +++ b/httemplate/edit/svc_domain/communigate-basics.html @@ -26,7 +26,7 @@ % } -% if ( $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) { +% if ( ! $communigate || $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) { % } else { diff --git a/httemplate/view/svc_domain/basics.html b/httemplate/view/svc_domain/basics.html index 71b7ca4eb..3c3c5a046 100644 --- a/httemplate/view/svc_domain/basics.html +++ b/httemplate/view/svc_domain/basics.html @@ -63,6 +63,13 @@ Service #<% $svcnum %> % } +% if ( $svc_domain->quota ) { + + Quota + <% $svc_domain->quota %> + +% } + % if ( $communigate && $svc_domain->max_accounts ) { Maximum number of Accounts -- cgit v1.2.1