diff options
Diffstat (limited to 'data/generator/sfPropelAdmin/mailadmin/template/templates/_list.php')
-rw-r--r-- | data/generator/sfPropelAdmin/mailadmin/template/templates/_list.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data/generator/sfPropelAdmin/mailadmin/template/templates/_list.php b/data/generator/sfPropelAdmin/mailadmin/template/templates/_list.php new file mode 100644 index 0000000..cc85625 --- /dev/null +++ b/data/generator/sfPropelAdmin/mailadmin/template/templates/_list.php @@ -0,0 +1,18 @@ +<table> +<tr> +<?php if ($this->getParameterValue('list.object_actions')): ?> +[?php $c = 0; ?] +<?php foreach ($this->getParameterValue('list.object_actions') as $actionName => $params): ?> + <?php echo $this->addCredentialCondition('[?php $c++; ?]', $params) ?> +<?php endforeach; ?> + <th width="1%" colspan="[?php echo $c ?]" id="sf_admin_list_th_sf_actions">[?php echo __('Actions') ?]</th> +<?php endif; ?> +[?php include_partial('list_th_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>') ?] +</tr> +[?php $i = 1; foreach ($pager->getResults() as $<?php echo $this->getSingularName() ?>): $odd = fmod(++$i, 2) ?] +<tr class="sf_admin_row_[?php echo $odd ?]"> +[?php include_partial('list_td_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] +[?php include_partial('list_td_<?php echo $this->getParameterValue('list.layout', 'tabular') ?>', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] +</tr> +[?php endforeach; ?] +</table> |