Author: sevein
Date: Mon Jul 11 23:50:23 2011
New Revision: 9287
Log:
Print related donors in the accession view screen
Modified:
trunk/plugins/qtAccessionPlugin/modules/qtAccessionPlugin/templates/indexSuccess.php
Modified:
trunk/plugins/qtAccessionPlugin/modules/qtAccessionPlugin/templates/indexSuccess.php
==============================================================================
---
trunk/plugins/qtAccessionPlugin/modules/qtAccessionPlugin/templates/indexSuccess.php
Mon Jul 11 23:31:13 2011 (r9286)
+++
trunk/plugins/qtAccessionPlugin/modules/qtAccessionPlugin/templates/indexSuccess.php
Mon Jul 11 23:50:23 2011 (r9287)
@@ -24,6 +24,15 @@
<?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) as
$item): ?>
+ <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'))) ?>
+ </div>
+ </div>
+ <?php endforeach; ?>
+
</div> <!-- /.section#donorArea -->
<div class="section" id="administrativeArea">
--
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.