Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

ModelAdmin_Tools template
  • Loading branch information...
commit fc9e065e447aaa6c3ac5a7239d2903df050ca945 1 parent ed08b8c
@halkyon halkyon authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.