mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #4477 from nickbooties/nickbooties-patch-1
Fixes #4424
This commit is contained in:
commit
5911d50bca
@ -366,6 +366,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
$specRelations->push(new ArrayData(array('Name' => $name, 'Description' => $desc)));
|
||||
}
|
||||
$specHTML = $this->customise(array(
|
||||
'ClassName' => str_replace('\\', '_', $className),
|
||||
'ModelName' => Convert::raw2att($modelName),
|
||||
'Fields' => $specFields,
|
||||
'Relations' => $specRelations,
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="importSpec" id="SpecFor{$ModelName}">
|
||||
<a href="#SpecDetailsFor{$ModelName}" class="detailsLink"><% sprintf(_t('ModelAdmin_ImportSpec_ss.IMPORTSPECLINK', 'Show Specification for %s'),$ModelName) %></a>
|
||||
<div class="details" id="SpecDetailsFor{$ModelName}">
|
||||
<div class="importSpec" id="SpecFor{$ClassName}">
|
||||
<a href="#SpecDetailsFor{$ClassName}" class="detailsLink"><% sprintf(_t('ModelAdmin_ImportSpec_ss.IMPORTSPECLINK', 'Show Specification for %s'),$ModelName) %></a>
|
||||
<div class="details" id="SpecDetailsFor{$ClassName}">
|
||||
<h4><% sprintf(_t('ModelAdmin_ImportSpec_ss.IMPORTSPECTITLE', 'Specification for %s'),$ModelName) %></h4>
|
||||
<h5><% _t('ModelAdmin_ImportSpec_ss.IMPORTSPECFIELDS', 'Database columns') %></h5>
|
||||
<% loop $Fields %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user