Author: peter
Date: Thu Sep 17 11:31:07 2009
New Revision: 3372

Log:
update Physical Storage template style. Fix bug that broke template if physical 
object type was null

Modified:
   
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Thu Sep 17 11:30:50 2009        (r3371)
+++ 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Thu Sep 17 11:31:07 2009        (r3372)
@@ -1,4 +1,5 @@
-<h1><?php echo __('Edit physical storage') ?></h1>
+<h1><?php echo __('Link physical storage') ?></h1>
+<div class="headerCell"><?php if (0 < (strlen($label = 
$informationObject->getLabel()))): ?><?php echo $label ?><?php endif; ?></div>
 
 <?php echo $form->renderFormTag(url_for(array('module' => 'informationobject', 
'action' => 'editPhysicalObjects', 'id' => $informationObject->id))) ?>
 
@@ -14,7 +15,7 @@
   <?php $physicalObject = 
QubitPhysicalObject::getById($relation->getSubjectId()) ?>
   <tr class="<?php echo 'related_obj_'.$relation->getId() ?>">
     <td style="width: 90%"><div class="animateNicely">
-      <?php if (strlen($type = $physicalObject->getType()->__toString())) echo 
$type.': ' ?>
+      <?php if ($type = $physicalObject->getType()): ?><?php if 
(strlen($typeString = $type->__toString())): ?><?php echo $typeString.': ' 
?><?php endif; ?><?php endif; ?>
       <b><?php echo $physicalObject->getName(array('cultureFallback' => 
'true')) ?></b>
       <?php if ($location = 
$physicalObject->getLocation(array('cultureFallback' => 'true'))) echo ' - 
'.$location ?>     
     </div></td>

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

Reply via email to