From 249c968eeeec34d6630e499317543b0a88986e8a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 17 Mar 2021 16:07:32 +0100 Subject: [PATCH] Use new templates for object action delete and toggle icons --- wcfsetup/install/files/acp/templates/adList.tpl | 4 ++-- wcfsetup/install/files/acp/templates/bbcodeList.tpl | 2 +- .../files/acp/templates/bbcodeMediaProviderList.tpl | 4 ++-- wcfsetup/install/files/acp/templates/boxList.tpl | 5 +++-- .../install/files/acp/templates/captchaQuestionList.tpl | 4 ++-- wcfsetup/install/files/acp/templates/contactSettings.tpl | 8 ++++---- wcfsetup/install/files/acp/templates/cronjobList.tpl | 4 ++-- .../acp/templates/devtoolsMissingLanguageItemList.tpl | 2 +- .../install/files/acp/templates/devtoolsProjectList.tpl | 2 +- wcfsetup/install/files/acp/templates/tagList.tpl | 2 +- 10 files changed, 19 insertions(+), 18 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/adList.tpl b/wcfsetup/install/files/acp/templates/adList.tpl index 0b6febe125..1d94fa77d2 100644 --- a/wcfsetup/install/files/acp/templates/adList.tpl +++ b/wcfsetup/install/files/acp/templates/adList.tpl @@ -40,9 +40,9 @@ - + {include file='__objectActionToogleIcon' object=$ad} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.ad.delete.confirmMessage'} {event name='itemButtons'} diff --git a/wcfsetup/install/files/acp/templates/bbcodeList.tpl b/wcfsetup/install/files/acp/templates/bbcodeList.tpl index dfdf3e266c..1a77775384 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeList.tpl @@ -39,7 +39,7 @@ {if $bbcode->canDelete()} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.bbcode.delete.sure'} {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl b/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl index 2ed1879ff3..a025dd2707 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl @@ -36,9 +36,9 @@ {foreach from=$objects item='mediaProvider'} - + {include file='__objectActionToogleIcon' object=$mediaProvider} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.bbcode.mediaProvider.delete.sure'} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/boxList.tpl b/wcfsetup/install/files/acp/templates/boxList.tpl index 49a829d49f..f4855f6ed8 100644 --- a/wcfsetup/install/files/acp/templates/boxList.tpl +++ b/wcfsetup/install/files/acp/templates/boxList.tpl @@ -117,10 +117,11 @@ {foreach from=$objects item=box} - + {include file='__objectActionToogleIcon' object=$box} {if $box->canDelete()} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.box.delete.confirmMessage'} + {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl index 047f01f809..94c94f09a6 100644 --- a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl +++ b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl @@ -37,9 +37,9 @@ {foreach from=$objects item='question'} - + {include file='__objectActionToogleIcon' object=$question} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.captcha.question.delete.confirmMessage'} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/contactSettings.tpl b/wcfsetup/install/files/acp/templates/contactSettings.tpl index 15b41174bf..8b41322e91 100644 --- a/wcfsetup/install/files/acp/templates/contactSettings.tpl +++ b/wcfsetup/install/files/acp/templates/contactSettings.tpl @@ -50,10 +50,10 @@ {foreach from=$optionList item=option} - + {include file='__objectActionToogleIcon' object=$option} {if $option->canDelete()} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.customOption.delete.confirmMessage'} {else} {/if} @@ -89,12 +89,12 @@ - + {include file='__objectActionToogleIcon' object=$recipient} {if $recipient->originIsSystem} {else} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.contact.recipient.delete.confirmMessage'} {/if} {event name='itemButtons'} diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index aa231df46b..56d2d39147 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -53,7 +53,7 @@ {if $cronjob->canBeDisabled()} - + {include file='__objectActionToogleIcon' object=$cronjob} {else} {if !$cronjob->isDisabled} @@ -68,7 +68,7 @@ {/if} {if $cronjob->isDeletable()} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.cronjob.delete.sure'} {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl b/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl index e991a1e191..5c26d0db86 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl @@ -47,7 +47,7 @@ {foreach from=$objects item=logEntry} - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.devtools.missingLanguageItem.delete.confirmMessage'} {@$logEntry->getObjectID()} diff --git a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl index c938c0d277..28d6b97d85 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl @@ -48,7 +48,7 @@ - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.devtools.project.delete.confirmMessage'} {@$object->getObjectID()} {$object->name} diff --git a/wcfsetup/install/files/acp/templates/tagList.tpl b/wcfsetup/install/files/acp/templates/tagList.tpl index c7618d9cfc..baf60d7ebe 100644 --- a/wcfsetup/install/files/acp/templates/tagList.tpl +++ b/wcfsetup/install/files/acp/templates/tagList.tpl @@ -74,7 +74,7 @@ - + {include file='__objectActionDeleteIcon' objectActionConfirmMessage='wcf.acp.tag.delete.sure'} {event name='rowButtons'} -- 2.20.1