<parent>wcf.acp.menu.link.package</parent>
<permissions>admin.configuration.package.canUpdatePackage,admin.configuration.package.canUninstallPackage</permissions>
</acpmenuitem>
+ <acpmenuitem name="wcf.acp.menu.link.package.license">
+ <controller>wcf\acp\page\LicensePage</controller>
+ <parent>wcf.acp.menu.link.package.list</parent>
+ <permissions>admin.configuration.package.canEditServer</permissions>
+ <icon>cart-arrow-down</icon>
+ </acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.package.install">
<controller>wcf\acp\form\PackageStartInstallForm</controller>
<parent>wcf.acp.menu.link.package.list</parent>
<nav class="contentHeaderNavigation">
<ul>
{content}
+ {if $__wcf->session->getPermission('admin.configuration.package.canEditServer')}
+ <li>
+ <a href="{link controller='LicenseEdit'}{/link}" class="button">
+ {icon name='pencil'}
+ <span>{lang}wcf.acp.license.edit{/lang}</span>
+ </a>
+ </li>
+ {/if}
+
{event name='contentHeaderNavigation'}
{/content}
</ul>
<nav class="contentHeaderNavigation">
<ul>
{content}
+ {if $__wcf->session->getPermission('admin.configuration.package.canInstallPackage')}
+ <li>
+ <a href="{link controller='License'}{/link}" class="button">
+ {icon name='cart-arrow-down'}
+ <span>{lang}wcf.acp.license{/lang}</span>
+ </a>
+ </li>
+ {/if}
+
{if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage')}
- <li><a href="#" class="button jsButtonSearchForUpdates">{icon name='arrows-rotate'} <span>{lang}wcf.acp.package.searchForUpdates{/lang}</span></a></li>
+ <li><button type="button" class="button jsButtonSearchForUpdates">{icon name='arrows-rotate'} <span>{lang}wcf.acp.package.searchForUpdates{/lang}</span></button></li>
{/if}
{if $__wcf->session->getPermission('admin.configuration.package.canInstallPackage')}
*/
final class LicensePage extends AbstractPage
{
- // TODO: This should be the actual menu item.
- public $activeMenuItem = 'wcf.acp.menu.link.package';
+ public $activeMenuItem = 'wcf.acp.menu.link.package.license';
+
+ public $neededPermissions = ['admin.configuration.package.canInstallPackage'];
private array $licenseData;
<item name="wcf.acp.menu.link.option"><![CDATA[Optionen]]></item>
<item name="wcf.acp.menu.link.package"><![CDATA[Pakete]]></item>
<item name="wcf.acp.menu.link.package.install"><![CDATA[Paket installieren]]></item>
+ <item name="wcf.acp.menu.link.package.license"><![CDATA[Lizensierte Produkte]]></item>
<item name="wcf.acp.menu.link.package.server.list"><![CDATA[Paket-Server]]></item>
<item name="wcf.acp.menu.link.package.server.add"><![CDATA[Server hinzufügen]]></item>
<item name="wcf.acp.menu.link.package.list"><![CDATA[Pakete]]></item>
<item name="wcf.acp.menu.link.option"><![CDATA[Options]]></item>
<item name="wcf.acp.menu.link.package"><![CDATA[Packages]]></item>
<item name="wcf.acp.menu.link.package.install"><![CDATA[Install Package]]></item>
+ <item name="wcf.acp.menu.link.package.license"><![CDATA[Licensed Products]]></item>
<item name="wcf.acp.menu.link.package.server.list"><![CDATA[Package Servers]]></item>
<item name="wcf.acp.menu.link.package.server.add"><![CDATA[Add Server]]></item>
<item name="wcf.acp.menu.link.package.list"><![CDATA[Packages]]></item>