{if $action == 'edit' && $__wcf->getSession()->getPermission('admin.style.canAddStyle')}
new WCF.ACP.Style.CopyStyle({@$style->styleID});
-
+
WCF.Language.addObject({
'wcf.acp.style.copyStyle.confirmMessage': '{lang}wcf.acp.style.copyStyle.confirmMessage{/lang}'
});
</nav>
</div>
-<form method="post" action="{if $action == 'add'}{link controller='StyleAdd'}{/link}{else}{link controller='StyleEdit'}{/link}{/if}">
+<form method="post" action="{if $action == 'add'}{link controller='StyleAdd'}{/link}{else}{link controller='StyleEdit' id=$styleID}{/link}{/if}">
<div class="tabMenuContainer" data-active="{$activeTabMenuItem}" data-store="activeTabMenuItem">
<nav class="tabMenu">
<ul>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
<input type="hidden" name="tmpHash" value="{$tmpHash}" />
- {if $styleID|isset}<input type="hidden" name="id" value="{@$styleID}" />{/if}
</div>
</form>
</nav>
</div>
-<form method="post" action="{link controller='StyleExport'}{/link}">
+<form method="post" action="{link controller='StyleExport' id=$styleID}{/link}">
<div class="container containerPadding marginTop shadow">
<fieldset>
<legend>{lang}wcf.acp.style.exportStyle.components{/lang}</legend>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.acp.style.button.exportStyle{/lang}" accesskey="s" />
- <input type="hidden" name="id" value="{@$styleID}" />
</div>
</form>
{if $__wcf->session->getPermission('admin.style.canAddStyle')}
<li><a href="{link controller='StyleAdd'}{/link}" title="{lang}wcf.acp.menu.link.style.add{/lang}" class="button"><img src="{@$__wcf->getPath()}icon/add.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
{/if}
-
+
{event name='largeButtons'}
{/content}
</ul>
{if $__wcf->session->getPermission('admin.style.canAddStyle')}
<li><a href="{link controller='StyleAdd'}{/link}" title="{lang}wcf.acp.menu.link.style.add{/lang}" class="button"><img src="{@$__wcf->getPath()}icon/add.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
{/if}
-
+
{event name='largeButtons'}
{/content}
</ul>
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf.acp.style
* @subpackage acp.form
- * @category Community Framework
+ * @category Community Framework
*/
class StyleAddForm extends ACPForm {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf.acp.style
* @subpackage acp.form
- * @category Community Framework
+ * @category Community Framework
*/
class StyleEditForm extends StyleAddForm {
/**
use wcf\data\package\Package;
use wcf\data\style\Style;
use wcf\data\style\StyleEditor;
-use wcf\form\AbstractForm;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\UserInputException;
use wcf\system\WCF;
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf.acp.style
* @subpackage acp.form
- * @category Community Framework
+ * @category Community Framework
*/
-class StyleExportForm extends AbstractForm {
+class StyleExportForm extends ACPForm {
+ /**
+ * @see wcf\acp\form\ACPForm::$activeMenuItem
+ */
+ public $activeMenuItem = 'wcf.acp.menu.link.style';
+
/**
* true, if style has custom icons
* @var boolean
*/
public $sortOrder = 'ASC';
+ /**
+ * @see wcf\page\MultipleLinkPage::initObjectList()
+ */
public function initObjectList() {
parent::initObjectList();
width: 200px;
}
}
-
+
.colorList {
> li {
float: left;