mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
d0a9811087
Was inferred by the containing file previously, which is deprecated behaviour, because it obscures the fact that renaming an template file or copying template code will change the context of the translations. While it would be nice to use shorter and more readable namespaces, this change would remove all existing translations. Since there is no (easy) migration of entities to a new namespace, having verbose template code is the lesser of two evils.
22 lines
744 B
Scheme
22 lines
744 B
Scheme
<div class="importSpec" id="SpecFor{$ModelName}">
|
|
<a href="#SpecDetailsFor{$ModelName}" class="detailsLink"><% sprintf(_t('IMPORTSPECLINK', 'Show Specification for %s'),$ModelName) %></a>
|
|
<div class="details" id="SpecDetailsFor{$ModelName}">
|
|
<h4><% sprintf(_t('ModelAdmin_ImportSpec.ss.IMPORTSPECTITLE', 'Specification for %s'),$ModelName) %></h4>
|
|
<h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECFIELDS', 'Database columns') %></h5>
|
|
<% loop Fields %>
|
|
<dl>
|
|
<dt><em>$Name</em></dt>
|
|
<dd>$Description</dd>
|
|
</dl>
|
|
<% end_loop %>
|
|
|
|
<h5><% _t('ModelAdmin_ImportSpec.ss.IMPORTSPECRELATIONS', 'Relations') %></h5>
|
|
<% loop Relations %>
|
|
<dl>
|
|
<dt><em>$Name</em></dt>
|
|
<dd>$Description</dd>
|
|
</dl>
|
|
<% end_loop %>
|
|
</div>
|
|
</div>
|