Author: sid.gbf
Date: 2010-03-31 16:15:18 +0200 (Wed, 31 Mar 2010)
New Revision: 28923

Modified:
   
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
   
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
Log:


Modified: 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
===================================================================
--- 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
   2010-03-31 13:53:45 UTC (rev 28922)
+++ 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
   2010-03-31 14:15:18 UTC (rev 28923)
@@ -1,4 +1,5 @@
 [?php $force_show = isset($force_show); ?]
+
 [?php if (!$force_show && $field->isPartial()): ?]
   [?php include_partial('<?php echo $this->getModuleName() ?>/'.$name, 
array('form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? 
$attributes->getRawValue() : $attributes)) ?]
 [?php elseif (!$force_show && $field->isComponent()): ?]

Modified: 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
===================================================================
--- 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
    2010-03-31 13:53:45 UTC (rev 28922)
+++ 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/helper/JavascriptAdminHelper.php
    2010-03-31 14:15:18 UTC (rev 28923)
@@ -8,9 +8,12 @@
 
     if($field->getWidget()->hasOption('choices') && $field->getValue()) {
       $class = $field->getWidget()->getOption('model');
-      $value = Doctrine::getTable($class)->findOneBy('id', $field->getValue());
+      if($class)
+        $value = Doctrine::getTable($class)->findOneBy('id', 
$field->getValue());
+    } else if($field->getWidget()->getOption('type') == 'file') {
+      $value = $help;
     } else if($field->getWidget()->getOption('type') == 'checkbox') {
-        $value = ($field->getValue())?__('Sim'):__('Não');
+      $value = ($field->getValue())?__('Sim'):__('Não');
     } else if($field->getValue()) {
       switch($field->getWidget()->getOption('type')) {
         default: {

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" 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.com/group/symfony-svn?hl=en.

Reply via email to