mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
91cfcb8229
Remove hardcoded references to pages and SiteTree Remove assumption that records are versioned Remove or validate assumptions about methods on the model class Improve general architecture of CMSMain
48 lines
1.9 KiB
Scheme
48 lines
1.9 KiB
Scheme
<div class="flexbox-area-grow cms-content $Controller.BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">
|
|
<form $FormAttributes data-layout-type="border">
|
|
<div class="toolbar toolbar--north">
|
|
<div class="toolbar__navigation">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb__item">
|
|
<% if $Controller.SectionTitle %>
|
|
$Controller.SectionTitle
|
|
<% else %>
|
|
<%t SilverStripe\CMS\Controllers\CMSMain.Title 'Data Models'%>
|
|
<% end_if %>
|
|
</li>
|
|
<li class="breadcrumb__item breadcrumb__item--last breadcrumb__item--no-crumb">
|
|
<h2 class="breadcrumb__item-title breadcrumb__item-title--last">
|
|
<%t SilverStripe\Admin\LeftAndMain.NewRecord 'New {name}' name=$Controller.getRecord('singleton').i18n_singular_name() %>
|
|
</h2>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel--padded panel--scrollable flexbox-area-grow">
|
|
<% if $Message %>
|
|
<p id="{$FormName}_error" class="alert $AlertType">$Message</p>
|
|
<% else %>
|
|
<p id="{$FormName}_error" class="alert $AlertType" style="display: none"></p>
|
|
<% end_if %>
|
|
|
|
<fieldset>
|
|
<% if $Legend %><legend>$Legend</legend><% end_if %>
|
|
<% loop $Fields %>
|
|
$FieldHolder
|
|
<% end_loop %>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="toolbar--south">
|
|
<% if $Actions %>
|
|
<div class="btn-toolbar">
|
|
<% loop $Actions %>
|
|
$Field
|
|
<% end_loop %>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
</form>
|
|
</div>
|