Author: sevein
Date: Fri Aug 19 12:32:51 2011
New Revision: 9550

Log:
Rename component

Added:
   trunk/apps/qubit/modules/contactinformation/actions/editComponent.class.php
      - copied, changed from r9542, 
trunk/apps/qubit/modules/contactinformation/actions/relatedContactInformationComponent.class.php
   trunk/apps/qubit/modules/contactinformation/templates/_edit.php
      - copied, changed from r9543, 
trunk/apps/qubit/modules/contactinformation/templates/_relatedContactInformation.php
Deleted:
   
trunk/apps/qubit/modules/contactinformation/actions/relatedContactInformationComponent.class.php
   
trunk/apps/qubit/modules/contactinformation/templates/_relatedContactInformation.php
Modified:
   trunk/apps/qubit/modules/repository/actions/editAction.class.php
   trunk/apps/qubit/modules/rightsholder/actions/editAction.class.php
   trunk/apps/qubit/modules/rightsholder/templates/editSuccess.php
   trunk/plugins/qtAccessionPlugin/modules/donor/actions/editAction.class.php
   trunk/plugins/qtAccessionPlugin/modules/donor/templates/editSuccess.php
   trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php

Copied and modified: 
trunk/apps/qubit/modules/contactinformation/actions/editComponent.class.php 
(from r9542, 
trunk/apps/qubit/modules/contactinformation/actions/relatedContactInformationComponent.class.php)
==============================================================================
--- 
trunk/apps/qubit/modules/contactinformation/actions/relatedContactInformationComponent.class.php
    Thu Aug 18 23:56:13 2011        (r9542, copy source)
+++ trunk/apps/qubit/modules/contactinformation/actions/editComponent.class.php 
Fri Aug 19 12:32:51 2011        (r9550)
@@ -17,7 +17,7 @@
  * along with Qubit Toolkit.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-class ContactInformationRelatedContactInformationComponent extends sfComponent
+class ContactInformationEditComponent extends sfComponent
 {
   // Arrays not allowed in class constants
   public static
@@ -86,7 +86,7 @@
   }
 
   public function processForm()
-  { // echo "<pre>"; var_dump($_POST); die();
+  {
     // HACK For now, parameter name and action name are the same. Should
     // really be configurable, ideally by interpreting
     // $form->getWidgetSchema()->getNameFormat()?
@@ -158,7 +158,7 @@
   {
     $this->form = new sfForm;
     $this->form->getValidatorSchema()->setOption('allow_extra_fields', true);
-    
$this->form->getWidgetSchema()->setNameFormat('relatedContactInformation[%s]');
+    
$this->form->getWidgetSchema()->setNameFormat('editContactInformation[%s]');
 
     foreach ($this::$NAMES as $name)
     {

Copied and modified: 
trunk/apps/qubit/modules/contactinformation/templates/_edit.php (from r9543, 
trunk/apps/qubit/modules/contactinformation/templates/_relatedContactInformation.php)
==============================================================================
--- 
trunk/apps/qubit/modules/contactinformation/templates/_relatedContactInformation.php
        Fri Aug 19 11:05:19 2011        (r9543, copy source)
+++ trunk/apps/qubit/modules/contactinformation/templates/_edit.php     Fri Aug 
19 12:32:51 2011        (r9550)
@@ -12,7 +12,7 @@
 
 <div class="section">
 
-  <table id="relatedContactInformations">
+  <table id="contactInformations">
     <caption>
       <?php echo __('Related contact informations') ?>
     </caption><thead>
@@ -57,16 +57,16 @@
 
 echo javascript_tag(<<<content
 
-Drupal.behaviors.relatedContactInformation = {
+Drupal.behaviors.contactInformation = {
   attach: function (context)
     {
       // Define dialog
       var dialog = new QubitDialog('contactInformationRelation', {
-        'displayTable': 'relatedContactInformations',
+        'displayTable': 'contactInformations',
         'newRowTemplate': $rowTemplate });
 
       // Add edit button to rows
-      jQuery('#relatedContactInformations tr[id]', context)
+      jQuery('#contactInformations tr[id]', context)
         .click(function ()
           {
             dialog.open(this.id);

Modified: trunk/apps/qubit/modules/repository/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/editAction.class.php    Fri Aug 
19 12:19:08 2011        (r9549)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php    Fri Aug 
19 12:32:51 2011        (r9550)
@@ -65,9 +65,9 @@
       }
     }
 
-    $this->relatedContactInformationComponent = new 
ContactInformationRelatedContactInformationComponent($this->context, 
'contactinformation', 'relatedContactInformation');
-    $this->relatedContactInformationComponent->resource = $this->resource;
-    $this->relatedContactInformationComponent->execute($this->request);
+    $this->contactInformationEditComponent = new 
ContactInformationEditComponent($this->context, 'contactinformation', 
'editContactInformation');
+    $this->contactInformationEditComponent->resource = $this->resource;
+    $this->contactInformationEditComponent->execute($this->request);
   }
 
   protected function addField($name)
@@ -276,7 +276,7 @@
       $this->form->bind($request->getPostParameters());
       if ($this->form->isValid())
       {
-        $this->relatedContactInformationComponent->processForm();
+        $this->contactInformationEditComponent->processForm();
 
         $this->processForm();
 

Modified: trunk/apps/qubit/modules/rightsholder/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/rightsholder/actions/editAction.class.php  Fri Aug 
19 12:19:08 2011        (r9549)
+++ trunk/apps/qubit/modules/rightsholder/actions/editAction.class.php  Fri Aug 
19 12:32:51 2011        (r9550)
@@ -73,9 +73,9 @@
 
     $this->response->setTitle("$title - {$this->response->getTitle()}");
 
-    $this->relatedContactInformationComponent = new 
ContactInformationRelatedContactInformationComponent($this->context, 
'contactinformation', 'relatedContactInformation');
-    $this->relatedContactInformationComponent->resource = $this->resource;
-    $this->relatedContactInformationComponent->execute($this->request);
+    $this->contactInformationEditComponent = new 
ContactInformationEditComponent($this->context, 'contactinformation', 
'editContactInformation');
+    $this->contactInformationEditComponent->resource = $this->resource;
+    $this->contactInformationEditComponent->execute($this->request);
   }
 
   protected function addField($name)
@@ -105,7 +105,7 @@
 
       if ($this->form->isValid())
       {
-        $this->relatedContactInformationComponent->processForm();
+        $this->contactInformationEditComponent->processForm();
 
         $this->processForm();
 

Modified: trunk/apps/qubit/modules/rightsholder/templates/editSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/rightsholder/templates/editSuccess.php     Fri Aug 
19 12:19:08 2011        (r9549)
+++ trunk/apps/qubit/modules/rightsholder/templates/editSuccess.php     Fri Aug 
19 12:32:51 2011        (r9550)
@@ -25,7 +25,7 @@
 
     <legend><?php echo __('Contact area') ?></legend>
 
-    <?php echo get_partial('contactinformation/relatedContactInformation', 
$relatedContactInformationComponent->getVarHolder()->getAll()) ?>
+    <?php echo get_partial('contactinformation/edit', 
$contactInformationEditComponent->getVarHolder()->getAll()) ?>
     
   </fieldset>
 

Modified: 
trunk/plugins/qtAccessionPlugin/modules/donor/actions/editAction.class.php
==============================================================================
--- trunk/plugins/qtAccessionPlugin/modules/donor/actions/editAction.class.php  
Fri Aug 19 12:19:08 2011        (r9549)
+++ trunk/plugins/qtAccessionPlugin/modules/donor/actions/editAction.class.php  
Fri Aug 19 12:32:51 2011        (r9550)
@@ -73,9 +73,9 @@
 
     $this->response->setTitle("$title - {$this->response->getTitle()}");
 
-    $this->relatedContactInformationComponent = new 
ContactInformationRelatedContactInformationComponent($this->context, 
'contactinformation', 'relatedContactInformation');
-    $this->relatedContactInformationComponent->resource = $this->resource;
-    $this->relatedContactInformationComponent->execute($this->request);
+    $this->contactInformationEditComponent = new 
ContactInformationEditComponent($this->context, 'contactinformation', 
'editContactInformation');
+    $this->contactInformationEditComponent->resource = $this->resource;
+    $this->contactInformationEditComponent->execute($this->request);
   }
 
   protected function addField($name)
@@ -105,7 +105,7 @@
 
       if ($this->form->isValid())
       {
-        $this->relatedContactInformationComponent->processForm();
+        $this->contactInformationEditComponent->processForm();
 
         $this->processForm();
 

Modified: 
trunk/plugins/qtAccessionPlugin/modules/donor/templates/editSuccess.php
==============================================================================
--- trunk/plugins/qtAccessionPlugin/modules/donor/templates/editSuccess.php     
Fri Aug 19 12:19:08 2011        (r9549)
+++ trunk/plugins/qtAccessionPlugin/modules/donor/templates/editSuccess.php     
Fri Aug 19 12:32:51 2011        (r9550)
@@ -25,7 +25,7 @@
 
     <legend><?php echo __('Contact area') ?></legend>
 
-    <?php echo get_partial('contactinformation/relatedContactInformation', 
$relatedContactInformationComponent->getVarHolder()->getAll()) ?>
+    <?php echo get_partial('contactinformation/edit', 
$contactInformationEditComponent->getVarHolder()->getAll()) ?>
     
   </fieldset>
 

Modified: 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php   
    Fri Aug 19 12:19:08 2011        (r9549)
+++ 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/editSuccess.php   
    Fri Aug 19 12:32:51 2011        (r9550)
@@ -45,7 +45,7 @@
 
     <legend><?php echo __('Contact area') ?></legend>
 
-    <?php echo get_partial('contactinformation/relatedContactInformation', 
$relatedContactInformationComponent->getVarHolder()->getAll()) ?>
+    <?php echo get_partial('contactinformation/edit', 
$contactInformationEditComponent->getVarHolder()->getAll()) ?>
 
     <div class="description">
       <?php echo __('See ISDIAH 5.2 for contact area information and 
examples.') ?>

-- 
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.com/group/qubit-commits?hl=en.

Reply via email to