Permalink
Browse files

BUGFIX Don't show "Import" header if ImportForm isn't available in

ModelAdmin_Tools template
  • Loading branch information...
1 parent ed08b8c commit fc9e065e447aaa6c3ac5a7239d2903df050ca945 @halkyon halkyon committed Mar 15, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 admin/templates/Includes/ModelAdmin_Tools.ss
View
8 admin/templates/Includes/ModelAdmin_Tools.ss
@@ -3,10 +3,12 @@
<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
$SearchForm
- <h3 class="cms-panel-header"><% _t('IMPORT', 'Import') %></h3>
- $ImportForm
+ <% if ImportForm %>
+ <h3 class="cms-panel-header"><% _t('IMPORT', 'Import') %></h3>
+ $ImportForm
+ <% end_if %>
</div>
<div class="cms-panel-content-collapsed">
<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
</div>
-</div>
+</div>

0 comments on commit fc9e065

Please sign in to comment.