silverstripe-cms/templates/Includes/CMSMain_TreeTools.ss

77 lines
2.2 KiB
Scheme
Raw Normal View History

<div id="TreeActions">
<ul>
<li>
<a href="#TreeActions-create">
<% _t('CREATE','Create',PR_HIGH) %>
</a>
</li>
<li>
<a href="#TreeActions-search">
<% _t('SEARCH','Search',PR_HIGH) %>
</a>
</li>
<li>
<a href="#TreeActions-batchactions">
<% _t('BATCHACTIONS','Batch Actions',PR_HIGH) %>
</a>
</li>
</ul>
<div id="TreeActions-create">
<% control AddPageOptionsForm %>
<form class="actionparams" id="$FormName" action="$FormAction">
<% control Fields %>
$FieldHolder
<% end_control %>
<div>
<input class="action" type="submit" value="<% _t('GO','Go') %>" />
</div>
</form>
<% end_control %>
</div>
<div id="TreeActions-search">
$SearchTreeForm
</div>
<div id="TreeActions-batchactions">
<form class="actionparams" style="border:0" id="batchactions_options" action="">
<p><% _t('SELECTPAGESACTIONS','Select the pages that you want to change &amp; then click an action:') %></p>
<input type="hidden" name="csvIDs" />
<div>
<select id="choose_batch_action">
<% control BatchActionList %>
<option value="$Link" class="{doingText:'$DoingText'}">$Title</option>
<% end_control %>
</select>
<input id="batchactions_go" type="submit" class="action" value="Go" />
</div>
</form>
</div>
</div>
<div class="checkboxAboveTree" style="border-bottom:none">
Show: <select id="siteTreeFilterList">
<% control SiteTreeFilters %>
<option value="$ClassName">$Title</option>
<% end_control %>
</select> <img id="siteTreeFilterActionIndicator" style="display:none" src="cms/images/network-save.gif">
</div>
<div class="checkboxAboveTree">
<img id="checkboxActionIndicator" src="cms/images/network-save.gif">
<div>
<input type="checkbox" id="sortitems" />
<label for="sortitems"><% _t('ENABLEDRAGGING','Allow drag &amp; drop reordering', PR_HIGH) %></label>
</div>
</div>
<% if IsTranslatableEnabled %>
<div id="LangSelector_holder">
Language: $LangSelector
</div>
<% end_if %>