silverstripe-framework/templates/forms/FormAction.ss

7 lines
174 B
Scheme

<% if UseButtonTag %>
<button $AttributesHTML>
<% if ButtonContent %>$ButtonContent<% else %>$Title<% end_if %>
</button>
<% else %>
<input $AttributesHTML>
<% end_if %>