mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Add bootstrap button row template
API Add bootstrap button template BUG fix draft / published preview selector
This commit is contained in:
parent
a85ba1222b
commit
5a59c4f4b4
admin
client
templates/SilverStripe/Admin/Includes
themes/cms-forms/templates/SilverStripe/Forms
2
admin/client/dist/styles/bundle.css
vendored
2
admin/client/dist/styles/bundle.css
vendored
File diff suppressed because one or more lines are too long
@ -212,7 +212,7 @@ $border: 1px solid darken(#D9D9D9, 15%);
|
|||||||
of ss-ui-action-tabset
|
of ss-ui-action-tabset
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
&.action-menus.ss-tabset {
|
&.action-menus.ss-tabset {
|
||||||
margin-top: 2px;
|
margin-top: 5px;
|
||||||
|
|
||||||
//Style the tabs naivgation
|
//Style the tabs naivgation
|
||||||
ul.ui-tabs-nav{
|
ul.ui-tabs-nav{
|
||||||
|
@ -707,15 +707,15 @@ button.loading {
|
|||||||
/***************************************************************
|
/***************************************************************
|
||||||
* On/Off Switch.
|
* On/Off Switch.
|
||||||
* Example html set-up:
|
* Example html set-up:
|
||||||
* <fieldset class="switch-states">
|
* <div class="switch-states">
|
||||||
* <div class="switch">
|
* <div class="switch">
|
||||||
* <a href="my-page/?stage=Draft" class="first active"><span>Draft</span></a>
|
* <a href="my-page/?stage=Draft" class="first active"><span>Draft</span></a>
|
||||||
* <a href="my-page/?stage=Live" class="last"><span>Live</span></a>
|
* <a href="my-page/?stage=Live" class="last"><span>Live</span></a>
|
||||||
* </div>
|
* </div>
|
||||||
* </fieldset>
|
* </div>
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
fieldset.switch-states{
|
div.switch-states{
|
||||||
padding:0 20px 0 0;
|
padding: 0 20px 0 0;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
|
||||||
.switch{
|
.switch{
|
||||||
|
@ -47,7 +47,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" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
<div role="group" id="$HolderID" class="btn-group<% if $extraClass %> $extraClass<% end_if %>">
|
||||||
|
$Field
|
||||||
|
</div>
|
@ -0,0 +1,7 @@
|
|||||||
|
<% if $UseButtonTag %>
|
||||||
|
<button $getAttributesHTML('class') class="btn<% if $extraClass %> $extraClass<% end_if %>">
|
||||||
|
<% if $ButtonContent %>$ButtonContent<% else %>$Title.XML<% end_if %>
|
||||||
|
</button>
|
||||||
|
<% else %>
|
||||||
|
<input $getAttributesHTML('class') class="btn<% if $extraClass %> $extraClass<% end_if %>"/>
|
||||||
|
<% end_if %>
|
Loading…
Reference in New Issue
Block a user