diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-11-12 19:24:13 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-11-12 19:24:13 -0800 |
commit | d8950e63d6c3f6fb910c28077e3a3e054ad12388 (patch) | |
tree | a269726f8cbdb7a40e269bbc8d097c7cb5e65bd3 /httemplate | |
parent | 051101dc91e9d6164cda897495880c8f2f7705be (diff) |
add svc_domain.quota, RT#30832
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/svc_domain.cgi | 11 | ||||
-rw-r--r-- | httemplate/edit/svc_domain/communigate-basics.html | 2 | ||||
-rw-r--r-- | httemplate/view/svc_domain/basics.html | 7 |
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> |