Author: peter
Date: 2008-11-10 16:56:13 -0800 (Mon, 10 Nov 2008)
New Revision: 1549

Modified:
   
trunk/qubit/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
Log:
change the way roles/events are shown

Modified: 
trunk/qubit/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
===================================================================
--- 
trunk/qubit/apps/qubit/modules/informationobject/templates/editIsadSuccess.php  
    2008-11-11 00:15:19 UTC (rev 1548)
+++ 
trunk/qubit/apps/qubit/modules/informationobject/templates/editIsadSuccess.php  
    2008-11-11 00:56:13 UTC (rev 1549)
@@ -86,7 +86,7 @@
       <table id="actorEvents" class="inline" style="margin-top: 25px;">
         <tr style="border-top: 1px solid #999999;">
           <td style="width: 40%; color: #999999; font-weight: bold"><?php echo 
__('Name') ?></td>
-          <td style="width: 25%; color: #999999; font-weight: bold"><?php echo 
__('Role') ?></td>
+          <td style="width: 25%; color: #999999; font-weight: bold"><?php echo 
__('Role/Event') ?></td>
           <td style= "width: 30%; color: #999999; font-weight: bold"><?php 
echo __('Date(s)') ?></td>
           <td style="width:5%"></td>
         </tr>
@@ -98,11 +98,15 @@
               <?php echo link_to($actorEvent->getActor(), 
'actor/edit?id='.$actorEvent->getActorId()) ?>
             </td>
           <?php else: ?>
-            <td><?php echo __('unknown') ?></td>
+            <td></td>
           <?php endif; ?>
+          <?php if ($actorEvent->getActor()): ?>
           <td>
             <?php echo $actorEvent->getType()->getRole() ?>
           </td>
+          <?php else: ?>
+            <td><?php echo $actorEvent->getType() ?></td>
+          <?php endif; ?>
           <td><?php echo $actorEvent->getDateDisplay(array('cultureFallback' 
=> 'true')) ?></td>
           <td style="text-align: center;">
             <?php echo link_to(image_tag('delete', 'align=top'), 
'informationobject/deleteEvent?eventId='.$actorEvent->getId().'&returnTemplate=isad')
 ?>


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