mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API use new bootstrap button row template
This commit is contained in:
parent
07ba92c5b7
commit
760caaab44
@ -2214,7 +2214,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$existsOnLive = $this->isPublished();
|
||||
|
||||
// Major actions appear as buttons immediately visible as page actions.
|
||||
$majorActions = CompositeField::create()->setName('MajorActions')->setTag('fieldset')->addExtraClass('btn-group ss-ui-buttonset noborder');
|
||||
$majorActions = CompositeField::create()
|
||||
->setName('MajorActions');
|
||||
$majorActions->setFieldHolderTemplate(get_class($majorActions) . '_holder_buttongroup');
|
||||
|
||||
// Minor options are hidden behind a drop-up and appear as links (although they are still FormActions).
|
||||
$rootTabSet = new TabSet('ActionMenus');
|
||||
|
@ -20,7 +20,7 @@
|
||||
<% if $Actions %>
|
||||
<div class="btn-toolbar">
|
||||
<% loop $Actions %>
|
||||
$Field
|
||||
$FieldHolder
|
||||
<% end_loop %>
|
||||
<% if $Controller.LinkPreview %>
|
||||
<a href="$Controller.LinkPreview" target="_cmsPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||
|
Loading…
Reference in New Issue
Block a user