mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1618 from open-sausages/pulls/4.0/fix-cms-buttons
API use new bootstrap button row template
This commit is contained in:
commit
63f69b55db
@ -2214,7 +2214,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$existsOnLive = $this->isPublished();
|
$existsOnLive = $this->isPublished();
|
||||||
|
|
||||||
// Major actions appear as buttons immediately visible as page actions.
|
// 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).
|
// Minor options are hidden behind a drop-up and appear as links (although they are still FormActions).
|
||||||
$rootTabSet = new TabSet('ActionMenus');
|
$rootTabSet = new TabSet('ActionMenus');
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<% if $Actions %>
|
<% if $Actions %>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<% loop $Actions %>
|
<% loop $Actions %>
|
||||||
$Field
|
$FieldHolder
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<% if $Controller.LinkPreview %>
|
<% if $Controller.LinkPreview %>
|
||||||
<a href="$Controller.LinkPreview" target="_cmsPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
<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