Skip to content
Browse files

filters

  • Loading branch information...
1 parent e290620 commit ef8947e816d575baf89e47af4a98f5c7a3a3ebea @j0k3r j0k3r committed Nov 22, 2011
View
1 data/generator/sfDoctrineModule/twitter/template/templates/_filters.php
@@ -17,7 +17,6 @@
'help' => $filterFields['<?php echo $name ?>']->getConfig('help'),
'form' => $filters,
'field' => $filterFields['<?php echo $name ?>'],
- //'class' => 'large sf_admin_'.strtolower($filterFields['<?php echo $name ?>']->getType()).' sf_admin_filter_field_<?php echo $name ?>',
)) ?]
[?php endif; ?]
</td>
View
6 data/generator/sfPropelModule/twitter/template/templates/_filters.php
@@ -9,12 +9,14 @@
[?php if(isset($filters['<?php echo $name ?>']) && isset($filterFields['<?php echo $name ?>'])/* && $filterFields['<?php echo $name ?>']->isReal() && !$filters['<?php echo $name ?>']->isHidden()*/): ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/filters_field', array(
'name' => '<?php echo $name ?>',
- 'attributes' => $filterFields['<?php echo $name ?>']->getConfig('attributes', array('class' => 'xlarge')),
+ 'attributes' => $filterFields['<?php echo $name ?>']->getConfig(
+ 'attributes',
+ array('class' => sfTwitterBootstrap::guessLengthFromType($filterFields['<?php echo $name ?>']->getType()))
+ ),
'label' => $filterFields['<?php echo $name ?>']->getConfig('label'),
'help' => $filterFields['<?php echo $name ?>']->getConfig('help'),
'form' => $filters,
'field' => $filterFields['<?php echo $name ?>'],
- 'class' => 'xlarge sf_admin_'.strtolower($filterFields['<?php echo $name ?>']->getType()).' sf_admin_filter_field_<?php echo $name ?>',
)) ?]
[?php endif; ?]
</td>

0 comments on commit ef8947e

Please sign in to comment.
Something went wrong with that request. Please try again.