silverstripe-framework/templates/Includes/Form.ss

26 lines
531 B
Scheme
Raw Normal View History

<% if IncludeFormTag %>
<form $FormAttributes>
<% end_if %>
<% if Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>
<fieldset>
<% control Fields %>
$FieldHolder
<% end_control %>
<div class="clear"><!-- --></div>
</fieldset>
<% if Actions %>
<p class="Actions">
<% control Actions %>
$Field
<% end_control %>
</p>
<% end_if %>
<% if IncludeFormTag %>
</form>
<% end_if %>