silverstripe-cms/templates/SilverStripe/CMS/Controllers/Includes/CMSMain_ViewControls.ss

18 lines
909 B
Scheme
Raw Normal View History

<div class="view-controls">
2016-12-12 01:53:05 +01:00
<button id="filters-button" class="btn btn-secondary icon-button font-icon-search btn--icon-large no-text" title="<% _t('CMSPagesController_Tools_ss.FILTER', 'Filter') %>"></button>
<div class="icon-button-group">
<%-- Change to data-pjax-target="Content-PageList" to enable in-edit listview --%>
<a class="cms-panel-link icon-button font-icon-tree page-view-link <% if $ViewState == 'treeview' %>active<% end_if %>"
href="$LinkTreeView.ATT"
data-view="treeview"
data-pjax-target="$PJAXTarget.ATT"
title="<% _t('CMSPagesController.TreeView', 'Tree View') %>"
></a><a class="cms-panel-link icon-button font-icon-list page-view-link <% if $ViewState == 'listview' %>active<% end_if %>"
href="$LinkListView.ATT"
data-view="listview"
data-pjax-target="$PJAXTarget.ATT"
title="<% _t('CMSPagesController.ListView', 'List View') %>"
></a>
</div>
</div>