comanage-dev - [comanage-dev] r472 - in registry/trunk/app/View: CoEnrollmentAttributes CoEnrollmentFlows CoExtendedAttributes
Subject: COmanage Developers List
List archive
[comanage-dev] r472 - in registry/trunk/app/View: CoEnrollmentAttributes CoEnrollmentFlows CoExtendedAttributes
Chronological Thread
- From:
- To:
- Subject: [comanage-dev] r472 - in registry/trunk/app/View: CoEnrollmentAttributes CoEnrollmentFlows CoExtendedAttributes
- Date: Wed, 27 Feb 2013 21:32:55 -0500
- Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none
Author: marie
Date: 2013-02-27 21:32:55 -0500 (Wed, 27 Feb 2013)
New Revision: 472
Modified:
registry/trunk/app/View/CoEnrollmentAttributes/fields.inc
registry/trunk/app/View/CoEnrollmentAttributes/index.ctp
registry/trunk/app/View/CoEnrollmentFlows/fields.inc
registry/trunk/app/View/CoEnrollmentFlows/index.ctp
registry/trunk/app/View/CoExtendedAttributes/fields.inc
registry/trunk/app/View/CoExtendedAttributes/index.ctp
Log:
colsmove buttons for enrollment attributes, enrollment flows, and extended
attributes to sidebar
Modified: registry/trunk/app/View/CoEnrollmentAttributes/fields.inc
===================================================================
--- registry/trunk/app/View/CoEnrollmentAttributes/fields.inc 2013-02-28
00:38:01 UTC (rev 471)
+++ registry/trunk/app/View/CoEnrollmentAttributes/fields.inc 2013-02-28
02:32:55 UTC (rev 472)
@@ -34,17 +34,23 @@
if(!$e && !$permissions['view'])
return(false);
- if($e)
- print $this->Html->link(_txt('op.cancel'),
- array('controller' =>
'co_enrollment_attributes',
- 'action' => 'index',
- 'coef' =>
Sanitize::html($this->request->params['named']['coef'])),
- array('class' => 'cancelbutton'));
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
- print '
- <br />
- <br />
- ';
+ if($e) {
+ // Cancel Button
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-close',
+ 'title' => _txt('op.cancel'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_attributes',
+ 'action' => 'index',
+ 'coef' => Sanitize::html($this->request->params['named']['coef'])
+ )
+ );
+ }
+
+ $this->set('sidebarButtons', $sidebarButtons);
print $this->Form->hidden('co_enrollment_flow_id', array('default' =>
Sanitize::html($this->request->params['named']['coef']))) . "\n";
?>
Modified: registry/trunk/app/View/CoEnrollmentAttributes/index.ctp
===================================================================
--- registry/trunk/app/View/CoEnrollmentAttributes/index.ctp 2013-02-28
00:38:01 UTC (rev 471)
+++ registry/trunk/app/View/CoEnrollmentAttributes/index.ctp 2013-02-28
02:32:55 UTC (rev 472)
@@ -26,21 +26,37 @@
$params = array('title' => $title_for_layout);
print $this->element("pageTitle", $params);
- print $this->Html->link(_txt('op.back'),
- array('controller' => 'co_enrollment_flows',
- 'action' => ($permissions['edit'] ? 'edit' :
'view'),
-
Sanitize::html($this->request->params['named']['coef']),
- 'co' => $coid),
- array('class' => 'backbutton')) . '
- ';
+
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
+
+ // Cancel button
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-close',
+ 'title' => _txt('op.back'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_flows',
+ 'action' => ($permissions['edit'] ? 'edit' : 'view'),
+ Sanitize::html($this->request->params['named']['coef']),
+ 'co' => $coid
+ )
+ );
- if($permissions['add'])
- print $this->Html->link(_txt('op.add') . ' ' .
_txt('ct.co_enrollment_attributes.1'),
- array('controller' =>
'co_enrollment_attributes', 'action' => 'add', 'coef' =>
Sanitize::html($this->request->params['named']['coef'])),
- array('class' => 'addbutton')) . '
- <br />
- <br />
- ';
+ // Add button
+ if($permissions['add']) {
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-plus',
+ 'title' => _txt('op.add') . ' ' .
_txt('ct.co_enrollment_attributes.1'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_attributes',
+ 'action' => 'add',
+ 'coef' => Sanitize::html($this->request->params['named']['coef'])
+ )
+ );
+ }
+
+ $this->set('sidebarButtons', $sidebarButtons);
+
?>
<table id="cous" class="ui-widget">
Modified: registry/trunk/app/View/CoEnrollmentFlows/fields.inc
===================================================================
--- registry/trunk/app/View/CoEnrollmentFlows/fields.inc 2013-02-28
00:38:01 UTC (rev 471)
+++ registry/trunk/app/View/CoEnrollmentFlows/fields.inc 2013-02-28
02:32:55 UTC (rev 472)
@@ -33,26 +33,39 @@
if(!$e && !$permissions['view'])
return(false);
-
+
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
+
if($e)
{
- echo $this->Html->link(_txt('op.cancel'),
- array('controller' => 'co_enrollment_flows',
'action' => 'index', 'co' => $cur_co['Co']['id']),
- array('class' => 'cancelbutton'));
+ // Cancel Button
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-close',
+ 'title' => _txt('op.cancel'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_flows',
+ 'action' => 'index',
+ 'co' => $cur_co['Co']['id']
+ )
+ );
- if($this->action == "edit" && $permissions['edit'])
- echo $this->Html->link(_txt('op.edit.ea'),
- array('controller' =>
'co_enrollment_attributes',
- 'action' => 'index',
- 'coef' =>
$co_enrollment_flows[0]['CoEnrollmentFlow']['id']),
- array('class' => 'linkbutton'));
+ // Edit button
+ if($this->action == "edit" && $permissions['edit']){
+ $sidebarButtons[] = array(
+ 'icon' => 'pencil',
+ 'title' => _txt('op.edit.ea'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_attributes',
+ 'action' => 'index',
+ 'coef' => $co_enrollment_flows[0]['CoEnrollmentFlow']['id']
+ )
+ );
+ }
}
-
- echo '
- <br />
- <br />
- ';
+ $this->set('sidebarButtons', $sidebarButtons);
+
echo $this->Form->hidden('co_id', array('default' => $cur_co['Co']['id']))
. "\n";
?>
<script type="text/javascript">
Modified: registry/trunk/app/View/CoEnrollmentFlows/index.ctp
===================================================================
--- registry/trunk/app/View/CoEnrollmentFlows/index.ctp 2013-02-28 00:38:01
UTC (rev 471)
+++ registry/trunk/app/View/CoEnrollmentFlows/index.ctp 2013-02-28 02:32:55
UTC (rev 472)
@@ -25,13 +25,22 @@
$params = array('title' => $title_for_layout);
print $this->element("pageTitle", $params);
- if($permissions['add'])
- print $this->Html->link(_txt('op.add') . ' ' .
_txt('ct.co_enrollment_flows.1'),
- array('controller' => 'co_enrollment_flows',
'action' => 'add', 'co' => $this->request->params['named']['co']),
- array('class' => 'addbutton')) . '
- <br />
- <br />
- ';
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
+
+ if($permissions['add']) {
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-plus',
+ 'title' => _txt('op.add') . ' ' . _txt('ct.co_enrollment_flows.1'),
+ 'url' => array(
+ 'controller' => 'co_enrollment_flows',
+ 'action' => 'add',
+ 'co' => $this->request->params['named']['co']
+ )
+ );
+ }
+
+ $this->set('sidebarButtons', $sidebarButtons);
?>
<table id="cous" class="ui-widget">
Modified: registry/trunk/app/View/CoExtendedAttributes/fields.inc
===================================================================
--- registry/trunk/app/View/CoExtendedAttributes/fields.inc 2013-02-28
00:38:01 UTC (rev 471)
+++ registry/trunk/app/View/CoExtendedAttributes/fields.inc 2013-02-28
02:32:55 UTC (rev 472)
@@ -34,16 +34,23 @@
if(!$e && !$permissions['view'])
return(false);
- if($e)
- echo $this->Html->link(_txt('op.cancel'),
- array('controller' => 'co_extended_attributes',
'action' => 'index', 'co' => $cur_co['Co']['id']),
- array('class' => 'cancelbutton'));
-
- echo '
- <br />
- <br />
- ';
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
+
+ if($e) {
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-close',
+ 'title' => _txt('op.cancel'),
+ 'url' => array(
+ 'controller' => 'co_extended_attributes',
+ 'action' => 'index',
+ 'co' => $cur_co['Co']['id']
+ )
+ );
+ }
+ $this->set('sidebarButtons', $sidebarButtons);
+
echo $this->Form->hidden('co_id', array('default' => $cur_co['Co']['id']))
. "\n";
?>
<table id="<?php echo $this->action; ?>_co_extended_attribute"
class="ui-widget">
Modified: registry/trunk/app/View/CoExtendedAttributes/index.ctp
===================================================================
--- registry/trunk/app/View/CoExtendedAttributes/index.ctp 2013-02-28
00:38:01 UTC (rev 471)
+++ registry/trunk/app/View/CoExtendedAttributes/index.ctp 2013-02-28
02:32:55 UTC (rev 472)
@@ -26,15 +26,22 @@
$params = array('title' => $title_for_layout);
print $this->element("pageTitle", $params);
- if($permissions['add'])
- echo $this->Html->link(_txt('op.add') . ' ' .
_txt('ct.co_extended_attributes.1'),
- array('controller' => 'co_extended_attributes',
- 'action' => 'add',
- 'co' => $cur_co['Co']['id']),
- array('class' => 'addbutton')) . '
- <br />
- <br />
- ';
+ // Add buttons to sidebar
+ $sidebarButtons = $this->get('sidebarButtons');
+
+ if($permissions['add']){
+ $sidebarButtons[] = array(
+ 'icon' => 'circle-plus',
+ 'title' => _txt('op.add') . ' ' .
_txt('ct.co_extended_attributes.1'),
+ 'url' => array(
+ 'controller' => 'co_extended_attributes',
+ 'action' => 'add',
+ 'co' => $cur_co['Co']['id']
+ )
+ );
+ }
+
+ $this->set('sidebarButtons', $sidebarButtons);
?>
<table id="cos" class="ui-widget">
- [comanage-dev] r472 - in registry/trunk/app/View: CoEnrollmentAttributes CoEnrollmentFlows CoExtendedAttributes, svnlog, 02/27/2013
Archive powered by MHonArc 2.6.16.