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
|
$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>
|
<p class="message"><% _t('AVAILWIDGETS', 'Click a widget title below to use it on this page.') %></p>
|
||||||
<div class="availableWidgets" id="availableWidgets-$Name">
|
<div class="availableWidgets" id="availableWidgets-$Name">
|
||||||
<% if AvailableWidgets %>
|
<% if AvailableWidgets %>
|
||||||
<% control AvailableWidgets %>
|
<% loop AvailableWidgets %>
|
||||||
$DescriptionSegment
|
$DescriptionSegment
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="NoWidgets" id="NoWidgets-$Name">
|
<div class="NoWidgets" id="NoWidgets-$Name">
|
||||||
<p><% _t('NOAVAIL', 'There are currently no widgets available.') %></p>
|
<p><% _t('NOAVAIL', 'There are currently no widgets available.') %></p>
|
||||||
@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
<div class="usedWidgets" id="usedWidgets-$Name">
|
<div class="usedWidgets" id="usedWidgets-$Name">
|
||||||
<% if UsedWidgets %>
|
<% if UsedWidgets %>
|
||||||
<% control UsedWidgets %>
|
<% loop UsedWidgets %>
|
||||||
$EditableSegment
|
$EditableSegment
|
||||||
<% end_control %>
|
<% end_loop %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="NoWidgets" id="NoWidgets-$Name"></div>
|
<div class="NoWidgets" id="NoWidgets-$Name"></div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user