From: Matthias Schmidt Date: Tue, 16 Mar 2021 13:56:07 +0000 (+0100) Subject: Start using `Ui/Object/Action/*` in ACP X-Git-Tag: 5.4.0_Alpha_1~132^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=380da5caaa7913e479e094adfe1714d4fc37464f;p=GitHub%2FWoltLab%2FWCF.git Start using `Ui/Object/Action/*` in ACP --- diff --git a/wcfsetup/install/files/acp/templates/bbcodeList.tpl b/wcfsetup/install/files/acp/templates/bbcodeList.tpl index 884878a8de..dfdf3e266c 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeList.tpl @@ -1,11 +1,5 @@ {include file='header' pageTitle='wcf.acp.bbcode.list'} - -

{lang}wcf.acp.bbcode.list{/lang}{if $items} {#$items}{/if}

@@ -28,7 +22,7 @@ {if $objects|count}
- +
@@ -41,11 +35,11 @@ {foreach from=$objects item=bbcode} - +
{lang}wcf.global.objectID{/lang}
{if $bbcode->canDelete()} - + {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl b/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl index a78ee5877d..2ed1879ff3 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl @@ -1,12 +1,5 @@ {include file='header' pageTitle='wcf.acp.bbcode.mediaProvider.list'} - -

{lang}wcf.acp.bbcode.mediaProvider.list{/lang}{if $items} {#$items}{/if}

@@ -29,7 +22,7 @@ {if $objects|count}
- +
@@ -41,11 +34,11 @@ {foreach from=$objects item='mediaProvider'} - + diff --git a/wcfsetup/install/files/acp/templates/boxList.tpl b/wcfsetup/install/files/acp/templates/boxList.tpl index 991c029bf5..49a829d49f 100644 --- a/wcfsetup/install/files/acp/templates/boxList.tpl +++ b/wcfsetup/install/files/acp/templates/boxList.tpl @@ -1,12 +1,5 @@ {include file='header' pageTitle='wcf.acp.box.list'} - -

{lang}wcf.acp.box.list{/lang}{if $items} {#$items}{/if}

@@ -107,7 +100,7 @@ {if $objects|count}
-
{lang}wcf.global.objectID{/lang}
- + - + {event name='rowButtons'}
+
@@ -122,12 +115,12 @@ {foreach from=$objects item=box} - +
{lang}wcf.global.objectID{/lang}
- + {if $box->canDelete()} - + {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl index b14bbdc419..047f01f809 100644 --- a/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl +++ b/wcfsetup/install/files/acp/templates/captchaQuestionList.tpl @@ -1,12 +1,5 @@ {include file='header' pageTitle='wcf.acp.captcha.question.list'} - -

{lang}wcf.acp.captcha.question.list{/lang}{if $items} {#$items}{/if}

@@ -29,7 +22,7 @@ {hascontent}
- +
@@ -42,11 +35,11 @@ {content} {foreach from=$objects item='question'} - + diff --git a/wcfsetup/install/files/acp/templates/contactSettings.tpl b/wcfsetup/install/files/acp/templates/contactSettings.tpl index 0bf0a32613..15b41174bf 100644 --- a/wcfsetup/install/files/acp/templates/contactSettings.tpl +++ b/wcfsetup/install/files/acp/templates/contactSettings.tpl @@ -13,14 +13,6 @@ isSimpleSorting: true }); }); - - $(function() { - new WCF.Action.Delete('wcf\\data\\contact\\option\\ContactOptionAction', '.jsOptionRow'); - new WCF.Action.Toggle('wcf\\data\\contact\\option\\ContactOptionAction', $('.jsOptionRow')); - - new WCF.Action.Delete('wcf\\data\\contact\\recipient\\ContactRecipientAction', '.jsRecipient'); - new WCF.Action.Toggle('wcf\\data\\contact\\recipient\\ContactRecipientAction', '.jsRecipient'); - });
@@ -42,7 +34,7 @@

{lang}wcf.acp.contact.options{/lang}

-
{lang}wcf.global.objectID{/lang}
- + - + {event name='rowButtons'}
+
@@ -56,12 +48,12 @@ {foreach from=$optionList item=option} - +
{lang}wcf.global.objectID{/lang}
- + {if $option->canDelete()} - + {else} {/if} @@ -89,20 +81,20 @@

{lang}wcf.acp.contact.recipients{/lang}

-
    +
      {foreach from=$recipientList item=recipient} -
    1. +
    2. {$recipient} - + {if $recipient->originIsSystem} {else} - + {/if} {event name='itemButtons'} diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index 2591b02e0d..aa231df46b 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -2,9 +2,6 @@ @@ -32,7 +29,7 @@ {hascontent}
      - +
      @@ -51,12 +48,12 @@ {content} {foreach from=$objects item=cronjob} - +
      {lang}wcf.global.objectID{/lang}
      {if $cronjob->canBeDisabled()} - + {else} {if !$cronjob->isDisabled} @@ -71,7 +68,7 @@ {/if} {if $cronjob->isDeletable()} - + {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl b/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl index fc7e657e5d..e991a1e191 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl @@ -31,7 +31,7 @@ {if $items}
      - +
      @@ -45,9 +45,9 @@ {foreach from=$objects item=logEntry} - + @@ -87,8 +87,6 @@ }); new UiDevtoolsMissingLanguageItemList.default(); - - new WCF.Action.Delete('wcf\\data\\devtools\\missing\\language\\item\\DevtoolsMissingLanguageItemAction', '.jsObjectRow'); }); {else} diff --git a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl index a7390ecf7c..c938c0d277 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl @@ -1,10 +1,6 @@ {include file='header' pageTitle='wcf.acp.devtools.project.list'}
      {lang}wcf.global.objectID{/lang}
      - + {@$logEntry->getObjectID()}