Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r576 - registry/trunk/app/View/CoPetitions

Subject: COmanage Developers List

List archive

[comanage-dev] r576 - registry/trunk/app/View/CoPetitions


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r576 - registry/trunk/app/View/CoPetitions
  • Date: Tue, 20 Aug 2013 19:38:48 -0400

Author: marie
Date: 2013-08-20 19:38:48 -0400 (Tue, 20 Aug 2013)
New Revision: 576

Modified:
registry/trunk/app/View/CoPetitions/fields.inc
Log:
CO472 - Petitions should link to OrgID and COPerson

Modified: registry/trunk/app/View/CoPetitions/fields.inc
===================================================================
--- registry/trunk/app/View/CoPetitions/fields.inc 2013-08-15 08:40:10
UTC (rev 575)
+++ registry/trunk/app/View/CoPetitions/fields.inc 2013-08-20 23:38:48
UTC (rev 576)
@@ -63,6 +63,39 @@
</script>

<?php
+ // Add links to sidebar
+
+ if($this->action != "add") {
+ // Get any existing buttons
+ $sidebarButtons = $this->get('sidebarButtons');
+
+ // Add button for related Org Identity
+ $sidebarButtons[] = array(
+ 'icon' => 'note',
+ 'title' => _txt('ct.org_identities.1'),
+ 'url' => array(
+ 'controller' => 'org_identities',
+ 'action' => 'view',
+ $co_petitions[0]['CoPetition']['enrollee_org_identity_id'],
+ 'co' => $co_petitions[0]['CoPetition']['co_id']
+ )
+ );
+
+ // Add button for related CO Person
+ $sidebarButtons[] = array(
+ 'icon' => 'note',
+ 'title' => _txt('ct.co_people.1'),
+ 'url' => array(
+ 'controller' => 'co_people',
+ 'action' => 'view',
+ $co_petitions[0]['CoPetition']['enrollee_co_person_id'],
+ 'co' => $co_petitions[0]['CoPetition']['co_id']
+ )
+ );
+
+ $this->set('sidebarButtons', $sidebarButtons);
+ }
+
// Determine if fields are editable
$e = false;

@@ -205,5 +238,11 @@
?>
</div>
</div>
+<pre>
+<?php

+print_r($co_petitions[0][CoPetition]);

+?>
+
+



  • [comanage-dev] r576 - registry/trunk/app/View/CoPetitions, svnlog, 08/20/2013

Archive powered by MHonArc 2.6.16.

Top of Page