From e74e30678c54738c100a240de9341f1c8bcce948 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 29 May 2022 17:17:50 +0200 Subject: [PATCH] Apply explicit styling for buttons See #4834 --- com.woltlab.wcf/templates/__buttonFormField.tpl | 2 +- com.woltlab.wcf/templates/__formButton.tpl | 2 +- com.woltlab.wcf/templates/__mediaSetCategoryDialog.tpl | 2 +- .../templates/__multifactorTotpDeviceNoDeleteButton.tpl | 2 +- com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl | 2 +- com.woltlab.wcf/templates/accountSecurity.tpl | 2 +- com.woltlab.wcf/templates/articleAdd.tpl | 2 +- com.woltlab.wcf/templates/articleAddDialog.tpl | 2 +- com.woltlab.wcf/templates/commentAddGuestDialog.tpl | 2 +- com.woltlab.wcf/templates/commentEditor.tpl | 4 ++-- com.woltlab.wcf/templates/commentListAddComment.tpl | 4 ++-- com.woltlab.wcf/templates/commentResponseEditor.tpl | 4 ++-- com.woltlab.wcf/templates/manageSubscription.tpl | 2 +- com.woltlab.wcf/templates/mediaEditor.tpl | 2 +- com.woltlab.wcf/templates/membersList.tpl | 2 +- com.woltlab.wcf/templates/messageFormPreviewButton.tpl | 2 +- com.woltlab.wcf/templates/messageUserConsent.tpl | 2 +- com.woltlab.wcf/templates/moderationList.tpl | 2 +- com.woltlab.wcf/templates/moderationQueueAssignUser.tpl | 2 +- com.woltlab.wcf/templates/moderationReportDialog.tpl | 2 +- com.woltlab.wcf/templates/poll.tpl | 8 ++++---- com.woltlab.wcf/templates/signatureEdit.tpl | 2 +- com.woltlab.wcf/templates/userProfileAboutEditable.tpl | 4 ++-- .../install/files/acp/templates/__buttonFormField.tpl | 2 +- .../templates/__devtoolsProjectInstructionsFormField.tpl | 4 ++-- wcfsetup/install/files/acp/templates/__formButton.tpl | 2 +- .../files/acp/templates/__mediaSetCategoryDialog.tpl | 2 +- .../install/files/acp/templates/__optionRewriteTest.tpl | 2 +- .../files/acp/templates/__wysiwygPreviewFormButton.tpl | 2 +- wcfsetup/install/files/acp/templates/articleAdd.tpl | 2 +- wcfsetup/install/files/acp/templates/articleAddDialog.tpl | 2 +- .../install/files/acp/templates/articleCategoryDialog.tpl | 2 +- wcfsetup/install/files/acp/templates/boxAddDialog.tpl | 2 +- .../files/acp/templates/devtoolsNotificationTest.tpl | 2 +- .../acp/templates/devtoolsNotificationTestDialog.tpl | 2 +- .../install/files/acp/templates/devtoolsProjectList.tpl | 2 +- .../install/files/acp/templates/devtoolsProjectSync.tpl | 4 ++-- .../files/acp/templates/languageItemEditDialog.tpl | 4 ++-- wcfsetup/install/files/acp/templates/mediaEditor.tpl | 2 +- wcfsetup/install/files/acp/templates/package.tpl | 2 +- wcfsetup/install/files/acp/templates/packageUpdate.tpl | 2 +- .../files/acp/templates/packageUpdateUnauthorized.tpl | 2 +- wcfsetup/install/files/acp/templates/pageAddDialog.tpl | 2 +- wcfsetup/install/files/acp/templates/pageHeaderSearch.tpl | 2 +- .../files/acp/templates/pluginStoreAuthorization.tpl | 2 +- wcfsetup/install/files/acp/templates/sitemapList.tpl | 2 +- wcfsetup/install/files/acp/templates/stat.tpl | 2 +- wcfsetup/install/files/acp/templates/styleAdd.tpl | 2 +- wcfsetup/install/files/acp/templates/tagSetAsSynonyms.tpl | 2 +- wcfsetup/install/files/acp/templates/trophyAdd.tpl | 2 +- 50 files changed, 60 insertions(+), 60 deletions(-) diff --git a/com.woltlab.wcf/templates/__buttonFormField.tpl b/com.woltlab.wcf/templates/__buttonFormField.tpl index 9e1bf13304..bbcde24e66 100644 --- a/com.woltlab.wcf/templates/__buttonFormField.tpl +++ b/com.woltlab.wcf/templates/__buttonFormField.tpl @@ -3,6 +3,6 @@ *}id="{@$field->getPrefixedId()}" {* *}name="{@$field->getPrefixedId()}" {* *}value="{$field->getValue()}"{* - *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{* + *}{if !$field->getFieldClasses()|empty} class="button {implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{* *}{foreach from=$field->getFieldAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* *}>{$field->getButtonLabel()} diff --git a/com.woltlab.wcf/templates/__formButton.tpl b/com.woltlab.wcf/templates/__formButton.tpl index f5be9fcdb9..ba0213dbc7 100644 --- a/com.woltlab.wcf/templates/__formButton.tpl +++ b/com.woltlab.wcf/templates/__formButton.tpl @@ -8,7 +8,7 @@ *}> {else} diff --git a/com.woltlab.wcf/templates/__mediaSetCategoryDialog.tpl b/com.woltlab.wcf/templates/__mediaSetCategoryDialog.tpl index 9e0c3348e6..4c17bdb7a0 100644 --- a/com.woltlab.wcf/templates/__mediaSetCategoryDialog.tpl +++ b/com.woltlab.wcf/templates/__mediaSetCategoryDialog.tpl @@ -24,5 +24,5 @@
- +
diff --git a/com.woltlab.wcf/templates/__multifactorTotpDeviceNoDeleteButton.tpl b/com.woltlab.wcf/templates/__multifactorTotpDeviceNoDeleteButton.tpl index 1d4047c157..7cb0b1bdb7 100644 --- a/com.woltlab.wcf/templates/__multifactorTotpDeviceNoDeleteButton.tpl +++ b/com.woltlab.wcf/templates/__multifactorTotpDeviceNoDeleteButton.tpl @@ -1,4 +1,4 @@ - + diff --git a/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl b/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl index d61999dfcd..a21f888285 100644 --- a/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl +++ b/com.woltlab.wcf/templates/__wysiwygPreviewFormButton.tpl @@ -1,5 +1,5 @@ diff --git a/com.woltlab.wcf/templates/accountSecurity.tpl b/com.woltlab.wcf/templates/accountSecurity.tpl index bc160423c5..8dc6e8ba35 100644 --- a/com.woltlab.wcf/templates/accountSecurity.tpl +++ b/com.woltlab.wcf/templates/accountSecurity.tpl @@ -89,7 +89,7 @@ {if !$session->isCurrentSession()}
- +
{/if} diff --git a/com.woltlab.wcf/templates/articleAdd.tpl b/com.woltlab.wcf/templates/articleAdd.tpl index 654027d861..786e5e58f2 100644 --- a/com.woltlab.wcf/templates/articleAdd.tpl +++ b/com.woltlab.wcf/templates/articleAdd.tpl @@ -560,7 +560,7 @@
- + {csrfToken} diff --git a/com.woltlab.wcf/templates/articleAddDialog.tpl b/com.woltlab.wcf/templates/articleAddDialog.tpl index a0a5fcf752..4481827921 100644 --- a/com.woltlab.wcf/templates/articleAddDialog.tpl +++ b/com.woltlab.wcf/templates/articleAddDialog.tpl @@ -11,7 +11,7 @@
- +
diff --git a/com.woltlab.wcf/templates/commentAddGuestDialog.tpl b/com.woltlab.wcf/templates/commentAddGuestDialog.tpl index e1a16a1658..633049d886 100644 --- a/com.woltlab.wcf/templates/commentAddGuestDialog.tpl +++ b/com.woltlab.wcf/templates/commentAddGuestDialog.tpl @@ -22,5 +22,5 @@
- +
diff --git a/com.woltlab.wcf/templates/commentEditor.tpl b/com.woltlab.wcf/templates/commentEditor.tpl index 60461e8ee5..4e70877adc 100644 --- a/com.woltlab.wcf/templates/commentEditor.tpl +++ b/com.woltlab.wcf/templates/commentEditor.tpl @@ -6,11 +6,11 @@ {include file='messageFormTabsInline'}
- + {include file='messageFormPreviewButton' previewMessageFieldID=$wysiwygSelector previewButtonID=$wysiwygSelector|concat:'_PreviewButton' previewMessageObjectType='com.woltlab.wcf.comment' previewMessageObjectID=$comment->commentID} - +
{include file='wysiwyg'} diff --git a/com.woltlab.wcf/templates/commentListAddComment.tpl b/com.woltlab.wcf/templates/commentListAddComment.tpl index 0a6614a593..5b14b062c5 100644 --- a/com.woltlab.wcf/templates/commentListAddComment.tpl +++ b/com.woltlab.wcf/templates/commentListAddComment.tpl @@ -18,7 +18,7 @@ {include file='wysiwyg'}
- + {include file='messageFormPreviewButton' previewMessageFieldID=$wysiwygSelector previewButtonID=$wysiwygSelector|concat:'_PreviewButton' previewMessageObjectType='com.woltlab.wcf.comment' previewMessageObjectID=0}
@@ -49,7 +49,7 @@ {include file='wysiwyg' wysiwygSelector=$_commentResponseWysiwygSelector}
- + {include file='messageFormPreviewButton' previewMessageFieldID=$_commentResponseWysiwygSelector previewButtonID=$_commentResponseWysiwygSelector|concat:'_PreviewButton' previewMessageObjectType='com.woltlab.wcf.comment.response' previewMessageObjectID=0}
diff --git a/com.woltlab.wcf/templates/commentResponseEditor.tpl b/com.woltlab.wcf/templates/commentResponseEditor.tpl index 72cd3e6a45..22008fd168 100644 --- a/com.woltlab.wcf/templates/commentResponseEditor.tpl +++ b/com.woltlab.wcf/templates/commentResponseEditor.tpl @@ -6,11 +6,11 @@ {include file='messageFormTabsInline'}
- + {include file='messageFormPreviewButton' previewMessageFieldID=$wysiwygSelector previewButtonID=$wysiwygSelector|concat:'_PreviewButton' previewMessageObjectType='com.woltlab.wcf.comment.response' previewMessageObjectID=$response->responseID} - +
{include file='wysiwyg'} diff --git a/com.woltlab.wcf/templates/manageSubscription.tpl b/com.woltlab.wcf/templates/manageSubscription.tpl index d62f7bef1c..bcbd288c9a 100644 --- a/com.woltlab.wcf/templates/manageSubscription.tpl +++ b/com.woltlab.wcf/templates/manageSubscription.tpl @@ -16,5 +16,5 @@
- +
\ No newline at end of file diff --git a/com.woltlab.wcf/templates/mediaEditor.tpl b/com.woltlab.wcf/templates/mediaEditor.tpl index e25e443cbd..3a89822348 100644 --- a/com.woltlab.wcf/templates/mediaEditor.tpl +++ b/com.woltlab.wcf/templates/mediaEditor.tpl @@ -134,5 +134,5 @@ {include file='aclSimple'}
- +
diff --git a/com.woltlab.wcf/templates/membersList.tpl b/com.woltlab.wcf/templates/membersList.tpl index 2a925b56c8..d66d558259 100644 --- a/com.woltlab.wcf/templates/membersList.tpl +++ b/com.woltlab.wcf/templates/membersList.tpl @@ -72,7 +72,7 @@ {/hascontent}
- +
    diff --git a/com.woltlab.wcf/templates/messageFormPreviewButton.tpl b/com.woltlab.wcf/templates/messageFormPreviewButton.tpl index 8ed7748182..640daa4664 100644 --- a/com.woltlab.wcf/templates/messageFormPreviewButton.tpl +++ b/com.woltlab.wcf/templates/messageFormPreviewButton.tpl @@ -3,7 +3,7 @@ {if !$previewMessageObjectType|isset}{assign var=previewMessageObjectType value=''}{/if} {if !$previewMessageObjectID|isset}{assign var=previewMessageObjectID value=0}{/if} - +