1
0
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:
Damian Mooyman 2016-09-21 15:00:58 +12:00
parent a85ba1222b
commit 5a59c4f4b4
6 changed files with 17 additions and 7 deletions
admin
client
dist/styles
src/styles/legacy
templates/SilverStripe/Admin/Includes
themes/cms-forms/templates/SilverStripe/Forms

File diff suppressed because one or more lines are too long

View File

@ -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{

View File

@ -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{

View File

@ -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">

View File

@ -0,0 +1,3 @@
<div role="group" id="$HolderID" class="btn-group<% if $extraClass %> $extraClass<% end_if %>">
$Field
</div>

View File

@ -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 %>