Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r8413: LJSUP-5756: acctedit.bml flags

Committer: esavintcev
LJSUP-5756: acctedit.bml flags
U   trunk/htdocs/admin/accounts/acctedit.bml
Modified: trunk/htdocs/admin/accounts/acctedit.bml
===================================================================
--- trunk/htdocs/admin/accounts/acctedit.bml	2010-04-01 04:17:09 UTC (rev 8412)
+++ trunk/htdocs/admin/accounts/acctedit.bml	2010-04-01 08:29:45 UTC (rev 8413)
@@ -351,6 +351,7 @@
         $ret .= "</td></tr>";
     }
 
+	my $flag_span = 1;
     foreach my $class ('LJ::Pay::Payment::PayItem::Addon::Userpics::Small', 'LJ::Pay::Payment::PayItem::Addon::Userpics::Large') {
         my $bitem = $class->get_item_data();
         my $itemname = $bitem->{item_name};
@@ -370,15 +371,18 @@
         $size += 0;
         $daysleft += 0;
 
-        $ret .= "<td>";
-        if (defined $bit) {
-            $ret .= LJ::html_check({ 'type' => 'check', 'name' => "cap_${bit}_set",
-                                     'id' => "cap_${bit}_set", 'value' => 1,
-                                     'selected' => $has_cap });
-        } else {
-            $ret .= "&nbsp;";
-        }
-        $ret .= "</td>";
+        if ($flag_span)  {
+			$ret .= "<td rowspan='2'>";
+	        if (defined $bit) {
+	            $ret .= LJ::html_check({ 'type' => 'check', 'name' => "cap_${bit}_set",
+	                                     'id' => "cap_${bit}_set", 'value' => 1,
+	                                     'selected' => $has_cap });
+	        } else {
+	            $ret .= "&nbsp;";
+	        }
+	        $ret .= "</td>";
+		}
+		$flag_span = 0;
 
         my $rec_set = 0;
         if ($rec) {
@@ -386,6 +390,7 @@
             $rec_set = 1 if $it && $it->get_recflag eq 'on';
         }
 
+
         $ret .= "<td>";
         $ret .= $class->is_recbillable ? LJ::html_check({ 'type' => 'check', 'name' => "rec_${itemname}_set",
                                  'id' => "rec_${bit}_set", 'value' => 1,

Tags: bml, ljcom, savintsev_egor
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments