Development

Changeset 9939

You must first sign up to be able to contribute.

Changeset 9939

Show
Ignore:
Timestamp:
06/27/08 17:51:54 (4 months ago)
Author:
pmacadden
Message:

added conditions to object_actions tag

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/data/generator/sfAdvancedAdmin/default/template/templates/_list_td_actions.php

    r9935 r9939  
    33<ul class="sf_admin_td_actions"> 
    44<?php foreach ($this->getParameterValue('list.object_actions') as $actionName => $params): ?> 
     5<?php if (isset($params['condition'])): ?> 
     6  [?php if ($<?php echo $this->getSingularName() ?>-><?php echo sfInflector::camelize($params['condition']) ?>()):  ?] 
     7    <?php echo $this->addCredentialCondition($this->getLinkToAction($actionName, $params, true), $params) ?> 
     8  [?php endif ?] 
     9<?php else: ?> 
    510  <?php echo $this->addCredentialCondition($this->getLinkToAction($actionName, $params, true), $params) ?> 
     11<?php endif ?> 
    612<?php endforeach; ?> 
    713</ul>