comanage-dev - [comanage-dev] r351 - registry/trunk/app/View/CoPeople
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r351 - registry/trunk/app/View/CoPeople
- Date: Mon, 27 Aug 2012 16:59:08 -0400
Author: marie
Date: 2012-08-27 16:59:08 -0400 (Mon, 27 Aug 2012)
New Revision: 351
Modified:
registry/trunk/app/View/CoPeople/fields.inc
Log:
co360 - makes clicking on add buttons open new tab
Modified: registry/trunk/app/View/CoPeople/fields.inc
===================================================================
--- registry/trunk/app/View/CoPeople/fields.inc 2012-08-27 18:57:32 UTC (rev
350)
+++ registry/trunk/app/View/CoPeople/fields.inc 2012-08-27 20:59:08 UTC (rev
351)
@@ -350,10 +350,16 @@
print '<td></td>';
print '<td>';
-
+ $linktarget = array('controller' => 'identifiers',
+ 'action' => 'add',
+ 'copersonid' =>
$co_people[0]['CoPerson']['id'],
+ 'co' => $cur_co['Co']['id']
+ );
+ $linkparams = array('class' => 'addbutton',
+ 'target' => '_blank');
print $this->Html->link(_txt('op.add'),
- array('controller' =>
'identifiers', 'action' => 'add', 'copersonid' =>
$co_people[0]['CoPerson']['id'], 'co' => $cur_co['Co']['id']),
- array('class' => 'addbutton'))
. "\n";
+ $linktarget,
+ $linkparams) . "\n";
print '</td>';
print '</tr>';
}
@@ -449,15 +455,23 @@
}
if($e)
{
- print '<tr>';
- print '<td></td>';
- print '<td>';
+ print '<tr>';
+ print '<td></td>';
+ print '<td>';
- print $this->Html->link(_txt('op.add'),
- array('controller' =>
'email_addresses', 'action' => 'add', 'copersonid' =>
$co_people[0]['CoPerson']['id'], 'co' => $cur_co['Co']['id']),
- array('class' => 'addbutton'));
- print '</td>';
- print '</tr>';
+ $linktarget = array('controller' => 'email_addresses',
+ 'action' => 'add',
+ 'copersonid' =>
$co_people[0]['CoPerson']['id'],
+ 'co' => $cur_co['Co']['id']
+ );
+ $linkparams = array('class' => 'addbutton',
+ 'target' => '_blank');
+
+ print $this->Html->link(_txt('op.add'),
+ $linktarget,
+ $linkparams);
+ print '</td>';
+ print '</tr>';
}
?>
</tbody>
@@ -556,10 +570,17 @@
print '<tr>';
print '<td></td>';
print '<td>';
-
+
+ $linktarget = array('controller' => 'co_groups',
+ 'action' => 'select',
+ 'copersonid' =>
$co_people[0]['CoPerson']['id'],
+ 'co' => $cur_co['Co']['id']
+ );
+ $linkparams = array('class' => 'addbutton',
+ 'target' => '_blank');
print $this->Html->link(_txt('op.add'),
- array('controller' =>
'co_groups', 'action' => 'select', 'copersonid' =>
$co_people[0]['CoPerson']['id'], 'co' => $cur_co['Co']['id']),
- array('class' => 'addbutton'));
+ $linktarget,
+ $linkparams) . "\n";
print '</td>';
print '</tr>';
}
@@ -687,9 +708,18 @@
<td></td>
<td>
<?php
+ $linktarget = array('controller' =>
'co_person_roles',
+ 'action' => 'add',
+ 'copersonid' =>
$co_people[0]['CoPerson']['id'],
+ 'co' =>
$cur_co['Co']['id']
+ );
+ $linkparams = array('class' => 'addbutton',
+ 'target' => '_blank');
+
print $this->Html->link(_txt('op.add'),
- array('controller' =>
'co_person_roles', 'action' => 'add', 'copersonid' =>
$co_people[0]['CoPerson']['id'], 'co' => $cur_co['Co']['id']),
- array('class' =>
'addbutton'));
+ $linktarget,
+ $linkparams) . "\n";
+
?>
</td>
</tr>
- [comanage-dev] r351 - registry/trunk/app/View/CoPeople, svnlog, 08/27/2012
Archive powered by MHonArc 2.6.16.