Author: jablko
Date: Tue Sep 29 16:15:34 2009
New Revision: 3604

Log:
Add help text to render_field() helper

Modified:
   trunk/apps/qubit/lib/helper/QubitHelper.php

Modified: trunk/apps/qubit/lib/helper/QubitHelper.php
==============================================================================
--- trunk/apps/qubit/lib/helper/QubitHelper.php Tue Sep 29 16:13:19 2009        
(r3603)
+++ trunk/apps/qubit/lib/helper/QubitHelper.php Tue Sep 29 16:15:34 2009        
(r3604)
@@ -57,11 +57,11 @@
 function render_field($field, $object, array $options = array())
 {
   $options += array('name' => $field->getName());
-  $source = null;
 
+  $div = null;
   if (isset($object) && sfContext::getInstance()->user->getCulture() != 
$object->sourceCulture && 0 < strlen($source = $object->__get($options['name'], 
array('sourceCulture' => true))))
   {
-    $source = <<<EOF
+    $div = <<<EOF
 <div class="default-translation">
   $source
 </div>
@@ -74,8 +74,9 @@
   return <<<EOF
 <div class="form-item">
   {$field->renderLabel()}
-  $source
+  $div
   {$field->render($options)}
+  {$field->renderHelp()}
 </div>
 
 EOF;

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to