Author: jaimesuez
Date: 2010-04-19 17:41:19 +0200 (Mon, 19 Apr 2010)
New Revision: 29211

Modified:
   
plugins/sfDoctrineAjaxFormPlugin/lib/widget/sfWidgetFormDinamicEmbeddedForm.class.php
   
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_default.php
   
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_table.php
Log:
EMBEDDED FORMS:
  Opciones
    create_text: texto usado para crear nueva form embebida

Modified: 
plugins/sfDoctrineAjaxFormPlugin/lib/widget/sfWidgetFormDinamicEmbeddedForm.class.php
===================================================================
--- 
plugins/sfDoctrineAjaxFormPlugin/lib/widget/sfWidgetFormDinamicEmbeddedForm.class.php
       2010-04-19 15:32:16 UTC (rev 29210)
+++ 
plugins/sfDoctrineAjaxFormPlugin/lib/widget/sfWidgetFormDinamicEmbeddedForm.class.php
       2010-04-19 15:41:19 UTC (rev 29211)
@@ -64,6 +64,7 @@
     $this->addOption('credentials', false);
     $this->addOption('unset', array());
     $this->addOption('thumbnail', null);
+    $this->addOption('create_text', null);
 
     $this->addOption('with_hide', true);
     $this->addOption('initial_embedded', 0);
@@ -100,6 +101,7 @@
     $partial = $this->getOption('partial');
     $create_partial = $this->getOption('create_partial');
     $thumbnail = $this->getOption('thumbnail');
+    $create_text = $this->getOption('create_text');
     $with_hide = $this->getOption('with_hide');
     $initial_embedded = $this->getOption('initial_embedded');
 
@@ -158,10 +160,10 @@
             'columns' => $columns,
             'credentials' => $credentials,
             'thumbnail' => $thumbnail,
+            "create_text" => $create_text,
             'create_partial' => $create_partial,
             "with_hide" => $with_hide,
             "initial_embedded" => $initial_embedded,
-
     ));
   }
 }

Modified: 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_default.php
===================================================================
--- 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_default.php
  2010-04-19 15:32:16 UTC (rev 29210)
+++ 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_default.php
  2010-04-19 15:41:19 UTC (rev 29211)
@@ -18,7 +18,7 @@
   <img style="display:none" src="/sfDoctrinePlugin/images/delete.png" 
id="<?php echo $module ?>_form_<?php echo $widget_name ?>_delete" />
   <?php endif ?>
   <?php if ($form[$embedded_name]->count() < $number_embedded): ?>
-  <a id="<?php echo $module ?>_form_<?php echo $widget_name ?>_crear" 
style="cursor:pointer;">Crear <?php echo $widget_name ?></a>
+  <a id="<?php echo $module ?>_form_<?php echo $widget_name ?>_crear" 
style="cursor:pointer;"><?php echo is_null($create_text) ? "Crear $widget_name" 
: $create_text ?></a>
   <?php endif ?>
 </div>
 

Modified: 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_table.php
===================================================================
--- 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_table.php
    2010-04-19 15:32:16 UTC (rev 29210)
+++ 
plugins/sfDoctrineAjaxFormPlugin/modules/ajax_form/templates/_autocomplete_with_embedded_forms_table.php
    2010-04-19 15:41:19 UTC (rev 29211)
@@ -14,7 +14,7 @@
   <?php if ($is_autocomplete): ?>
   <img style="display:none" src="/sfDoctrinePlugin/images/delete.png" 
id="<?php echo $module ?>_form_<?php echo $widget_name ?>_delete" />
   <?php endif ?>
-  <a id="<?php echo $module ?>_form_<?php echo $widget_name ?>_crear" 
style="cursor:pointer;">Crear <?php echo $widget_name ?></a>
+  <a id="<?php echo $module ?>_form_<?php echo $widget_name ?>_crear" 
style="cursor:pointer;"><?php echo is_null($create_text) ? "Crear $widget_name" 
: $create_text ?></a>
 </div>
 
 <!--###############################  EMBEDDED FORMS 
################################## -->

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