Author: sevein
Date: Fri Jul 29 12:50:48 2011
New Revision: 9417
Log:
Use contactInformation partial in accession show screen
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
Fri Jul 29 12:48:14 2011 (r9416)
+++
trunk/plugins/qtAccessionPlugin/modules/accession/templates/indexSuccess.php
Fri Jul 29 12:50:48 2011 (r9417)
@@ -25,12 +25,18 @@
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
'<h2>'.__('Donor/Transferring body area').'</h2>', array($resource, 'module' =>
'accession', 'action' => 'edit'), array('anchor' => 'donorArea', 'title' =>
__('Edit donor/transferring body area'))) ?>
<?php foreach (QubitRelation::getRelationsBySubjectId($resource->id,
array('typeId' => QubitTerm::DONOR_ID)) as $item): ?>
+
+ <?php echo render_show(__('Related donor'),
link_to(render_title($item->object), array($item->object, 'module' =>
'donor'))) ?>
+
<div class="field">
- <h3><?php echo __('Related donor') ?></h3>
- <div>
- <?php echo render_show(__('Authorized form of name'),
link_to(render_title($item->object), array($item->object, 'module' =>
'donor'))) ?>
+ <h3> </h3>
+ <div class="vcard">
+ <?php foreach ($item->object->contactInformations as $contactItem): ?>
+ <?php echo get_partial('actor/contactInformation',
array('contactInformation' => $contactItem)) ?>
+ <?php endforeach; ?>
</div>
</div>
+
<?php endforeach; ?>
</div> <!-- /.section#donorArea -->
--
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.