mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
00ffe72944
- Based on new (last) translation download from getlocalization.com - Removed untranslated strings. Getlocalization started including those at some point which is highly annoying, unnecessary and breaks the new transfix system, since it'll mark all of the english strings as actual translations - Avoid dots in entities. It confuses the Transifex YML parser - Removed some locales unknown to Transifex which didn't have any translations anyway - Removed "lolcat" locale, uses custom notation (en@lolcal) which SilverStripe's i18n system can't handle (needs mapping from SS naming to Zend naming) - Renamed "Te Reo/Maori" locale from "mi_NZ" to "mi" (Transifex/CLDR notation) - Namespaced all entities used in templates (deprecated usage) - Converted dots to underscores where template filenames are used for namespaces, since Transifex YML parsing handles them as separate YML keys otherwise - Removed whitespace in entity names, SilverStripe i18n can't handle it - Only allow selection of locales registered through i18n::$all_locales to avoid issues with unknown locales in Zend's CLDR database
83 lines
2.7 KiB
Scheme
83 lines
2.7 KiB
Scheme
<div id="$id" class="$CSSClasses $extraClass field nolabel" href="$CurrentLink">
|
|
<div class="middleColumn">
|
|
<% if Markable %>
|
|
<% include TableListField_SelectOptions %>
|
|
<% end_if %>
|
|
<% include TableListField_PageControls %>
|
|
<table class="data">
|
|
<thead>
|
|
<tr>
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<% loop Headings %>
|
|
<th class="$Name">
|
|
<% if IsSortable %>
|
|
<span class="sortTitle">
|
|
<a href="$SortLink">$Title</a>
|
|
</span>
|
|
<span class="sortLink <% if SortBy %><% else %>sortLinkHidden<% end_if %>">
|
|
<a href="$SortLink">
|
|
<% if SortDirection = desc %>
|
|
<img src="$ModulePath(framework)/images/bullet_arrow_up.png" alt="<% _t('ComplexTableField_ss.SORTASC', 'Sort ascending') %>" />
|
|
<% else %>
|
|
<img src="$ModulePath(framework)/images/bullet_arrow_down.png" alt="<% _t('ComplexTableField_ss.SORTDESC', 'Sort descending') %>" />
|
|
<% end_if %>
|
|
</a>
|
|
|
|
</span>
|
|
<% else %>
|
|
$Title
|
|
<% end_if %>
|
|
</th>
|
|
<% end_loop %>
|
|
<% loop Actions %><th width="18"> </th><% end_loop %>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<% if HasSummary %>
|
|
<tr class="summary">
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<td><i>$SummaryTitle</i></td>
|
|
<% loop SummaryFields %>
|
|
<td<% if Function %> class="$Function"<% end_if %>>$SummaryValue</td>
|
|
<% end_loop %>
|
|
<% loop Actions %><td width="18"> </td><% end_loop %>
|
|
</tr>
|
|
<% end_if %>
|
|
<% if Can(add) %>
|
|
<tr>
|
|
<% if Markable %><td width="18"> </td><% end_if %>
|
|
<td colspan="$ItemCount">
|
|
<input type="hidden" id="{$id}_PopupHeight" value="$PopupHeight" disabled="disabled">
|
|
<input type="hidden" id="{$id}_PopupWidth" value="$PopupWidth" disabled="disabled">
|
|
<a class="popuplink addlink" href="$AddLink" alt="add"><img src="$ModulePath(framework)/images/add.gif" alt="<% _t('ComplexTableField_ss.ADDITEM', 'add') %>" />
|
|
<% sprintf(_t('ADDITEM', 'Add %s', 'Add [name]'),$Title) %>
|
|
</a>
|
|
</td>
|
|
<% loop Actions %><td width="18"> </td><% end_loop %>
|
|
</tr>
|
|
<% end_if %>
|
|
</tfoot>
|
|
<tbody>
|
|
<% if Items %>
|
|
<% loop Items %>
|
|
<% include TableListField_Item %>
|
|
<% end_loop %>
|
|
<% else %>
|
|
<tr class="notfound">
|
|
<% if Markable %><th width="18"> </th><% end_if %>
|
|
<td colspan="$Headings.Count"><i><% _t('ComplexTableField_ss.NOITEMSFOUND', 'No items found') %></i></td>
|
|
<% loop Actions %><td width="18"> </td><% end_loop %>
|
|
</tr>
|
|
<% end_if %>
|
|
</tbody>
|
|
</table>
|
|
<% if Utility %>
|
|
<div class="utility">
|
|
<% loop Utility %>
|
|
<span class="item"><a href="$Link" target="_blank">$Title</a></span>
|
|
<% end_loop %>
|
|
</div>
|
|
<% end_if %>
|
|
</div>
|
|
</div>
|