Author: francois
Date: 2010-03-19 17:14:09 +0100 (Fri, 19 Mar 2010)
New Revision: 28624

Modified:
   
plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_list_th_tabular.php
Log:
[sfPropel15Plugin] allowed non-standard fields to be sortable in admin 
generator list

Modified: 
plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_list_th_tabular.php
===================================================================
--- 
plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_list_th_tabular.php
        2010-03-19 15:00:06 UTC (rev 28623)
+++ 
plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/templates/_list_th_tabular.php
        2010-03-19 16:14:09 UTC (rev 28624)
@@ -1,7 +1,7 @@
 <?php foreach ($this->configuration->getValue('list.display') as $name => 
$field): ?>
 [?php slot('sf_admin.current_header') ?]
 <th class="sf_admin_<?php echo strtolower($field->getType()) ?> 
sf_admin_list_th_<?php echo $name ?>">
-<?php if ($field->isReal()): ?>
+<?php if ($field->isReal() || $field->getConfig('is_sortable', false, false)): 
?>
   [?php if ('<?php echo $name ?>' == $sort[0]): ?]
     [?php echo link_to(__('<?php echo $field->getConfig('label', '', true) 
?>', array(), '<?php echo $this->getI18nCatalogue() ?>'), '@<?php echo 
$this->getUrlForAction('list') ?>', array('query_string' => 'sort=<?php echo 
$name ?>&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?]
     [?php echo 
image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', 
array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], 
array(), 'sf_admin'))) ?]

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" 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/symfony-svn?hl=en.

Reply via email to