mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-18 15:36:30 +02:00
5a59c4f4b4
API Add bootstrap button template BUG fix draft / published preview selector
8 lines
318 B
Scheme
8 lines
318 B
Scheme
<% 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 %>
|