Author: sevein
Date: Wed Sep 21 17:05:47 2011
New Revision: 9787

Log:
Simplify contact information details markup in accession index screen page

Modified:
   trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php

Modified: 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php    
    Wed Sep 21 17:05:05 2011        (r9786)
+++ 
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php    
    Wed Sep 21 17:05:47 2011        (r9787)
@@ -28,24 +28,9 @@
 
     <?php echo render_show(__('Related donor'), 
link_to(render_title($item->object), array($item->object, 'module' => 
'donor'))) ?>
 
-    <div class="field">
-      <h3>&nbsp;</h3>
-      <div class="vcard">
-        <?php foreach ($item->object->contactInformations as $contactItem): ?>
-
-          <?php if (SecurityPriviliges::editCredentials($sf_user, 
'repository')): ?>
-            <a href="<?php echo url_for(array($contactItem, 'module' => 
'actor', 'action' => 'editContactInformation')) ?>" title="<?php echo __('Edit 
contact information') ?>">
-          <?php endif; ?>
-          <h3><?php echo $contactItem->getContactType(array('cultureFallback' 
=> true)) ?><?php if ($contactItem->primaryContact): ?> (<?php echo __('Primary 
contact') ?>)<?php endif; ?></h3>
-          <?php if (SecurityPriviliges::editCredentials($sf_user, 
'repository')): ?>
-            </a>
-          <?php endif; ?>
-
-          <?php echo get_partial('actor/contactInformation', 
array('contactInformation' => $contactItem)) ?>
-
-        <?php endforeach; ?>
-      </div>
-    </div>
+    <?php foreach ($item->object->contactInformations as $contactItem): ?>
+      <?php echo get_partial('contactinformation/contactInformation', 
array('contactInformation' => $contactItem)) ?>
+    <?php endforeach; ?>
 
   <?php endforeach; ?>
 

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