{/if}
{if $form->showsSuccessMessage()}
- <p class="success">{@$form->getSuccessMessage()}</p>
+ <p class="success">
+ <span class="icon icon16 fa fa-check green"></span>
+ <span>{@$form->getSuccessMessage()}</span>
+ {if !$objectEditLink|empty}
+ <a href="{$objectEditLink}" class="button buttonPrimary small"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.global.success.add.button.editCreatedObject{/lang}</span></a>
+ {/if}
+ </p>
{/if}
{if $form->isAjax()}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form id="adForm" method="post" action="{if $action == 'add'}{link controller='AdAdd'}{/link}{else}{link controller='AdEdit' object=$adObject}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success" role="status">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $action == 'edit'}
<p class="info jsArticleNoticeTrash"{if !$article->isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}</p>
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='BBCodeAdd'}{/link}{else}{link controller='BBCodeEdit' object=$bbcode}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='BBCodeMediaProviderAdd'}{/link}{else}{link controller='BBCodeMediaProviderEdit' object=$mediaProvider}{/link}{/if}">
<div class="section">
</div>
</form>
-{include file='footer'}
\ No newline at end of file
+{include file='footer'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $action == 'edit' && !$lastVersion|empty}
<p class="info">{lang}wcf.acp.box.lastVersion{/lang}</p>
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form id="adForm" method="post" action="{if $action == 'add'}{link controller='CaptchaQuestionAdd'}{/link}{else}{link controller='CaptchaQuestionEdit' id=$captchaQuestion->questionID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller=$addController application=$objectType->getProcessor()->getApplication()}{/link}{else}{link controller=$editController application=$objectType->getProcessor()->getApplication() object=$category}{/link}{/if}">
{event name='beforeSections'}
</div>
</form>
-{include file='footer'}
\ No newline at end of file
+{include file='footer'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action === 'add'}{link controller='ContactOptionAdd'}{/link}{else}{link controller='ContactOptionEdit' id=$optionID}{/link}{/if}">
{include file='customOptionAdd'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action === 'add'}{link controller='ContactRecipientAdd'}{/link}{else}{link controller='ContactRecipientEdit' id=$recipientID}{/link}{/if}">
<div class="section">
<p class="info">{lang}wcf.acp.cronjob.intro{/lang}</p>
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='CronjobAdd'}{/link}{else}{link controller='CronjobEdit' id=$cronjobID}{/link}{/if}">
<div class="section">
--- /dev/null
+{if $success|isset}
+ <p class="success" role="status">
+ <span class="icon icon16 fa fa-check green"></span>
+ <span>{lang}wcf.global.success.{$action}{/lang}</span>
+
+ {if $action == 'add' && !$objectEditLink|empty}
+ <a href="{$objectEditLink}" class="button buttonPrimary small"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.global.success.add.button.editCreatedObject{/lang}</span></a>
+ {/if}
+ </p>
+{/if}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $labelGroupList|count}
<form method="post" action="{if $action == 'add'}{link controller='LabelAdd'}{/link}{else}{link controller='LabelEdit' object=$label}{/link}{/if}">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='LabelGroupAdd'}{/link}{else}{link controller='LabelGroupEdit' object=$labelGroup}{/link}{/if}">
<div class="section tabMenuContainer">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'edit'}{link controller='LanguageEdit' id=$languageID}{/link}{else}{link controller='LanguageAdd'}{/link}{/if}">
<section class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='MenuAdd'}{/link}{else}{link controller='MenuEdit' id=$menuID}{/link}{/if}">
{if $action == 'edit' && $menu->identifier == 'com.woltlab.wcf.MainMenu'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='MenuItemAdd'}{/link}{else}{link controller='MenuItemEdit' id=$itemID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form id="formContainer" method="post" action="{if $action == 'add'}{link controller='NoticeAdd'}{/link}{else}{link controller='NoticeEdit' object=$notice}{/link}{/if}">
<div class="section">
<p class="warning">{lang}wcf.acp.updateServer.lastErrorMessage{/lang}<br>{$packageUpdateServer->errorMessage}</p>
{/if}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='PackageUpdateServerAdd'}{/link}{else}{link controller='PackageUpdateServerEdit' id=$packageUpdateServerID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $action == 'edit' && !$lastVersion|empty}
<p class="info">{lang}wcf.acp.page.lastVersion{/lang}</p>
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='PaidSubscriptionAdd'}{/link}{else}{link controller='PaidSubscriptionEdit' id=$subscriptionID}{/link}{/if}">
<div class="section">
</div>
</form>
-{include file='footer'}
\ No newline at end of file
+{include file='footer'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='PaidSubscriptionUserAdd' id=$subscriptionID}{/link}{else}{link controller='PaidSubscriptionUserEdit' id=$subscriptionUserID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='SmileyAdd'}{/link}{else}{link controller='SmileyEdit' id=$smiley->smileyID}{/link}{/if}" enctype="multipart/form-data">
<section class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='StyleAdd'}{/link}{else}{link controller='StyleEdit' id=$styleID}{/link}{/if}">
<div class="section tabMenuContainer" data-active="{$activeTabMenuItem}" data-store="activeTabMenuItem" id="styleTabMenuContainer">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='TagAdd'}{/link}{else}{link controller='TagEdit' object=$tagObj}{/link}{/if}">
<div class="section">
</div>
</form>
-{include file='footer'}
\ No newline at end of file
+{include file='footer'}
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $availableTemplateGroups|count}
<form method="post" action="{if $action == 'add'}{link controller='TemplateAdd'}{/link}{else}{link controller='TemplateEdit' id=$templateID}{/link}{/if}">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='TemplateGroupAdd'}{/link}{else}{link controller='TemplateGroupEdit' id=$templateGroupID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $trophyCategories|count}
<form id="trophyForm" method="post" action="{if $action == 'add'}{link controller='TrophyAdd'}{/link}{else}{link controller='TrophyEdit' id=$trophy->getObjectID()}{/link}{/if}">
<p class="warning">{lang}wcf.acp.user.edit.warning.selfEdit{/lang}</p>
{/if}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='UserAdd'}{/link}{else}{link controller='UserEdit' id=$userID}{/link}{/if}">
<div class="section tabMenuContainer">
<p class="warning">{lang}wcf.acp.group.edit.warning.selfIsMember{/lang}</p>
{/if}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='UserGroupAdd'}{/link}{else}{link controller='UserGroupEdit' id=$groupID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='UserGroupAssignmentAdd'}{/link}{else}{link controller='UserGroupAssignmentEdit' object=$assignment}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if !$availableCategories|empty}
<form method="post" action="{if $action == 'add'}{link controller='UserOptionAdd'}{/link}{else}{link controller='UserOptionEdit' id=$optionID}{/link}{/if}">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='UserOptionCategoryAdd'}{/link}{else}{link controller='UserOptionCategoryEdit' id=$categoryID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
<form method="post" action="{if $action == 'add'}{link controller='UserRankAdd'}{/link}{else}{link controller='UserRankEdit' id=$rankID}{/link}{/if}">
<div class="section">
{include file='formError'}
-{if $success|isset}
- <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
-{/if}
+{include file='formSuccess'}
{if $hasSuitableTrophy}
<form method="post" action="{if $action == 'add'}{link controller='UserTrophyAdd'}{/link}{else}{link controller='UserTrophyEdit' id=$userTrophy->getObjectID()}{/link}{/if}">
use wcf\system\ad\location\IAdLocation;
use wcf\system\condition\ConditionHandler;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$condition->getProcessor()->reset();
}
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('AdEdit', ['id' => $returnValues['returnValues']->adID]),
+ ]);
}
/**
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleEdit', ['id' => $article->getObjectID()]),
+ ]);
// reset variables
$this->publicationDate = '';
<?php
namespace wcf\acp\form;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
parent::save();
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('ArticleCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ ]);
+
$this->sortField = 'publicationDate';
$this->sortOrder = 'DESC';
}
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeEdit', ['id' => $returnValues['returnValues']->bbcodeID]),
+ ]);
}
/**
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$this->title = $this->regex = $this->html = $this->className = '';
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('BBCodeMediaProviderEdit', ['id' => $provider->providerID]),
+ ]);
}
/**
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('BoxEdit', ['id' => $box->getObjectID()]),
+ ]);
// reset variables
$this->cssClassName = $this->name = '';
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$this->isDisabled = 0;
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('CaptchaQuestionEdit', ['id' => $questionID]),
+ ]);
}
/**
use wcf\data\contact\option\ContactOption;
use wcf\data\contact\option\ContactOptionAction;
use wcf\data\contact\option\ContactOptionEditor;
+use wcf\system\request\LinkHandler;
+use wcf\system\WCF;
/**
* Shows the contact option add form.
$this->getI18nValue('optionTitle')->setLanguageItem('wcf.contact.option', 'wcf.contact', 'com.woltlab.wcf');
$this->getI18nValue('optionDescription')->setLanguageItem('wcf.contact.optionDescription', 'wcf.contact', 'com.woltlab.wcf');
}
+
+ /**
+ * @inheritDoc
+ */
+ public function save() {
+ parent::save();
+
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactOptionEdit', ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]),
+ ]);
+ }
}
* @inheritDoc
*/
public $action = 'edit';
+
+ /**
+ * @inheritDoc
+ */
+ public function save() {
+ AbstractCustomOptionForm::save();
+ }
}
use wcf\system\email\Mailbox;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
/**
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('ContactRecipientEdit', ['id' => $recipientID]),
+ ]);
// reset values
$this->email = $this->name = 0;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\CronjobUtil;
use wcf\util\StringUtil;
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('CronjobEdit', ['id' => $cronjobID]),
+ ]);
}
/**
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
'showOrder' => $this->showOrder
])]);
$this->objectAction->executeAction();
+ $returnValues = $this->objectAction->getReturnValues();
+ $labelID = $returnValues['returnValues']->labelID;
if (!I18nHandler::getInstance()->isPlainValue('label')) {
- $returnValues = $this->objectAction->getReturnValues();
- $labelID = $returnValues['returnValues']->labelID;
I18nHandler::getInstance()->save('label', 'wcf.acp.label.label'.$labelID, 'wcf.acp.label', 1);
// update group name
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelEdit', ['id' => $labelID]),
+ ]);
}
/**
use wcf\system\label\object\type\ILabelObjectTypeHandler;
use wcf\system\label\object\type\LabelObjectTypeContainer;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$this->setObjectTypeRelations();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('LabelGroupEdit', ['id' => $returnValues['returnValues']->groupID]),
+ ]);
I18nHandler::getInstance()->reset();
}
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\language\LanguageFactory;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('LanguageEdit', ['id' => $this->language->languageID]),
+ ]);
// reset values
$this->countryCode = $this->languageCode = $this->languageName = '';
<?php
namespace wcf\acp\form;
+use wcf\system\request\LinkHandler;
+use wcf\system\WCF;
/**
* Shows the media category add form.
* @inheritDoc
*/
public $objectTypeName = 'com.woltlab.wcf.media.category';
+
+ /**
+ * @inheritDoc
+ */
+ public function save() {
+ parent::save();
+
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('MediaCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ ]);
+ }
}
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\language\LanguageFactory;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
use wcf\util\StringUtil;
$this->pageIDs = $this->aclValues = [];
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuEdit', ['id' => $menuEditor->menuID]),
+ ]);
I18nHandler::getInstance()->reset();
}
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\page\handler\ILookupPageHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('MenuItemEdit', ['id' => $menuItem->itemID]),
+ ]);
// reset variables
$this->isInternalLink = true;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
$condition->getProcessor()->reset();
}
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('NoticeEdit', ['id' => $returnValues['returnValues']->noticeID]),
+ ]);
}
/**
use wcf\data\package\update\server\PackageUpdateServerAction;
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\system\WCFACP;
use wcf\util\StringUtil;
'loginUsername' => $this->loginUsername,
'loginPassword' => $this->loginPassword
])]);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
$this->saved();
// reset values
$this->serverURL = $this->loginUsername = $this->loginPassword = '';
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('PackageUpdateServerEdit', ['id' => $returnValues['returnValues']->packageUpdateServerID]),
+ ]);
}
/**
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('PageEdit', ['id' => $page->pageID]),
+ ]);
// reset variables
$this->parentPageID = $this->isDisabled = $this->isLandingPage = $this->availableDuringOfflineMode = $this->enableShareButtons = $this->addPageToMainMenu = 0;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\payment\method\PaymentMethodHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('PaidSubscriptionEdit', ['id' => $returnValues['returnValues']->subscriptionID]),
+ ]);
}
/**
*/
public $neededModules = ['MODULE_LIKE'];
+ /**
+ * @inheritDoc
+ */
+ public $objectEditLinkController = 'ReactionTypeEdit';
+
/**
* @inheritDoc
*/
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\FileUtil;
use wcf\util\ImageUtil;
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyEdit', ['id' => $smileyID]),
+ ]);
}
/**
<?php
namespace wcf\acp\form;
+use wcf\system\request\LinkHandler;
+use wcf\system\WCF;
/**
* Shows the smiley category add form.
* @inheritDoc
*/
public $neededModules = ['MODULE_SMILEY'];
+
+ /**
+ * @inheritDoc
+ */
+ public function save() {
+ parent::save();
+
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('SmileyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ ]);
+ }
}
use wcf\system\image\ImageHandler;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\style\exception\FontDownloadFailed;
use wcf\system\style\FontManager;
use wcf\system\WCF;
// reload variables
$this->readStyleVariables();
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('StyleEdit', ['id' => $style->styleID]),
+ ]);
}
/**
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\language\LanguageFactory;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
use wcf\util\StringUtil;
$this->synonyms = [];
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('TagEdit', ['id' => $returnValues['returnValues']->tagID]),
+ ]);
}
/**
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
'packageID' => $this->packageID,
'templateGroupID' => $this->templateGroupID
]), 'source' => $this->templateSource]);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
$this->saved();
// reset values
$this->templateGroupID = 0;
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateEdit', ['id' => $returnValues['returnValues']->templateID]),
+ ]);
}
/**
use wcf\data\template\group\TemplateGroupAction;
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\FileUtil;
use wcf\util\StringUtil;
'templateGroupFolderName' => $this->templateGroupFolderName,
'parentTemplateGroupID' => $this->parentTemplateGroupID ?: null
])]);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
$this->saved();
// reset values
$this->parentTemplateGroupID = 0;
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('TemplateGroupEdit', ['id' => $returnValues['returnValues']->templateGroupID]),
+ ]);
}
/**
use wcf\system\condition\ConditionHandler;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nValue;
+use wcf\system\request\LinkHandler;
use wcf\system\trophy\condition\TrophyConditionHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
]),
'tmpHash' => $this->tmpHash
]);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
- $this->saveI18n($this->objectAction->getReturnValues()['returnValues'], TrophyEditor::class);
+ $this->saveI18n($returnValues['returnValues'], TrophyEditor::class);
// transform conditions array into one-dimensional array
$conditions = [];
}
}
- ConditionHandler::getInstance()->createConditions($this->objectAction->getReturnValues()['returnValues']->trophyID, $conditions);
+ ConditionHandler::getInstance()->createConditions($returnValues['returnValues']->trophyID, $conditions);
$this->reset();
+
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyEdit', ['id' => $returnValues['returnValues']->trophyID]),
+ ]);
}
/**
<?php
namespace wcf\acp\form;
+use wcf\system\request\LinkHandler;
+use wcf\system\WCF;
/**
* Represents the trophy category add form.
* @inheritDoc
*/
public $neededPermissions = ['admin.trophy.canManageTrophy'];
+
+ /**
+ * @inheritDoc
+ */
+ public function save() {
+ parent::save();
+
+ WCF::getTPL()->assign([
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('TrophyCategoryEdit', ['id' => $this->objectAction->getReturnValues()['returnValues']->categoryID]),
+ ]);
+ }
}
use wcf\system\exception\UserInputException;
use wcf\system\html\input\HtmlInputProcessor;
use wcf\system\language\LanguageFactory;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
use wcf\util\StringUtil;
}
$this->objectAction = new UserAction([], 'create', $data);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
$this->saved();
// show empty add form
WCF::getTPL()->assign([
- 'success' => true
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserEdit', ['id' => $returnValues['returnValues']->userID]),
]);
// reset values
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\option\user\group\UserGroupOptionHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\system\WCFACP;
use wcf\util\StringUtil;
$this->saved();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupEdit', ['id' => $groupID]),
+ ]);
// reset values
$this->groupName = '';
use wcf\form\AbstractForm;
use wcf\system\condition\ConditionHandler;
use wcf\system\exception\UserInputException;
+use wcf\system\request\LinkHandler;
use wcf\system\user\group\assignment\UserGroupAssignmentHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
}
}
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserGroupAssignmentEdit', ['id' => $returnValues['returnValues']->assignmentID]),
+ ]);
}
/**
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
I18nHandler::getInstance()->reset();
// show success
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionEdit', ['id' => $userOption->optionID]),
+ ]);
}
/**
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
/**
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserOptionCategoryEdit', ['id' => $categoryID]),
+ ]);
}
/**
use wcf\system\exception\UserInputException;
use wcf\system\language\I18nHandler;
use wcf\system\Regex;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
use wcf\util\StringUtil;
'requiredGender' => $this->requiredGender,
'hideTitle' => ($this->hideTitle ? 1 : 0)
])]);
- $this->objectAction->executeAction();
+ $returnValues = $this->objectAction->executeAction();
+ $rankID = $returnValues['returnValues']->rankID;
if (!I18nHandler::getInstance()->isPlainValue('rankTitle')) {
- $returnValues = $this->objectAction->getReturnValues();
- $rankID = $returnValues['returnValues']->rankID;
I18nHandler::getInstance()->save('rankTitle', 'wcf.user.rank.userRank'.$rankID, 'wcf.user', 1);
// update name
I18nHandler::getInstance()->reset();
// show success message
- WCF::getTPL()->assign('success', true);
+ WCF::getTPL()->assign([
+ 'success' => true,
+ 'objectEditLink' => LinkHandler::getInstance()->getLink('UserRankEdit', ['id' => $rankID]),
+ ]);
}
/**
*/
public $objectActionClass;
+ /**
+ * name of the controller for the link to the edit form
+ * @var string
+ * @since 5.3
+ */
+ public $objectEditLinkController = '';
+
+ /**
+ * name of the application for the link to the edit form
+ * @var string
+ * @since 5.3
+ */
+ public $objectEditLinkApplication = 'wcf';
+
/**
* @inheritDoc
*/
$this->saved();
WCF::getTPL()->assign('success', true);
+
+ if ($this->formAction === 'create' && $this->objectEditLinkController) {
+ WCF::getTPL()->assign('objectEditLink', LinkHandler::getInstance()->getLink($this->objectEditLinkController, [
+ 'application' => $this->objectEditLinkApplication,
+ 'id' => $this->objectAction->getReturnValues()['returnValues']->getObjectID(),
+ ]));
+ }
}
/**
<item name="wcf.global.filter.visibility.showAll"><![CDATA[Alles anzeigen]]></item>
<item name="wcf.global.success"><![CDATA[Die Aktion wurde erfolgreich ausgeführt.]]></item>
<item name="wcf.global.success.add"><![CDATA[Der Eintrag wurde gespeichert.]]></item>
+ <item name="wcf.global.success.add.button.editCreatedObject"><![CDATA[Erstellten Eintrag bearbeiten]]></item>
<item name="wcf.global.success.edit"><![CDATA[Die Änderungen wurden gespeichert.]]></item>
<item name="wcf.global.language.noSelection"><![CDATA[Keine Auswahl]]></item>
<item name="wcf.global.loading"><![CDATA[Lädt …]]></item>
<item name="wcf.global.filter.visibility.showAll"><![CDATA[Show all]]></item>
<item name="wcf.global.success"><![CDATA[The action completed successfully.]]></item>
<item name="wcf.global.success.add"><![CDATA[The entry has been saved.]]></item>
+ <item name="wcf.global.success.add.button.editCreatedObject"><![CDATA[Edit Created Entry]]></item>
<item name="wcf.global.success.edit"><![CDATA[Your changes have been saved.]]></item>
<item name="wcf.global.language.noSelection"><![CDATA[No Selection]]></item>
<item name="wcf.global.loading"><![CDATA[Loading …]]></item>