Author: sevein
Date: Mon Jul 16 11:31:06 2012
New Revision: 11929

Log:
Add accession area in the donor view page, fixes issue 2381

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    
Sun Jul 15 00:01:53 2012        (r11928)
+++ trunk/plugins/qtAccessionPlugin/modules/donor/templates/indexSuccess.php    
Mon Jul 16 11:31:06 2012        (r11929)
@@ -24,6 +24,26 @@
 
 </div> <!-- /.section#contactArea -->
 
+<div class="section" id="accessionArea">
+
+  <h2><?php echo __('Accession area') ?></h2>
+
+  <div class="field">
+
+    <h3><?php echo __('Related accession(s)') ?></h3>
+
+    <div>
+      <ul>
+        <?php foreach (QubitRelation::getRelationsByObjectId($resource->id, 
array('typeId' => QubitTerm::DONOR_ID)) as $item): ?>
+          <li><?php echo link_to(render_title($item->subject), 
array($item->subject, 'module' => 'accession')) ?></li>
+        <?php endforeach; ?>
+      </ul>
+    </div>
+
+  </div>
+
+</div> <!-- /.section#donorArea -->
+
 <div class="actions section">
 
   <h2 class="element-invisible"><?php echo __('Actions') ?></h2>

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