mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
Broke because the <form> tag was returned, while the client logic was expecting the whole <div> including the <form>. Fixed to display the button bar at the bottom, and tested with validation errors as well as switching from/to the panel via ajax.
29 lines
678 B
Scheme
29 lines
678 B
Scheme
<form $FormAttributes data-layout-type="border">
|
|
|
|
<div class="cms-content-fields center">
|
|
<% 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>
|
|
<% if $Legend %><legend>$Legend</legend><% end_if %>
|
|
<% loop $Fields %>
|
|
$FieldHolder
|
|
<% end_loop %>
|
|
<div class="clear"><!-- --></div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="cms-content-actions cms-content-controls south">
|
|
<% if $Actions %>
|
|
<div class="Actions">
|
|
<% loop $Actions %>
|
|
$Field
|
|
<% end_loop %>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
</form>
|