]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Update to edit Groups page for ECML and longtext controls positioning.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 26 Apr 2010 14:13:23 +0000 (14:13 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 26 Apr 2010 14:13:23 +0000 (14:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5876 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/views/default/forms/groups/edit.php

index 3712add820182ece64de266f42b1dad6201f3d4c..c0c9591f396b17f50ceccd1f21178513aaafaf12 100644 (file)
        </p>
 <?php
 
-       //var_export($vars['profile']);
-       if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0)
-               foreach($vars['config']->group as $shortname => $valtype) {
-                       
+//var_export($vars['profile']);
+if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0)
+       foreach($vars['config']->group as $shortname => $valtype) {
+       if ($shortname == 'description') {
 ?>
-
-       <p>
-               <label>
-                       <?php echo elgg_echo("groups:{$shortname}") ?><br />
-                       <?php echo elgg_view("input/{$valtype}",array(
-                                                                                                                       'internalname' => $shortname,
-                                                                                                                       'value' => $vars['entity']->$shortname,
-                                                                                                                       )); ?>
-               </label>
+       <p><label>
+       <?php echo elgg_echo("groups:{$shortname}") ?></label>
+       <?php echo elgg_view("input/{$valtype}",array(
+                                               'internalname' => $shortname,
+                                               'value' => $vars['entity']->$shortname,
+                                               )); ?>
        </p>
-
+<?php                  
+       } else {
+?>
+       <p><label>
+       <?php echo elgg_echo("groups:{$shortname}") ?><br />
+       <?php echo elgg_view("input/{$valtype}",array(
+                                               'internalname' => $shortname,
+                                               'value' => $vars['entity']->$shortname,
+                                               )); ?>
+       </label></p>
 <?php
-                       
-               }
-
+       }
+}
 ?>
 
        <p>