Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r471 - in registry/trunk/app/View: CoPeople Layouts

Subject: COmanage Developers List

List archive

[comanage-dev] r471 - in registry/trunk/app/View: CoPeople Layouts


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r471 - in registry/trunk/app/View: CoPeople Layouts
  • Date: Wed, 27 Feb 2013 19:38:01 -0500
  • Authentication-results: sfpop-ironport03.merit.edu; dkim=neutral (message not signed) header.i=none

Author: marie
Date: 2013-02-27 19:38:01 -0500 (Wed, 27 Feb 2013)
New Revision: 471

Modified:
registry/trunk/app/View/CoPeople/fields.inc
registry/trunk/app/View/Layouts/default.ctp
Log:
co428 setup for javascript confirmation popups and support for options

Modified: registry/trunk/app/View/CoPeople/fields.inc
===================================================================
--- registry/trunk/app/View/CoPeople/fields.inc 2013-02-26 12:54:12 UTC (rev
470)
+++ registry/trunk/app/View/CoPeople/fields.inc 2013-02-28 00:38:01 UTC (rev
471)
@@ -83,12 +83,11 @@

// Autogenerate Identifiers button
if(!empty($co_identifier_assignments)) {
- print '<a
- class="autobutton"
- title="' . _txt('op.id.auto') . '"
- onclick="javascript:js_confirm_autogenerate()";>'
- . _txt('op.id.auto')
- . "</a>\n";
+ $sidebarButtons[] = array(
+ 'icon' => 'script',
+ 'title' => _txt('op.id.auto'),
+ 'url' => 'javascript:js_confirm_autogenerate();' // Does not
work when added in options
+ );
}

// Provisioning status

Modified: registry/trunk/app/View/Layouts/default.ctp
===================================================================
--- registry/trunk/app/View/Layouts/default.ctp 2013-02-26 12:54:12 UTC (rev
470)
+++ registry/trunk/app/View/Layouts/default.ctp 2013-02-28 00:38:01 UTC (rev
471)
@@ -429,13 +429,26 @@
<?php
foreach($sidebarButtons as $button => $link){
print '<li>';
+ // Clean data
+ $icontitle = '<span class="ui-icon ui-icon-'
+ . $link['icon']
+ . '"></span>'
+ . $link['title'];
+
+ $url = $link['url'];
+
+ $options = array_merge(array('escape' => FALSE),
+ (array)$link['options']
+ );
+
+ // Use the built in Cakephp popup
+ $popup = $link['popup'];
+
print $this->Html->link(
- '<span class="ui-icon ui-icon-'
- . $link['icon']
- . '"></span>'
- . $link['title'],
- $link['url'],
- array('escape' => FALSE)
+ $icontitle,
+ $url,
+ $options,
+ $popup
); // end of a
print '</li>';
}



  • [comanage-dev] r471 - in registry/trunk/app/View: CoPeople Layouts, svnlog, 02/27/2013

Archive powered by MHonArc 2.6.16.

Top of Page