silverstripe-webpack/app/templates/SilverStripe/Forms/Includes/Form.ss

28 lines
747 B
Scheme
Raw Normal View History

2020-07-01 11:02:39 +02:00
<% if $IncludeFormTag %>
<form $AttributesHTML>
<% end_if %>
<% if $Message %>
2021-01-13 20:03:21 +01:00
<div id="{$FormName}_error" class="form__message alert alert-{$MessageType} message $MessageType">$Message.RAW</div>
2020-07-01 11:02:39 +02:00
<% else %>
2021-01-13 20:03:21 +01:00
<div id="{$FormName}_error" class="form__message alert alert-{$MessageType} message {$MessageType}" style="display: none"></div>
2020-07-01 11:02:39 +02:00
<% end_if %>
2021-01-13 20:03:21 +01:00
<fieldset class="form__fieldset">
<% if $Legend %><legend class="form__legend">$Legend</legend><% end_if %>
2020-07-01 11:02:39 +02:00
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>
<% if $Actions %>
2021-01-13 20:03:21 +01:00
<div class="form__actions btn-toolbar">
2020-07-01 11:02:39 +02:00
<% loop $Actions %>
$Field
<% end_loop %>
</div>
<% end_if %>
<% if $IncludeFormTag %>
</form>
<% end_if %>