<th class="columnTitle columnTemplateGroupName{if $sortField == 'templateGroupName'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templateGroupName&sortOrder={if $sortField == 'templateGroupName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.name{/lang}</a></th>
<th class="columnText columnTemplateGroupFolderName{if $sortField == 'templateGroupFolderName'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templateGroupFolderName&sortOrder={if $sortField == 'templateGroupFolderName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.folderName{/lang}</a></th>
<th class="columnDigits columnTemplates{if $sortField == 'templates'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templates&sortOrder={if $sortField == 'templates' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.templates{/lang}</a></th>
+ <th class="columnDigits columnStyles{if $sortField == 'styles'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=styles&sortOrder={if $sortField == 'styles' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.styles{/lang}</a></th>
{event name='columnHeads'}
</tr>
</td>
<td class="columnText columnTemplateGroupFolderName">{$templateGroup->templateGroupFolderName}</td>
<td class="columnDigits columnTemplates">{#$templateGroup->templates}</td>
+ <td class="columnDigits columnStyles">{#$templateGroup->styles}</td>
{event name='columns'}
</tr>
/**
* @inheritDoc
*/
- public $validSortFields = ['templateGroupID', 'templateGroupName', 'templateGroupFolderName', 'templates'];
+ public $validSortFields = ['templateGroupID', 'templateGroupName', 'templateGroupFolderName', 'templates', 'styles'];
/**
* @inheritDoc
protected function initObjectList() {
parent::initObjectList();
- $this->objectList->sqlSelects = "(SELECT COUNT(*) FROM wcf".WCF_N."_template WHERE templateGroupID = template_group.templateGroupID) AS templates";
+ $this->objectList->sqlSelects = "(SELECT COUNT(*) FROM wcf".WCF_N."_template WHERE templateGroupID = template_group.templateGroupID) AS templates,
+ (SELECT COUNT(*) FROM wcf".WCF_N."_style WHERE templateGroupID = template_group.templateGroupID) AS styles";
}
}
<item name="wcf.acp.template.group.copy"><![CDATA[Templategruppe kopieren]]></item>
<item name="wcf.acp.template.group.edit"><![CDATA[Templategruppe bearbeiten]]></item>
<item name="wcf.acp.template.group.templates"><![CDATA[Templates]]></item>
+ <item name="wcf.acp.template.group.styles"><![CDATA[Stile]]></item>
<item name="wcf.acp.template.error.noGroups"><![CDATA[Bevor {if LANGUAGE_USE_INFORMAL_VARIANT}du{else}Sie{/if} ein eigenes Template erstellen {if LANGUAGE_USE_INFORMAL_VARIANT}kannst{else}können{/if}, {if LANGUAGE_USE_INFORMAL_VARIANT}musst du{else}müssen Sie{/if} eine <a href="{link controller='TemplateGroupAdd'}{/link}">Templategruppe hinzufügen</a>.]]></item>
<item name="wcf.acp.template.group.folderName"><![CDATA[Verzeichnis]]></item>
<item name="wcf.acp.template.group.parentTemplateGroup"><![CDATA[Übergeordnete Templategruppe]]></item>
<item name="wcf.acp.template.group.copy"><![CDATA[Copy Template Group]]></item>
<item name="wcf.acp.template.group.edit"><![CDATA[Edit Template Group]]></item>
<item name="wcf.acp.template.group.templates"><![CDATA[Templates]]></item>
+ <item name="wcf.acp.template.group.styles"><![CDATA[Styles]]></item>
<item name="wcf.acp.template.error.noGroups"><![CDATA[You must create a <a href="{link controller='TemplateGroupAdd'}{/link}">template group</a> first.]]></item>
<item name="wcf.acp.template.group.folderName"><![CDATA[Directory]]></item>
<item name="wcf.acp.template.group.parentTemplateGroup"><![CDATA[Parent Template Group]]></item>