Author: sevein
Date: Fri Jul 29 13:08:13 2011
New Revision: 9419
Log:
Show contact information in donor show screen
Modified:
trunk/plugins/qtAccessionPlugin/modules/donor/templates/indexSuccess.php
Modified:
trunk/plugins/qtAccessionPlugin/modules/donor/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/qtAccessionPlugin/modules/donor/templates/indexSuccess.php
Fri Jul 29 12:56:43 2011 (r9418)
+++ trunk/plugins/qtAccessionPlugin/modules/donor/templates/indexSuccess.php
Fri Jul 29 13:08:13 2011 (r9419)
@@ -18,12 +18,21 @@
<h2><?php echo __('Contact area') ?></h2>
- <?php // echo get_partial('...', ...) ?>
-
- <div class="field">
- <h3>TODO contacat area</h3>
- <div class="value">TODO</div>
- </div>
+ <?php foreach ($resource->contactInformations as $contactItem): ?>
+ <div class="field">
+ <h3>Contact information</h3>
+ <div class="vcard">
+ <?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)) ?>
+ </div>
+ </div>
+ <?php endforeach; ?>
</div> <!-- /.section#contactArea -->
--
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.