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

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
****************************************************************/
&.action-menus.ss-tabset {
margin-top: 2px;
margin-top: 5px;
//Style the tabs naivgation
ul.ui-tabs-nav{

View File

@ -707,15 +707,15 @@ button.loading {
/***************************************************************
* On/Off Switch.
* Example html set-up:
* <fieldset class="switch-states">
* <div class="switch-states">
* <div class="switch">
* <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>
* </div>
* </fieldset>
* </div>
****************************************************************/
fieldset.switch-states{
padding:0 20px 0 0;
div.switch-states{
padding: 0 20px 0 0;
margin-right: 5px;
.switch{

View File

@ -47,7 +47,7 @@
<% if $Actions %>
<div class="btn-toolbar">
<% loop $Actions %>
$Field
$FieldHolder
<% end_loop %>
<% if $Controller.LinkPreview %>
<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 %>