Author: sid.gbf
Date: 2010-04-12 13:19:41 +0200 (Mon, 12 Apr 2010)
New Revision: 29085

Modified:
   
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
   
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/widget/sfWidgetFormjQueryDatePicker.class.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-04-12 09:05:11 UTC (rev 29084)
+++ 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/data/generator/sfDoctrineModule/javascript/template/templates/_form_field.php
   2010-04-12 11:19:41 UTC (rev 29085)
@@ -23,22 +23,23 @@
 [?php else: ?]
   <div class="[?php echo $class ?][?php $form[$name]->hasError() and print ' 
errors' ?]">
     [?php $placeholder = 
$form[$name]->getWidget()->getAttribute('placeholder'); ?]
-    [?php $help = $form[$name]->getWidget()->getAttribute('help', false); ?]
+    [?php $help = $form[$name]->getWidget()->getAttribute('help'); ?]
     [?php if (!$help): ?]
       [?php if ($form[$name]->renderHelp()): ?]
         [?php $help = fix_help($form[$name]->renderHelp()); ?]
       [?php else: ?]
-        [?php $help = getDefaultHint(); ?]
+        [?php $help = '<em>'.getDefaultHint().'</em>'; ?]
       [?php endif; ?]
     [?php else: ?]
-      [?php $help = __($help); ?]
+      [?php $help = '<em>'.__($help).'</em>'; ?]
     [?php endif; ?]
     [?php if(!$placeholder): ?]
     [?php   $placeholder = $help; ?]
     [?php else: ?]
-    [?php   $placeholder = __($placeholder); ?]
+    [?php   $placeholder = '<em>'.__($placeholder).'</em>'; ?]
     [?php endif; ?]
-    [?php   $placeholder = '<em>' . $placeholder . '</em>'; ?]
+
+    [?php echo $form[$name]->renderError() ?]
     <div>
       [?php echo $form[$name]->renderLabel($label) ?]
       <input type="hidden" readonly="readonly" disabled="disabled" 
value='[?php echo $placeholder; ?]' id="[?php echo $form[$name]->renderId(); 
?]_placeholder" />
@@ -52,7 +53,7 @@
           <div class="contents">[?php echo $form[$name]->render($attributes 
instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes, 
$placeholder) ?]</div>
 
           [?php if ($help): ?]
-            <div class="help"><em>[?php echo $help ?]</em></div>
+            <div class="help">[?php echo $help ?]</div>
           [?php endif; ?]
       </div>
     </div>

Modified: 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/widget/sfWidgetFormjQueryDatePicker.class.php
===================================================================
--- 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/widget/sfWidgetFormjQueryDatePicker.class.php
       2010-04-12 09:05:11 UTC (rev 29084)
+++ 
plugins/sfjQueryDoctrineAdminPlugin/tag/0.1/lib/widget/sfWidgetFormjQueryDatePicker.class.php
       2010-04-12 11:19:41 UTC (rev 29085)
@@ -84,7 +84,12 @@
   {
     jQuery("#%s").val(parseInt(date.substring(0, 4)));
     jQuery("#%s").val(parseInt(date.substring(5, 7)));
-    jQuery("#%s").val(parseInt(date.substring(8)));
+    //jQuery("#%s").val(parseInt(date.substring(8)));
+    var day = date.substring(8);
+    if(day[0] == "0")
+      day = day[1]
+    jQuery("#%s").val(day);
+    jQuery("#%s").val();
   }
 
   function wfd_%s_check_linked_days()
@@ -121,6 +126,7 @@
       $this->generateId($name.'[year]'), $this->generateId($name.'[month]'), 
$this->generateId($name.'[day]'),
       $prefix,
       $this->generateId($name.'[year]'), $this->generateId($name.'[month]'), 
$this->generateId($name.'[day]'),
+      $this->generateId($name.'[day]'), $this->generateId($name.'[day]'),
       $prefix,
       $this->generateId($name.'[year]'), $this->generateId($name.'[month]'),
       $this->generateId($name.'[day]'), $this->generateId($name.'[day]'),
@@ -136,8 +142,8 @@
   }
     public function getJavaScripts() {
       $array = parent::getJavaScripts();
-      $array[] = '../sfJqueryReloadedPlugin/js/ui/ui.datepicker.min.js';
-      $array[] = 
'../sfJqueryReloadedPlugin/js/i18n/ui.datepicker-'.$this->getOption('culture').'.js';
+      $array[] = '../sfJqueryReloadedPluginExtra/js/ui/ui.datepicker.min.js';
+      $array[] = 
'../sfJqueryReloadedPluginExtra/js/i18n/ui.datepicker-'.$this->getOption('culture').'.js';
 
       return $array;
     }

-- 
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