diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2021-07-08 09:51:30 -0700 | 
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2021-07-08 09:51:30 -0700 | 
| commit | 73efa3f9ae88599d1c537cb8d050834d0bfcedba (patch) | |
| tree | e3ead3755b7716f59d0c0cbb9615c74a7abc5429 | |
| parent | eb52ebdbdecd0f1861f92e29a61b29f825444dc2 (diff) | |
4.x style
| -rwxr-xr-x | httemplate/edit/part_pkg.cgi | 14 | ||||
| -rw-r--r-- | httemplate/elements/columnnext.html | 8 | ||||
| -rw-r--r-- | httemplate/elements/columnstart.html | 2 | ||||
| -rw-r--r-- | httemplate/elements/tr-justtitle.html | 6 | ||||
| -rw-r--r-- | httemplate/elements/tr-pkg_svc.html | 18 | 
5 files changed, 26 insertions, 22 deletions
| diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 8257fa23e..f4291f066 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -206,9 +206,8 @@                       #recurring frequency                       #recurring fee (auto-disable) -                   { type => 'columnnext' }, +                   { type => 'columnnext', value=>'Taxation', }, -                     {type=>'justtitle', value=>'Taxation' },                       {field=>'setuptax', type=>'checkbox', value=>'Y'},                       {field=>'recurtax', type=>'checkbox', value=>'Y'},                       {field=>'taxclass', type=>'select-taxclass' }, @@ -256,9 +255,7 @@                           )                       ), -                   { type => 'columnnext' }, - -                     {type=>'justtitle', value=>'Agent (reseller) types' }, +                   { type => 'columnnext', value=>'Agent (reseller) types' },                       { field       => 'agent_type',                         type        => 'select-agent_type', @@ -870,8 +867,9 @@ my $javascript = <<'END';          supp_pkg_rows[0].style.display = 'none';          var button = document.getElementById('show_supp_pkgs');          button.onclick = show_supp_pkgs_click; -        button.style.backgroundColor = '#cccccc'; -        button.style.border = '1px solid #7e0079'; +        //button.style.backgroundColor = '#cccccc'; +        //button.style.border = '1px solid #7e0079'; +        button.style.border = 'thin solid #999999';          button.style.padding = '1px';        }      } @@ -927,7 +925,7 @@ my $html_bottom = sub {    my $layer_callback = sub {      my $layer = shift; -    my $html = ntable("#cccccc",2); +    my $html = '<TABLE CLASS="fsinnerbox">';      #$html .= '      #  <TR> diff --git a/httemplate/elements/columnnext.html b/httemplate/elements/columnnext.html index 4dfe82fd8..da8286e64 100644 --- a/httemplate/elements/columnnext.html +++ b/httemplate/elements/columnnext.html @@ -1,4 +1,10 @@            </TABLE>          </TD>          <TD VALIGN="top" STYLE="padding-left:12px"> -          <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0> +          <FONT CLASS="fsinnerbox-title"><% $opt{value} %></FONT><BR> +          <TABLE CLASS="fsinnerbox"> +<%init> + +my %opt = @_; + +</%init> diff --git a/httemplate/elements/columnstart.html b/httemplate/elements/columnstart.html index 245c308a7..40f7cad40 100644 --- a/httemplate/elements/columnstart.html +++ b/httemplate/elements/columnstart.html @@ -16,7 +16,7 @@ Pass 'aligned' => 1 to have corresponding rows in the columns line up.      <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 id="<%$id%>">        <TR>          <TD VALIGN="top"> -          <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0> +          <TABLE CLASS="fsinnerbox">  % if ( $aligned ) {  %# Instead of changing all the tr-* elements to sometimes output table  %# cells without wrapping them in a row, we're just going to completely diff --git a/httemplate/elements/tr-justtitle.html b/httemplate/elements/tr-justtitle.html index b87f7e128..316ea69a8 100644 --- a/httemplate/elements/tr-justtitle.html +++ b/httemplate/elements/tr-justtitle.html @@ -1,7 +1,7 @@  <TR> -  <TH CLASS="background" COLSPAN=<% $opt{colspan} || 2 %> ALIGN="left" <%$id%>> -    <FONT SIZE="+1"><% $opt{value} %></FONT> -  </TH> +  <TD CLASS="background" COLSPAN=<% $opt{colspan} || 2 %> ALIGN="left" <%$id%>> +    <FONT CLASS="fsinnerbox-title"><% $opt{value} %></FONT> +  </TD>  </TR>  <%init> diff --git a/httemplate/elements/tr-pkg_svc.html b/httemplate/elements/tr-pkg_svc.html index de3f95a3a..232454576 100644 --- a/httemplate/elements/tr-pkg_svc.html +++ b/httemplate/elements/tr-pkg_svc.html @@ -131,8 +131,8 @@ provision_hold_init();  % if ( scalar(@possible_exports) > 0 || scalar(@mapped_exports) > 0 ) {     <TABLE><TR> -	<TH BGCOLOR="#dcdcdc">Export</TH> -	<TH BGCOLOR="#dcdcdc">Vendor Package Id <FONT SIZE="-2">(blank to delete)</FONT></TH> +	<TH>Export</TH> +	<TH>Vendor Package Id <FONT SIZE="-2">(blank to delete)</FONT></TH>  	</TR>  %   foreach my $export ( @mapped_exports ) {  	<TR> @@ -166,14 +166,14 @@ my $cgi = $opt{'cgi'};  my $thead_count = 0;  sub pkg_svc_thead {    $thead_count += 1; -  return "\n\n". ntable('#cccccc', 2). +  return "\n\n". '<TABLE CLASS="fsinnerbox">'.           '<TR>'. -         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH>'. -         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Primary</FONT></TH>'. -         '<TH BGCOLOR="#dcdcdc">Service</TH>'. -         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH>'. -         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Bulk<BR>Charge</FONT></TH>'. -         '<TH BGCOLOR="#dcdcdc" ID="th_provision_hold' . $thead_count . '"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH>'. +         '<TH><FONT SIZE=-1>Quan.</FONT></TH>'. +         '<TH><FONT SIZE=-1>Primary</FONT></TH>'. +         '<TH>Service</TH>'. +         '<TH><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH>'. +         '<TH><FONT SIZE=-1>Bulk<BR>Charge</FONT></TH>'. +         '<TH ID="th_provision_hold' . $thead_count . '"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH>'.           '</TR>'.           qq!<SCRIPT>provision_hold_td.push(document.getElementById('th_provision_hold$thead_count'))</SCRIPT>!;  ; | 
