mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Fixed template usage
This commit is contained in:
parent
63a25eae74
commit
7be42acb0d
@ -1,3 +1,3 @@
|
||||
<% control WidgetControllers %>
|
||||
<% loop WidgetControllers %>
|
||||
$WidgetHolder
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
@ -5,9 +5,9 @@
|
||||
<p class="message"><% _t('AVAILWIDGETS', 'Click a widget title below to use it on this page.') %></p>
|
||||
<div class="availableWidgets" id="availableWidgets-$Name">
|
||||
<% if AvailableWidgets %>
|
||||
<% control AvailableWidgets %>
|
||||
<% loop AvailableWidgets %>
|
||||
$DescriptionSegment
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
||||
<% else %>
|
||||
<div class="NoWidgets" id="NoWidgets-$Name">
|
||||
<p><% _t('NOAVAIL', 'There are currently no widgets available.') %></p>
|
||||
@ -21,9 +21,9 @@
|
||||
|
||||
<div class="usedWidgets" id="usedWidgets-$Name">
|
||||
<% if UsedWidgets %>
|
||||
<% control UsedWidgets %>
|
||||
<% loop UsedWidgets %>
|
||||
$EditableSegment
|
||||
<% end_control %>
|
||||
<% end_loop %>
|
||||
<% else %>
|
||||
<div class="NoWidgets" id="NoWidgets-$Name"></div>
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user