Skip to content
This repository
Browse code

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

ModelAdmin_Tools template
  • Loading branch information...
commit fc9e065e447aaa6c3ac5a7239d2903df050ca945 1 parent ed08b8c
Sean Harvey authored March 15, 2012
8  admin/templates/Includes/ModelAdmin_Tools.ss
@@ -3,10 +3,12 @@
3 3
 		<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
4 4
 		$SearchForm
5 5
 
6  
-		<h3 class="cms-panel-header"><% _t('IMPORT', 'Import') %></h3>
7  
-		$ImportForm
  6
+		<% if ImportForm %>
  7
+			<h3 class="cms-panel-header"><% _t('IMPORT', 'Import') %></h3>
  8
+			$ImportForm
  9
+		<% end_if %>
8 10
 	</div>
9 11
 	<div class="cms-panel-content-collapsed">
10 12
 		<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
11 13
 	</div>
12  
-</div>
  14
+</div>

0 notes on commit fc9e065

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