silverstripe-widgets/templates/WidgetAreaEditor.ss

32 lines
1.3 KiB
Scheme
Raw Normal View History

<div class="WidgetAreaEditor field" id="WidgetAreaEditor-$Name" name="$Name"<% if MaxWidgets %> maxwidgets="$MaxWidgets"<% end_if %>>
2012-04-18 23:15:45 +02:00
<input type="hidden" id="$Name" name="$IdxField" value="$Value" />
<div class="availableWidgetsHolder">
2013-07-08 12:28:02 +02:00
<h2><% _t('WidgetAreaEditor_ss.AVAILABLE', 'Available Widgets') %></h2>
<p class="message"><% _t('WidgetAreaEditor_ss.AVAILWIDGETS', 'Click a widget title below to use it on this page.') %></p>
2012-04-18 23:15:45 +02:00
<div class="availableWidgets" id="availableWidgets-$Name">
<% if AvailableWidgets %>
2013-03-19 10:13:15 +01:00
<% loop AvailableWidgets %>
2012-04-18 23:15:45 +02:00
$DescriptionSegment
2013-03-19 10:13:15 +01:00
<% end_loop %>
2012-04-18 23:15:45 +02:00
<% else %>
<div class="NoWidgets" id="NoWidgets-$Name">
2013-07-08 12:28:02 +02:00
<p><% _t('WidgetAreaEditor_ss.NOAVAIL', 'There are currently no widgets available.') %></p>
2012-04-18 23:15:45 +02:00
</div>
<% end_if %>
</div>
</div>
<div class="usedWidgetsHolder">
2013-07-08 12:28:02 +02:00
<h2><% _t('WidgetAreaEditor_ss.INUSE', 'Widgets currently used') %></h2>
<p class="message"><% _t('WidgetAreaEditor_ss.TOSORT', 'To sort currently used widgets on this page, drag them up and down.') %></p>
2012-04-18 23:15:45 +02:00
<div class="usedWidgets" id="usedWidgets-$Name">
<% if UsedWidgets %>
2013-03-19 10:13:15 +01:00
<% loop UsedWidgets %>
2012-04-18 23:15:45 +02:00
$EditableSegment
2013-03-19 10:13:15 +01:00
<% end_loop %>
2012-04-18 23:15:45 +02:00
<% else %>
<div class="NoWidgets" id="NoWidgets-$Name"></div>
<% end_if %>
</div>
</div>
</div>