Author: jablko
Date: Wed Oct 20 16:41:27 2010
New Revision: 8340

Log:
Cosmetic change, use json_encode()

Modified:
   trunk/apps/qubit/modules/informationobject/templates/_event.php
   trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
   trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php

Modified: trunk/apps/qubit/modules/informationobject/templates/_event.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_event.php     Wed Oct 
20 16:12:29 2010        (r8339)
+++ trunk/apps/qubit/modules/informationobject/templates/_event.php     Wed Oct 
20 16:41:27 2010        (r8340)
@@ -5,17 +5,21 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->actor->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->type->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">
+  <td>
+    {{$form->actor->renderName()}}
+  </td><td>
+    {{$form->type->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 // Omit edit button if object is being duplicated
 $editButtonJs = null;
@@ -75,7 +79,7 @@
       // Define dialog
       var dialog = new QubitDialog('updateEvent', {
         'displayTable': 'relatedEvents',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender });
 
       $editButtonJs

Modified: trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php      
Wed Oct 20 16:12:29 2010        (r8339)
+++ trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php      
Wed Oct 20 16:41:27 2010        (r8340)
@@ -47,17 +47,21 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->informationObject->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->type->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">
+  <td>
+    {{$form->informationObject->renderName()}}
+  </td><td>
+    {{$form->type->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 echo javascript_tag(<<<content
 Drupal.behaviors.event = {
@@ -96,7 +100,7 @@
       // Define dialog
       var dialog = new QubitDialog('resourceRelation', {
         'displayTable': 'relatedEvents',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender });
 
       // Add edit button to rows

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Wed Oct 20 16:12:29 2010        (r8339)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Wed Oct 20 16:41:27 2010        (r8340)
@@ -53,19 +53,23 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->resource->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->type->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->description->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">"
+  <td>
+    {{$form->resource->renderName()}}
+  </td><td>
+    {{$form->type->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td>
+    {{$form->description->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 $url = url_for(array($resource, 'module' => 'actor'));
 
@@ -132,7 +136,7 @@
       // Define dialog
       var dialog = new QubitDialog('actorRelation', {
         'displayTable': 'relatedEntities',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender,
         'relationTableMap': relationTableMap });
 

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Wed Oct 20 16:12:29 2010        (r8339)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Wed Oct 20 16:41:27 2010        (r8340)
@@ -45,17 +45,21 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->resource->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->description->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">"
+  <td>
+    {{$form->resource->renderName()}}
+  </td><td>
+    {{$form->description->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 echo javascript_tag(<<<content
 Drupal.behaviors.relatedAuthorityRecord = {
@@ -64,7 +68,7 @@
       // Define dialog
       var dialog = new QubitDialog('relatedEntity', {
         'displayTable': 'relatedEntityDisplay',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender });
 
       // Add edit button to rows

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Wed Oct 20 16:12:29 2010        (r8339)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Wed Oct 20 16:41:27 2010        (r8340)
@@ -53,19 +53,23 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->resource->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->type->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->description->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">"
+  <td>
+    {{$form->resource->renderName()}}
+  </td><td>
+    {{$form->type->renderName()}}
+  </td><td>
+    {{$form->description->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 $url = url_for(array($resource, 'module' => 'function'));
 
@@ -132,7 +136,7 @@
       // Define dialog
       var dialog = new QubitDialog('functionRelation', {
         'displayTable': 'relatedFunctions',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender,
         'relationTableMap': relationTableMap });
 

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Wed Oct 20 16:12:29 2010        (r8339)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Wed Oct 20 16:41:27 2010        (r8340)
@@ -45,17 +45,21 @@
 // Template for new display table rows
 $editHtml = image_tag('pencil', array('alt' => 'edit', 'style' => 'align: 
top'));
 
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
-  .'  <td>'
-  ."    {{$form->resource->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->description->renderName()}}"
-  .'  </td><td>'
-  ."    {{$form->dateDisplay->renderName()}}"
-  .'  </td><td style="text-align: right">'
-  ."    $editHtml <button class=\"delete-small\" name=\"delete\" 
type=\"button\"/>"
-  .'  </td>'
-  .'</tr>';
+$rowTemplate = json_encode(<<<value
+<tr id="{{$form->getWidgetSchema()->generateName('id')}}">"
+  <td>
+    {{$form->resource->renderName()}}
+  </td><td>
+    {{$form->description->renderName()}}
+  </td><td>
+    {{$form->dateDisplay->renderName()}}
+  </td><td style="text-align: right">
+    $editHtml <button class="delete-small" name="delete" type="button"/>
+  </td>
+</tr>
+
+value
+);
 
 echo javascript_tag(<<<content
 Drupal.behaviors.relatedResource = {
@@ -64,7 +68,7 @@
       // Define dialog
       var dialog = new QubitDialog('relatedResource', {
         'displayTable': 'relatedResourceDisplay',
-        'newRowTemplate': '$rowTemplate',
+        'newRowTemplate': $rowTemplate,
         'handleFieldRender': handleFieldRender });
 
       // Add edit button to rows

Modified: 
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php   
Wed Oct 20 16:12:29 2010        (r8339)
+++ trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/editSuccess.php   
Wed Oct 20 16:41:27 2010        (r8340)
@@ -70,7 +70,9 @@
       </tbody>
     </table>
 
-    <div class="description"><?php echo __('Use these two fields to add lower 
levels to a collection-level description. Click Add new to add as many child 
levels as necessary. Identifer: enter a unique standard number or code that 
distinctively identifies the resource. Title: enter A word, phrase, character, 
or group of characters, normally appearing in a resource, that names it or the 
work contained in it.') ?></div>
+    <div class="description">
+      <?php echo __('Use these two fields to add lower levels to a 
collection-level description. Click Add new to add as many child levels as 
necessary. Identifer: enter a unique standard number or code that distinctively 
identifies the resource. Title: enter A word, phrase, character, or group of 
characters, normally appearing in a resource, that names it or the work 
contained in it.') ?>
+    </div>
 
   </div>
 

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