summaryrefslogtreecommitdiffstats
path: root/data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php')
-rw-r--r--data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php b/data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php
new file mode 100644
index 0000000..76be382
--- /dev/null
+++ b/data/generator/sfPropelAdmin/mailadmin/template/templates/_filters.php
@@ -0,0 +1,36 @@
+[?php use_helper('Object') ?]
+
+<?php if ($this->getParameterValue('list.filters')): ?>
+<div id="sf_admin_filters" style="display:none">
+[?php echo form_tag('<?php echo $this->getModuleName() ?>/list', array('method' => 'get')) ?]
+
+ <hr size="1" />
+ <h2>[?php echo __('Filters') ?]</h2>
+<?php foreach ($this->getColumns('list.filters') as $column): $type = $column->getCreoleType() ?>
+<?php $credentials = $this->getParameterValue('list.fields.'.$column->getName().'.credentials') ?>
+<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?>
+ [?php if ($sf_user->hasCredential(<?php echo $credentials ?>)): ?]
+<?php endif; ?>
+ <div class="form-row">
+ <label for="<?php echo $column->getName() ?>">[?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>:') ?]</label>
+ <div class="content">
+ [?php echo <?php echo $this->getColumnFilterTag($column) ?> ?]
+<?php if ($this->getParameterValue('list.fields.'.$column->getName().'.filter_is_empty')): ?>
+ <div>[?php echo checkbox_tag('filters[<?php echo $column->getName() ?>_is_empty]', 1, isset($filters['<?php echo $column->getName() ?>_is_empty']) ? $filters['<?php echo $column->getName() ?>_is_empty'] : null) ?]&nbsp;<label for="filters[<?php echo $column->getName() ?>_is_empty]">[?php echo __('is empty') ?]</label></div>
+<?php endif; ?>
+ </div>
+ </div>
+<?php if ($credentials): ?>
+ [?php endif; ?]
+<?php endif; ?>
+
+ <?php endforeach; ?>
+
+ <div class="formaction">
+ [?php echo submit_tag(__('filter'), 'name=filter class=sf_admin_action_filter') ?]
+ [?php echo button_to(__('reset'), '<?php echo $this->getModuleName() ?>/list?filter=filter', 'class=sf_admin_action_reset_filter') ?]
+ </div>
+
+</form>
+</div>
+<?php endif; ?>