Author: sevein
Date: Sat Oct 30 10:24:55 2010
New Revision: 8718
Log:
Generate url from object. Cosmetic changes.
Modified:
trunk/plugins/qbAclPlugin/modules/aclGroup/templates/_showActions.php
Modified: trunk/plugins/qbAclPlugin/modules/aclGroup/templates/_showActions.php
==============================================================================
--- trunk/plugins/qbAclPlugin/modules/aclGroup/templates/_showActions.php
Sat Oct 30 10:05:25 2010 (r8717)
+++ trunk/plugins/qbAclPlugin/modules/aclGroup/templates/_showActions.php
Sat Oct 30 10:24:55 2010 (r8718)
@@ -1,10 +1,14 @@
<?php if (QubitAcl::check($group, array('create', 'update', 'delete'))): ?>
+
<div class="actions section">
-<h2 class="element-invisible"><?php echo __('Actions') ?></h2>
+
+ <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
+
<div class="content">
<ul class="clearfix links">
+
<?php if (QubitAcl::check($group, 'update')): ?>
- <li><?php echo link_to (__('Edit'), array('module' => 'aclGroup',
'action' => str_replace('index', 'edit', $sf_context->getActionName()), 'id' =>
$group->id)) ?></li>
+ <li><?php echo link_to (__('Edit'), array($group, 'module' =>
'aclGroup', 'action' => str_replace('index', 'edit',
$sf_context->getActionName()))) ?></li>
<?php endif; ?>
<?php if (QubitAcl::check($group, 'delete')): ?>
@@ -14,7 +18,9 @@
<?php if (QubitAcl::check($group, 'create')): ?>
<li><?php echo link_to (__('Add new'), array('module' => 'aclGroup',
'action' => 'add')) ?></li>
<?php endif; ?>
+
</ul>
</div>
+
</div>
<?php endif; ?>
--
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.