[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-commits
Subject:    [6633] Reformatting, untabifying.
From:       theory () bricolage ! cc
Date:       2005-08-31 23:43:45
Message-ID: 20050831234345.13866.qmail () x1 ! develooper ! com
[Download RAW message or body]

Revision: 6633
Author:   theory
Date:     2005-08-31 16:43:43 -0700 (Wed, 31 Aug 2005)
ViewCVS:  http://viewsvn.bricolage.cc/?rev=6633&view=rev

Log Message:
-----------
Reformatting, untabifying.

Modified Paths:
--------------
    bricolage/trunk/comp/widgets/profile/displayAttrs.mc



["r6633-theory.diff" (r6633-theory.diff)]

Modified: bricolage/trunk/comp/widgets/profile/displayAttrs.mc
===================================================================
--- bricolage/trunk/comp/widgets/profile/displayAttrs.mc	2005-08-31 22:32:35 UTC (rev 6632)
+++ bricolage/trunk/comp/widgets/profile/displayAttrs.mc	2005-08-31 23:43:43 UTC (rev 6633)
@@ -30,53 +30,55 @@
     # Assemble any select/radio values.
     my $val_prop;
     if ( my $tmp = $attr->{meta}{vals}{value} ) {
-	foreach my $line (split /\n/, $tmp) {
-	    my ($v, $l) = split /\s*,\s*/, $line;
-	    chomp $v;
-	    push @$val_prop, [$v, $l];
-	}
-	$props->{vals} = $val_prop;
+        foreach my $line (split /\n/, $tmp) {
+            my ($v, $l) = split /\s*,\s*/, $line;
+            chomp $v;
+            push @$val_prop, [$v, $l];
+        }
+        $props->{vals} = $val_prop;
     }
 
     # Assemble the vals argument.
-    my $vals = { value => $attr->{value},
-		 props => $props,
-		 disp  => $attr->{meta}{disp}{value},
-	       };
+    my $vals = {
+        value => $attr->{value},
+        props => $props,
+        disp  => $attr->{meta}{disp}{value},
+    };
 
     $m->out(qq{<tr><td>\n});
-               
+
     # Spit out a hidden field.
     $m->comp('/widgets/profile/hidden.mc',
-	     value => $attr->{name},
-	     name => 'attr_name'
-	    ) if (!$readOnly);
+         value => $attr->{name},
+         name => 'attr_name'
+     ) if (!$readOnly);
 
     # Spit out the attribute.
     $m->comp('/widgets/profile/displayFormElement.mc',
-	     key => "attr|$attr->{name}",
-	     vals => $vals,
-	     useTable => 1,
-	     width => $width,
-	     indent => FIELD_INDENT,
-	     localize => $localize,
-	     readOnly => $readOnly
-	    );
-            
+         key => "attr|$attr->{name}",
+         vals => $vals,
+         useTable => 1,
+         width => $width,
+         indent => FIELD_INDENT,
+         localize => $localize,
+         readOnly => $readOnly
+     );
+
     $m->out("</td>");
 
     if ($usePosition) {
         $m->out(qq{<td class="position">\n});
-	$m->comp('/widgets/profile/select.mc',
-		 disp     => '',
-		 value    => $curField++,
-		 options  => $sel_opts,
-		 useTable => 0,
-		 name     => 'attr_pos',
-		 readOnly => $readOnly,
-		 js       => qq{onChange="reorder(this, '$form_name')"}
-		);
-	$m->out("</td>");
+        $m->comp(
+            '/widgets/profile/select.mc',
+            disp     => '',
+            value    => $curField++,
+            options  => $sel_opts,
+            useTable => 0,
+            name     => 'attr_pos',
+            readOnly => $readOnly,
+            js       => qq{onChange="reorder(this, '$form_name')"}
+        );
+        $m->out("</td>");
     }
 
     if ($useEdit) {
@@ -90,18 +92,19 @@
     }
 
     if ($useDelete) {
-	# And spit out a delete checkbox.
+    # And spit out a delete checkbox.
         $m->out(qq{<td class="delete">\n});
-	$m->comp('/widgets/profile/checkbox.mc',
-		 checked => 0,
-		 label_after => 1,
-		 disp => 'Delete',
-		 value => $attr->{name},
-		 name => "delete_attr",
-		 useTable => 0,
-		 readOnly => $readOnly
-		);
-	$m->out("</td>\n");
+        $m->comp(
+            '/widgets/profile/checkbox.mc',
+            checked => 0,
+            label_after => 1,
+            disp => 'Delete',
+            value => $attr->{name},
+            name => "delete_attr",
+            useTable => 0,
+            readOnly => $readOnly
+        );
+        $m->out("</td>\n");
     }
 
     $m->out("</tr>\n");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic