summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-12 19:24:13 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-12 19:24:13 -0800
commitd8950e63d6c3f6fb910c28077e3a3e054ad12388 (patch)
treea269726f8cbdb7a40e269bbc8d097c7cb5e65bd3 /httemplate
parent051101dc91e9d6164cda897495880c8f2f7705be (diff)
add svc_domain.quota, RT#30832
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/svc_domain.cgi11
-rw-r--r--httemplate/edit/svc_domain/communigate-basics.html2
-rw-r--r--httemplate/view/svc_domain/basics.html7
3 files changed, 19 insertions, 1 deletions
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') %>
</TD>
</TR>
+% if ( $part_svc->part_svc_column('quota')->columnflag =~ /^[FA]$/ ) {
+ <INPUT TYPE="hidden" NAME="quota" VALUE="<% $svc_domain->quota %>">
+% } else {
+ <TR>
+ <TD ALIGN="right">Quota</TD>
+ <TD>
+ <INPUT TYPE="text" NAME="quota" SIZE=8 VALUE="<% $svc_domain->quota %>">
+ </TD>
+ </TR>
+% }
+
<% 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 @@
<INPUT TYPE="hidden" NAME="cgp_aliases" VALUE="<% $svc_domain->cgp_aliases %>">
% }
-% if ( $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) {
+% if ( ! $communigate || $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) {
<INPUT TYPE="hidden" NAME="max_accounts" VALUE="<% $svc_domain->max_accounts %>">
% } else {
<TR>
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 #<B><% $svcnum %></B>
% }
+% if ( $svc_domain->quota ) {
+ <TR>
+ <TD ALIGN="right">Quota</TD>
+ <TD BGCOLOR="#ffffff"><% $svc_domain->quota %></TD>
+ </TR>
+% }
+
% if ( $communigate && $svc_domain->max_accounts ) {
<TR>
<TD ALIGN="right">Maximum number of Accounts</TD>