Author: jablko
Date: Tue Oct 19 16:53:04 2010
New Revision: 8319

Log:
Wrap in <div class="section"/>

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

Modified: trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php      
Tue Oct 19 16:45:53 2010        (r8318)
+++ trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_event.php      
Tue Oct 19 16:53:04 2010        (r8319)
@@ -1,44 +1,46 @@
 <?php use_helper('Javascript') ?>
 
-<table class="inline" id="relatedEvents">
-  <caption>
-    <?php echo __('Related resources') ?>
-  </caption><thead>
-    <tr>
-      <th style="width: 35%">
-        <?php echo __('Title') ?>
-      </th><th style="width: 20%">
-        <?php echo __('Relationship') ?>
-      </th><th style="width: 25%">
-        <?php echo __('Dates') ?>
-      </th><th style="text-align: center; width: 10%">
-        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
-      </th>
-    </tr>
-  </thead><tbody>
-    <?php foreach ($resource->getEvents() as $item): ?>
-      <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'event')) ?>">
-        <td>
-          <?php echo render_title($item->informationObject) ?>
-        </td><td>
-          <?php echo $item->type ?>
-        </td><td>
-          <?php if (isset($item->dateDisplay)): ?>
-            <?php echo $item->dateDisplay ?>
-          <?php elseif (isset($item->startDate) && isset($item->endDate)): ?>
-            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($item->startDate), '%2%' => 
Qubit::renderDate($item->endDate))) ?>
-          <?php elseif (isset($item->startDate)): ?>
-            <?php echo Qubit::renderDate($item->startDate) ?>
-          <?php elseif (isset($item->endDate)): ?>
-            <?php echo Qubit::renderDate($item->endDate) ?>
-          <?php endif; ?>
-        </td><td style="text-align: right">
-          <input class="multiDelete" name="deleteEvents[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
-        </td>
+<div class="section">
+
+  <table class="inline" id="relatedEvents">
+    <caption>
+      <?php echo __('Related resources') ?>
+    </caption><thead>
+      <tr>
+        <th style="width: 35%">
+          <?php echo __('Title') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Relationship') ?>
+        </th><th style="width: 25%">
+          <?php echo __('Dates') ?>
+        </th><th style="text-align: center; width: 10%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
       </tr>
-    <?php endforeach; ?>
-  </tbody>
-</table>
+    </thead><tbody>
+      <?php foreach ($resource->getEvents() as $item): ?>
+        <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'event')) ?>">
+          <td>
+            <?php echo render_title($item->informationObject) ?>
+          </td><td>
+            <?php echo $item->type ?>
+          </td><td>
+            <?php if (isset($item->dateDisplay)): ?>
+              <?php echo $item->dateDisplay ?>
+            <?php elseif (isset($item->startDate) && isset($item->endDate)): ?>
+              <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($item->startDate), '%2%' => 
Qubit::renderDate($item->endDate))) ?>
+            <?php elseif (isset($item->startDate)): ?>
+              <?php echo Qubit::renderDate($item->startDate) ?>
+            <?php elseif (isset($item->endDate)): ?>
+              <?php echo Qubit::renderDate($item->endDate) ?>
+            <?php endif; ?>
+          </td><td style="text-align: right">
+            <input class="multiDelete" name="deleteEvents[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+    </tbody>
+  </table>
 
 <?php
 
@@ -115,76 +117,78 @@
 content
 ) ?>
 
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<table class="inline" id="resourceRelation">
-  <tbody>
-    <tr>
-      <th colspan="3" style="width: 55%">
-        <?php echo $form->informationObject
-          ->label(__('Title of related resource'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="3" class="noline">
-        <?php echo $form->informationObject->render(array('class' => 
'form-autocomplete')) ?>
-        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) 
?>"/>
-        <?php echo $form->informationObject
-          ->help(__('"Provide the unique identifiers/reference codes and/or 
titles for the related resources." (ISAAR 6.1) Select the title from the 
drop-down menu; enter the identifier or the first few letters to narrow the 
choices.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="2" style="width: 60%">
-        <?php echo $form->type
-          ->label(__('Nature of relationship'))
-          ->renderLabel() ?>
-      </th><th style="width: 40%">
-        <?php echo $form->resourceType
-          ->label(__('Type of related resource'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="2" class="noline">
-        <?php echo $form->type ?>
-        <?php echo $form->type
-          ->help(__('"Describe the nature of the relationships between the 
corporate body, person or family and the related resource." (ISAAR 6.3) Select 
the type of relationship from the drop-down menu; these values are drawn from 
the Event Types taxonomy.'))
-          ->renderHelp() ?>
-      </td><td class="noline">
-        <?php echo $form->resourceType->render(array('disabled' => 'true', 
'class' => 'disabled')) ?>
-        <?php echo $form->resourceType
-          ->help(__('"Identify the type of related resources, e.g. Archival 
materials (fonds, record series, etc), archival description, finding aid, 
monograph, journal article, web site, photograph, museum collection, 
documentary film, oral history recording." (ISAAR 6.2) In the current version 
of the software, Archival material is provided as the only default value.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th style="width: 25%">
-        <?php echo $form->startDate
-          ->label(__('Date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 25%">
-        <?php echo $form->endDate
-          ->label(__('End date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 50%">
-        <?php echo $form->dateDisplay
-          ->label(__('Date display&dagger;'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td style="width: 25%">
-        <?php echo $form->startDate ?>
-        <?php echo $form->startDate->renderHelp() ?>
-      </td><td style="width: 25%">
-        <?php echo $form->endDate ?>
-        <?php echo $form->endDate->renderHelp() ?>
-      </td><td style="width: 50%">
-        <?php echo $form->dateDisplay ?>
-        <?php echo $form->dateDisplay
-          ->help(__('"Provide any relevant dates for the related resources 
and/or the relationship between the corporate body, person or family and the 
related resource." (ISAAR 6.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <td colspan="3">
-        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-      </td>
-    </tr>
-  </tbody>
-</table>
+  <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+  <table class="inline" id="resourceRelation">
+    <tbody>
+      <tr>
+        <th colspan="3" style="width: 55%">
+          <?php echo $form->informationObject
+            ->label(__('Title of related resource'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="3" class="noline">
+          <?php echo $form->informationObject->render(array('class' => 
'form-autocomplete')) ?>
+          <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) 
?>"/>
+          <?php echo $form->informationObject
+            ->help(__('"Provide the unique identifiers/reference codes and/or 
titles for the related resources." (ISAAR 6.1) Select the title from the 
drop-down menu; enter the identifier or the first few letters to narrow the 
choices.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="2" style="width: 60%">
+          <?php echo $form->type
+            ->label(__('Nature of relationship'))
+            ->renderLabel() ?>
+        </th><th style="width: 40%">
+          <?php echo $form->resourceType
+            ->label(__('Type of related resource'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="2" class="noline">
+          <?php echo $form->type ?>
+          <?php echo $form->type
+            ->help(__('"Describe the nature of the relationships between the 
corporate body, person or family and the related resource." (ISAAR 6.3) Select 
the type of relationship from the drop-down menu; these values are drawn from 
the Event Types taxonomy.'))
+            ->renderHelp() ?>
+        </td><td class="noline">
+          <?php echo $form->resourceType->render(array('disabled' => 'true', 
'class' => 'disabled')) ?>
+          <?php echo $form->resourceType
+            ->help(__('"Identify the type of related resources, e.g. Archival 
materials (fonds, record series, etc), archival description, finding aid, 
monograph, journal article, web site, photograph, museum collection, 
documentary film, oral history recording." (ISAAR 6.2) In the current version 
of the software, Archival material is provided as the only default value.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th style="width: 25%">
+          <?php echo $form->startDate
+            ->label(__('Date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 25%">
+          <?php echo $form->endDate
+            ->label(__('End date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 50%">
+          <?php echo $form->dateDisplay
+            ->label(__('Date display&dagger;'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td style="width: 25%">
+          <?php echo $form->startDate ?>
+          <?php echo $form->startDate->renderHelp() ?>
+        </td><td style="width: 25%">
+          <?php echo $form->endDate ?>
+          <?php echo $form->endDate->renderHelp() ?>
+        </td><td style="width: 50%">
+          <?php echo $form->dateDisplay ?>
+          <?php echo $form->dateDisplay
+            ->help(__('"Provide any relevant dates for the related resources 
and/or the relationship between the corporate body, person or family and the 
related resource." (ISAAR 6.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <td colspan="3">
+          <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+
+</div>

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Tue Oct 19 16:45:53 2010        (r8318)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/_relatedAuthorityRecord.php
     Tue Oct 19 16:53:04 2010        (r8319)
@@ -1,50 +1,52 @@
 <?php use_helper('Javascript') ?>
 
-<table class="inline" id="relatedEntities">
-  <caption>
-    <?php echo __('Related corporate bodies, persons or families') ?>
-  </caption><thead>
-    <tr>
-      <th style="width: 25%">
-        <?php echo __('Name') ?>
-      </th><th style="width: 15%">
-        <?php echo __('Type') ?>
-      </th><th style="width: 20%">
-        <?php echo __('Dates') ?>
-      </th><th style="width: 30%">
-        <?php echo __('Description') ?>
-      </th><th style="text-align: center; width: 10%">
-        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
-      </th>
-    </tr>
-  </thead><tbody>
-    <?php foreach ($resource->getActorRelations() as $item): ?>
-      <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
-        <td>
-          <?php if ($resource->id == $item->objectId): ?>
-            <?php echo render_title($item->subject) ?>
-          <?php else: ?>
-            <?php echo render_title($item->object) ?>
-          <?php endif; ?>
-        </td><td>
-          <?php echo $item->type ?>
-        </td><td>
-          <?php if (null !== $note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID)): ?>
-            <?php echo $note ?>
-          <?php elseif (1 < count($dateArray = $item->getDates())): ?>
-            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
-          <?php else: ?>
-            <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
-          <?php endif; ?>
-        </td><td>
-          <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
-        </td><td style="text-align: center">
-          <input class="multiDelete" name="deleteRelations[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
-        </td>
+<div class="section">
+
+  <table class="inline" id="relatedEntities">
+    <caption>
+      <?php echo __('Related corporate bodies, persons or families') ?>
+    </caption><thead>
+      <tr>
+        <th style="width: 25%">
+          <?php echo __('Name') ?>
+        </th><th style="width: 15%">
+          <?php echo __('Type') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Dates') ?>
+        </th><th style="width: 30%">
+          <?php echo __('Description') ?>
+        </th><th style="text-align: center; width: 10%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
       </tr>
-    <?php endforeach; ?>
-  </tbody>
-</table>
+    </thead><tbody>
+      <?php foreach ($resource->getActorRelations() as $item): ?>
+        <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
+          <td>
+            <?php if ($resource->id == $item->objectId): ?>
+              <?php echo render_title($item->subject) ?>
+            <?php else: ?>
+              <?php echo render_title($item->object) ?>
+            <?php endif; ?>
+          </td><td>
+            <?php echo $item->type ?>
+          </td><td>
+            <?php if (null !== $note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID)): ?>
+              <?php echo $note ?>
+            <?php elseif (1 < count($dateArray = $item->getDates())): ?>
+              <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
+            <?php else: ?>
+              <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
+            <?php endif; ?>
+          </td><td>
+            <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
+          </td><td style="text-align: center">
+            <input class="multiDelete" name="deleteRelations[]" 
type="checkbox" value="<?php echo $item->id ?>"/>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+    </tbody>
+  </table>
 
 <?php
 
@@ -152,82 +154,84 @@
 content
 ) ?>
 
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<table class="inline" id="actorRelation">
-  <caption>
-    <?php echo __('Related corporate body, person or family') ?>
-  </caption><tbody>
-    <tr>
-      <th colspan="3">
-        <?php echo $form->resource
-          ->label(__('Authorized form of name'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="3">
-        <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
-        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete')) ?>"/>
-        <?php echo $form->resource
-          ->help(__('"Record the authorized form of name and any relevant 
unique identifiers, including the authority record identifier, for the related 
entity." (ISAAR 5.3.1) Select the name from the drop-down menu; enter the first 
few letters to narrow the choices.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="3">
-        <?php echo $form->type
-          ->label(__('Category of relationship'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="3">
-        <?php echo $form->type ?>
-        <?php echo $form->type
-          ->help(__('"Purpose: To identify the general category of 
relationship between the entity being described and another corporate body, 
person or family." (ISAAR 5.3.2). Select a category from the drop-down menu: 
hierarchical, temporal, family or associative.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="3">
-        <?php echo $form->description
-          ->label(__('Description of relationship'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="3" style="width: 100%">
-        <?php echo $form->description ?>
-        <?php echo $form->description
-          ->help(__('"Record a precise description of the nature of the 
relationship between the entity described in this authority record and the 
other related entity....Record in the Rules and/or conventions element (5.4.3) 
any classification scheme used as a source of controlled vocabulary terms to 
describe the relationship. A narrative description of the history and/or nature 
of the relationship may also be provided here." (ISAAR 5.3.3). Note that the 
text entered in this field will also appear in the related authority record.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th style="width: 25%">
-        <?php echo $form->startDate
-          ->label(__('Date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 25%">
-        <?php echo $form->endDate
-          ->label(__('End date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 50%">
-        <?php echo $form->dateDisplay
-          ->label(__('Date display&dagger;'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td style="width: 25%">
-        <?php echo $form->startDate ?>
-        <?php echo $form->startDate->renderHelp() ?>
-      </td><td style="width: 25%">
-        <?php echo $form->endDate ?>
-        <?php echo $form->endDate->renderHelp() ?>
-      </td><td style="width: 50%">
-        <?php echo $form->dateDisplay ?>
-        <?php echo $form->dateDisplay
-          ->help(__('"Record when relevant the commencement date of the 
relationship or succession date and, when relevant, the cessation date of the 
relationship." (ISAAR 5.3.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <td colspan="3">
-        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-      </td>
-    </tr>
-  </tbody>
-</table>
+  <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+  <table class="inline" id="actorRelation">
+    <caption>
+      <?php echo __('Related corporate body, person or family') ?>
+    </caption><tbody>
+      <tr>
+        <th colspan="3">
+          <?php echo $form->resource
+            ->label(__('Authorized form of name'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="3">
+          <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
+          <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete')) ?>"/>
+          <?php echo $form->resource
+            ->help(__('"Record the authorized form of name and any relevant 
unique identifiers, including the authority record identifier, for the related 
entity." (ISAAR 5.3.1) Select the name from the drop-down menu; enter the first 
few letters to narrow the choices.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="3">
+          <?php echo $form->type
+            ->label(__('Category of relationship'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="3">
+          <?php echo $form->type ?>
+          <?php echo $form->type
+            ->help(__('"Purpose: To identify the general category of 
relationship between the entity being described and another corporate body, 
person or family." (ISAAR 5.3.2). Select a category from the drop-down menu: 
hierarchical, temporal, family or associative.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="3">
+          <?php echo $form->description
+            ->label(__('Description of relationship'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="3" style="width: 100%">
+          <?php echo $form->description ?>
+          <?php echo $form->description
+            ->help(__('"Record a precise description of the nature of the 
relationship between the entity described in this authority record and the 
other related entity....Record in the Rules and/or conventions element (5.4.3) 
any classification scheme used as a source of controlled vocabulary terms to 
describe the relationship. A narrative description of the history and/or nature 
of the relationship may also be provided here." (ISAAR 5.3.3). Note that the 
text entered in this field will also appear in the related authority record.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th style="width: 25%">
+          <?php echo $form->startDate
+            ->label(__('Date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 25%">
+          <?php echo $form->endDate
+            ->label(__('End date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 50%">
+          <?php echo $form->dateDisplay
+            ->label(__('Date display&dagger;'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td style="width: 25%">
+          <?php echo $form->startDate ?>
+          <?php echo $form->startDate->renderHelp() ?>
+        </td><td style="width: 25%">
+          <?php echo $form->endDate ?>
+          <?php echo $form->endDate->renderHelp() ?>
+        </td><td style="width: 50%">
+          <?php echo $form->dateDisplay ?>
+          <?php echo $form->dateDisplay
+            ->help(__('"Record when relevant the commencement date of the 
relationship or succession date and, when relevant, the cessation date of the 
relationship." (ISAAR 5.3.4) Enter the date as you would like it to appear in 
the show page for the authority record, using qualifiers and/or typographical 
symbols to express uncertainty if desired.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <td colspan="3">
+          <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+
+</div>

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Tue Oct 19 16:45:53 2010        (r8318)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Tue Oct 19 16:53:04 2010        (r8319)
@@ -1,42 +1,44 @@
 <?php use_helper('Javascript') ?>
 
-<table class="inline" id="relatedEntityDisplay">
-  <caption>
-    <?php echo __('Related authority records') ?>
-  </caption><thead>
-    <tr>
-      <th style="width: 25%">
-        <?php echo __('Identifier/name') ?>
-      </th><th style="width: 30%">
-        <?php echo __('Nature of relationship') ?>
-      </th><th style="width: 20%">
-        <?php echo __('Dates') ?>
-      </th><th style="text-align: center; width: 10%">
-        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
-      </th>
-    </tr>
-  </thead><tbody>
-    <?php foreach ($relations as $item): ?>
-      <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
-        <td>
-          <?php echo render_title($item->object) ?>
-        </td><td>
-          <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
-        </td><td>
-          <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
-            <?php echo $note ?>
-          <?php elseif (1 < count($dateArray = $item->getDates())): ?>
-            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
-          <?php else: ?>
-            <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
-          <?php endif; ?>
-        </td><td style="text-align: center">
-          <input class="multiDelete" name="deleteRelations[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
-        </td>
+<div class="section">
+
+  <table class="inline" id="relatedEntityDisplay">
+    <caption>
+      <?php echo __('Related authority records') ?>
+    </caption><thead>
+      <tr>
+        <th style="width: 25%">
+          <?php echo __('Identifier/name') ?>
+        </th><th style="width: 30%">
+          <?php echo __('Nature of relationship') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Dates') ?>
+        </th><th style="text-align: center; width: 10%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
       </tr>
-    <?php endforeach; ?>
-  </tbody>
-</table>
+    </thead><tbody>
+      <?php foreach ($relations as $item): ?>
+        <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
+          <td>
+            <?php echo render_title($item->object) ?>
+          </td><td>
+            <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
+          </td><td>
+            <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
+              <?php echo $note ?>
+            <?php elseif (1 < count($dateArray = $item->getDates())): ?>
+              <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
+            <?php else: ?>
+              <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
+            <?php endif; ?>
+          </td><td style="text-align: center">
+            <input class="multiDelete" name="deleteRelations[]" 
type="checkbox" value="<?php echo $item->id ?>"/>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+    </tbody>
+  </table>
 
 <?php
 
@@ -83,65 +85,67 @@
 content
 ) ?>
 
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<table class="inline" id="relatedEntity">
-  <caption>
-    <?php echo __('Related authority record') ?>
-  </caption><tbody>
-    <tr>
-      <th colspan="4">
-        <?php echo $form->resource
-          ->label(__('Authorized form of name'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
-        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete', 'showOnlyActors' 
=> 'true')) ?>"/>
-        <?php echo $form->resource
-          ->help(__('Select the name from the drop-down menu; enter the 
identifier or the first few letters to narrow the choices. (ISDF 6.1)'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="4">
-        <?php echo $form->description
-          ->label(__('Nature of relationship'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->description ?>
-        <?php echo $form->description->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th style="width: 25%">
-        <?php echo $form->startDate
-          ->label(__('Date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 25%">
-        <?php echo $form->endDate
-          ->label(__('End date&dagger;'))
-          ->renderLabel() ?>
-      </th><th colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay
-          ->label(__('Date display&dagger;'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td style="width: 25%">
-        <?php echo $form->startDate ?>
-        <?php echo $form->startDate->renderHelp() ?>
-      </td><td style="width: 25%">
-        <?php echo $form->endDate ?>
-        <?php echo $form->endDate->renderHelp() ?>
-      </td><td colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay ?>
-        <?php echo $form->dateDisplay->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-      </td>
-    </tr>
-  </tbody>
-</table>
+  <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+  <table class="inline" id="relatedEntity">
+    <caption>
+      <?php echo __('Related authority record') ?>
+    </caption><tbody>
+      <tr>
+        <th colspan="4">
+          <?php echo $form->resource
+            ->label(__('Authorized form of name'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
+          <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'actor', 'action' => 'autocomplete', 'showOnlyActors' 
=> 'true')) ?>"/>
+          <?php echo $form->resource
+            ->help(__('Select the name from the drop-down menu; enter the 
identifier or the first few letters to narrow the choices. (ISDF 6.1)'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="4">
+          <?php echo $form->description
+            ->label(__('Nature of relationship'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->description ?>
+          <?php echo $form->description->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th style="width: 25%">
+          <?php echo $form->startDate
+            ->label(__('Date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 25%">
+          <?php echo $form->endDate
+            ->label(__('End date&dagger;'))
+            ->renderLabel() ?>
+        </th><th colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay
+            ->label(__('Date display&dagger;'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td style="width: 25%">
+          <?php echo $form->startDate ?>
+          <?php echo $form->startDate->renderHelp() ?>
+        </td><td style="width: 25%">
+          <?php echo $form->endDate ?>
+          <?php echo $form->endDate->renderHelp() ?>
+        </td><td colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay ?>
+          <?php echo $form->dateDisplay->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+
+</div>

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Tue Oct 19 16:45:53 2010        (r8318)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Tue Oct 19 16:53:04 2010        (r8319)
@@ -1,50 +1,52 @@
 <?php use_helper('Javascript') ?>
 
-<table class="inline" id="relatedFunctions">
-  <caption>
-    <?php echo __('Related functions') ?>
-  </caption><thead>
-    <tr>
-      <th style="width: 25%">
-        <?php echo __('Name') ?>
-      </th><th style="width: 15%">
-        <?php echo __('Category') ?>
-      </th><th style="width: 30%">
-        <?php echo __('Description') ?>
-      </th><th style="width: 20%">
-        <?php echo __('Dates') ?>
-      </th><th style="text-align: center; width: 10%">
-        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
-      </th>
-    </tr>
-  </thead><tbody>
-    <?php foreach ($relations as $item): ?>
-      <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
-        <td>
-          <?php if ($resource->id == $item->objectId): ?>
-            <?php echo render_title($item->subject) ?>
-          <?php else: ?>
-            <?php echo render_title($item->object) ?>
-          <?php endif; ?>
-        </td><td>
-          <?php echo $item->type ?>
-        </td><td>
-          <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
-        </td><td>
-          <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
-            <?php echo $note ?>
-          <?php elseif (1 < count($dateArray = $item->getDates())): ?>
-            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
-          <?php else: ?>
-            <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
-          <?php endif; ?>
-        </td><td style="text-align: center">
-          <input class="multiDelete" name="deleteRelations[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
-        </td>
+<div class="section">
+
+  <table class="inline" id="relatedFunctions">
+    <caption>
+      <?php echo __('Related functions') ?>
+    </caption><thead>
+      <tr>
+        <th style="width: 25%">
+          <?php echo __('Name') ?>
+        </th><th style="width: 15%">
+          <?php echo __('Category') ?>
+        </th><th style="width: 30%">
+          <?php echo __('Description') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Dates') ?>
+        </th><th style="text-align: center; width: 10%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
       </tr>
-    <?php endforeach; ?>
-  </tbody>
-</table>
+    </thead><tbody>
+      <?php foreach ($relations as $item): ?>
+        <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
+          <td>
+            <?php if ($resource->id == $item->objectId): ?>
+              <?php echo render_title($item->subject) ?>
+            <?php else: ?>
+              <?php echo render_title($item->object) ?>
+            <?php endif; ?>
+          </td><td>
+            <?php echo $item->type ?>
+          </td><td>
+            <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
+          </td><td>
+            <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
+              <?php echo $note ?>
+            <?php elseif (1 < count($dateArray = $item->getDates())): ?>
+              <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
+            <?php else: ?>
+              <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
+            <?php endif; ?>
+          </td><td style="text-align: center">
+            <input class="multiDelete" name="deleteRelations[]" 
type="checkbox" value="<?php echo $item->id ?>"/>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+    </tbody>
+  </table>
 
 <?php
 
@@ -152,80 +154,82 @@
 content
 ) ?>
 
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<table class="inline" id="functionRelation">
-  <caption>
-    <?php echo __('Related function') ?>
-  </caption><tbody>
-    <tr>
-      <th colspan="4">
-        <?php echo $form->resource
-          ->label(__('Authorized form of name'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
-        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'function', 'action' => 'autocomplete')) ?>"/>
-        <?php echo $form->resource
-          ->help(__('"Record the authorised form of name and any unique 
identifier of the related function." (ISDF 5.3.1)'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="4">
-        <?php echo $form->type
-          ->label(__('Category'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->type ?>
-        <?php echo $form->type
-          ->help(__('"Record a general category into which the relationship 
being described falls." (ISDF 5.3.2) Select a category from the drop-down menu: 
hierarchical, temporal or associative.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="4">
-        <?php echo $form->description
-          ->label(__('Description'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->description ?>
-        <?php echo $form->description
-          ->help(__('"Record a precise description of the nature of the 
relationship between the function being described and the related function." 
(ISDF 5.3.3) Note that the text entered in this field will also appear in the 
related function.'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th style="width: 25%">
-        <?php echo $form->startDate
-          ->label(__('Date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 25%">
-        <?php echo $form->endDate
-          ->label(__('End date&dagger;'))
-          ->renderLabel() ?>
-      </th><th colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay
-          ->label(__('Date display&dagger;'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td style="width: 25%">
-        <?php echo $form->startDate ?>
-        <?php echo $form->startDate->renderHelp() ?>
-      </td><td style="width: 25%">
-        <?php echo $form->endDate ?>
-        <?php echo $form->endDate->renderHelp() ?>
-      </td><td colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay ?>
-        <?php echo $form->dateDisplay->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-      </td>
-    </tr>
-  </tbody>
-</table>
+  <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+  <table class="inline" id="functionRelation">
+    <caption>
+      <?php echo __('Related function') ?>
+    </caption><tbody>
+      <tr>
+        <th colspan="4">
+          <?php echo $form->resource
+            ->label(__('Authorized form of name'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
+          <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'function', 'action' => 'autocomplete')) ?>"/>
+          <?php echo $form->resource
+            ->help(__('"Record the authorised form of name and any unique 
identifier of the related function." (ISDF 5.3.1)'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="4">
+          <?php echo $form->type
+            ->label(__('Category'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->type ?>
+          <?php echo $form->type
+            ->help(__('"Record a general category into which the relationship 
being described falls." (ISDF 5.3.2) Select a category from the drop-down menu: 
hierarchical, temporal or associative.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="4">
+          <?php echo $form->description
+            ->label(__('Description'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->description ?>
+          <?php echo $form->description
+            ->help(__('"Record a precise description of the nature of the 
relationship between the function being described and the related function." 
(ISDF 5.3.3) Note that the text entered in this field will also appear in the 
related function.'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th style="width: 25%">
+          <?php echo $form->startDate
+            ->label(__('Date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 25%">
+          <?php echo $form->endDate
+            ->label(__('End date&dagger;'))
+            ->renderLabel() ?>
+        </th><th colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay
+            ->label(__('Date display&dagger;'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td style="width: 25%">
+          <?php echo $form->startDate ?>
+          <?php echo $form->startDate->renderHelp() ?>
+        </td><td style="width: 25%">
+          <?php echo $form->endDate ?>
+          <?php echo $form->endDate->renderHelp() ?>
+        </td><td colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay ?>
+          <?php echo $form->dateDisplay->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+
+</div>

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Tue Oct 19 16:45:53 2010        (r8318)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Tue Oct 19 16:53:04 2010        (r8319)
@@ -1,42 +1,44 @@
 <?php use_helper('Javascript') ?>
 
-<table class="inline" id="relatedResourceDisplay">
-  <caption>
-    <?php echo __('Related resources') ?>
-  </caption><thead>
-    <tr>
-      <th style="width: 25%">
-        <?php echo __('Identifier/title') ?>
-      </th><th style="width: 30%">
-        <?php echo __('Nature of relationship') ?>
-      </th><th style="width: 20%">
-        <?php echo __('Dates') ?>
-      </th><th style="text-align: center; width: 10%">
-        <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
-      </th>
-    </tr>
-  </thead><tbody>
-    <?php foreach ($relations as $item): ?>
-      <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
-        <td>
-          <?php echo render_title($item->object) ?>
-        </td><td>
-          <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
-        </td><td>
-          <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
-            <?php echo $note ?>
-          <?php elseif (1 < count($dateArray = $item->getDates())): ?>
-            <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
-          <?php else: ?>
-            <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
-          <?php endif; ?>
-        </td><td style="text-align: center">
-          <input class="multiDelete" name="deleteRelations[]" type="checkbox" 
value="<?php echo $item->id ?>"/>
-        </td>
+<div class="section">
+
+  <table class="inline" id="relatedResourceDisplay">
+    <caption>
+      <?php echo __('Related resources') ?>
+    </caption><thead>
+      <tr>
+        <th style="width: 25%">
+          <?php echo __('Identifier/title') ?>
+        </th><th style="width: 30%">
+          <?php echo __('Nature of relationship') ?>
+        </th><th style="width: 20%">
+          <?php echo __('Dates') ?>
+        </th><th style="text-align: center; width: 10%">
+          <?php echo image_tag('delete', array('align' => 'top', 'class' => 
'deleteIcon')) ?>
+        </th>
       </tr>
-    <?php endforeach; ?>
-  </tbody>
-</table>
+    </thead><tbody>
+      <?php foreach ($relations as $item): ?>
+        <tr class="related_obj_<?php echo $item->id ?>" id="<?php echo 
url_for(array($item, 'module' => 'relation')) ?>">
+          <td>
+            <?php echo render_title($item->object) ?>
+          </td><td>
+            <?php echo 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DESCRIPTION_ID) ?>
+          </td><td>
+            <?php if (0 < strlen($note = 
$item->getNoteByTypeId(QubitTerm::RELATION_NOTE_DATE_DISPLAY_ID))): ?>
+              <?php echo $note ?>
+            <?php elseif (1 < count($dateArray = $item->getDates())): ?>
+              <?php echo __('%1% - %2%', array('%1%' => 
Qubit::renderDate($dateArray['start']), '%2%' => 
Qubit::renderDate($dateArray['end']))) ?>
+            <?php else: ?>
+              <?php echo Qubit::renderDate(array_shift($dateArray)) ?>
+            <?php endif; ?>
+          </td><td style="text-align: center">
+            <input class="multiDelete" name="deleteRelations[]" 
type="checkbox" value="<?php echo $item->id ?>"/>
+          </td>
+        </tr>
+      <?php endforeach; ?>
+    </tbody>
+  </table>
 
 <?php
 
@@ -83,65 +85,67 @@
 content
 ) ?>
 
-<!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
-<table class="inline" id="relatedResource">
-  <caption>
-    <?php echo __('Related resource') ?>
-  </caption><tbody>
-    <tr>
-      <th colspan="4">
-        <?php echo $form->resource
-          ->label(__('Title'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
-        <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) 
?>"/>
-        <?php echo $form->resource
-          ->help(__('Select the title from the drop-down menu; enter the 
identifier or the first few letters to narrow the choices. (ISDF 6.1)'))
-          ->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th colspan="4">
-        <?php echo $form->description
-          ->label(__('Nature of relationship'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo $form->description ?>
-        <?php echo $form->description->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <th style="width: 25%">
-        <?php echo $form->startDate
-          ->label(__('Date&dagger;'))
-          ->renderLabel() ?>
-      </th><th style="width: 25%">
-        <?php echo $form->endDate
-          ->label(__('End date&dagger;'))
-          ->renderLabel() ?>
-      </th><th colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay
-          ->label(__('Date display&dagger;'))
-          ->renderLabel() ?>
-      </th>
-    </tr><tr>
-      <td style="width: 25%">
-        <?php echo $form->startDate ?>
-        <?php echo $form->startDate->renderHelp() ?>
-      </td><td style="width: 25%">
-        <?php echo $form->endDate ?>
-        <?php echo $form->endDate->renderHelp() ?>
-      </td><td colspan="2" style="width: 50%">
-        <?php echo $form->dateDisplay ?>
-        <?php echo $form->dateDisplay->renderHelp() ?>
-      </td>
-    </tr><tr>
-      <td colspan="4">
-        <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
-      </td>
-    </tr>
-  </tbody>
-</table>
+  <!-- NOTE dialog.js wraps this *entire* table in a YUI dialog -->
+  <table class="inline" id="relatedResource">
+    <caption>
+      <?php echo __('Related resource') ?>
+    </caption><tbody>
+      <tr>
+        <th colspan="4">
+          <?php echo $form->resource
+            ->label(__('Title'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->resource->render(array('class' => 
'form-autocomplete')) ?>
+          <input class="list" type="hidden" value="<?php echo 
url_for(array('module' => 'informationobject', 'action' => 'autocomplete')) 
?>"/>
+          <?php echo $form->resource
+            ->help(__('Select the title from the drop-down menu; enter the 
identifier or the first few letters to narrow the choices. (ISDF 6.1)'))
+            ->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th colspan="4">
+          <?php echo $form->description
+            ->label(__('Nature of relationship'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo $form->description ?>
+          <?php echo $form->description->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <th style="width: 25%">
+          <?php echo $form->startDate
+            ->label(__('Date&dagger;'))
+            ->renderLabel() ?>
+        </th><th style="width: 25%">
+          <?php echo $form->endDate
+            ->label(__('End date&dagger;'))
+            ->renderLabel() ?>
+        </th><th colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay
+            ->label(__('Date display&dagger;'))
+            ->renderLabel() ?>
+        </th>
+      </tr><tr>
+        <td style="width: 25%">
+          <?php echo $form->startDate ?>
+          <?php echo $form->startDate->renderHelp() ?>
+        </td><td style="width: 25%">
+          <?php echo $form->endDate ?>
+          <?php echo $form->endDate->renderHelp() ?>
+        </td><td colspan="2" style="width: 50%">
+          <?php echo $form->dateDisplay ?>
+          <?php echo $form->dateDisplay->renderHelp() ?>
+        </td>
+      </tr><tr>
+        <td colspan="4">
+          <?php echo __('%1% - dates must be specified in ISO-8601 format 
(YYYY-MM-DD)', array('%1%' => '&dagger;'))?>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+
+</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