From: Joshua Rüsweg Date: Sat, 8 Jul 2017 13:37:11 +0000 (+0200) Subject: Add trophy image upload X-Git-Tag: 3.1.0_Alpha_1~294 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fbcc7c69e7607406eae938dec20d72538745934;p=GitHub%2FWoltLab%2FWCF.git Add trophy image upload See #2315 --- diff --git a/com.woltlab.wcf/templates/trophyImage.tpl b/com.woltlab.wcf/templates/trophyImage.tpl new file mode 100644 index 0000000000..38bc00fccb --- /dev/null +++ b/com.woltlab.wcf/templates/trophyImage.tpl @@ -0,0 +1,7 @@ + diff --git a/wcfsetup/install/files/acp/templates/trophyAdd.tpl b/wcfsetup/install/files/acp/templates/trophyAdd.tpl index f5d2604e3d..a0d39ede1f 100644 --- a/wcfsetup/install/files/acp/templates/trophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/trophyAdd.tpl @@ -11,7 +11,10 @@ 'wcf.style.colorPicker.current': '{lang}wcf.style.colorPicker.current{/lang}', 'wcf.style.colorPicker.button.apply': '{lang}wcf.style.colorPicker.button.apply{/lang}', 'wcf.acp.style.image.error.invalidExtension': '{lang}wcf.acp.style.image.error.invalidExtension{/lang}', - 'wcf.acp.trophy.badge.edit': '{lang}wcf.acp.trophy.badge.edit{/lang}' + 'wcf.acp.trophy.badge.edit': '{lang}wcf.acp.trophy.badge.edit{/lang}', + 'wcf.acp.trophy.imageUpload.error.notSquared': '{lang}wcf.acp.trophy.imageUpload.error.notSquared{/lang}', + 'wcf.acp.trophy.imageUpload.error.tooSmall': '{lang}wcf.acp.trophy.imageUpload.error.tooSmall{/lang}', + 'wcf.acp.trophy.imageUpload.error.noImage': '{lang}wcf.acp.trophy.imageUpload.error.noImage{/lang}' }); elBySel('select[name=type]').addEventListener('change', function () { @@ -129,7 +132,7 @@
-
{lang}wcf.acp.trophy.type{/lang}
+
+
+
+
+ {if $errorField == 'imageUpload'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {/if} + + {/if} + {lang}wcf.acp.trophy.type.imageUpload.description{/lang} +
+
+
{if $action == 'add'}{if !$uploadedImageURL|empty}{/if}{else}{if $trophy->type == 2}{/if}{/if}
+
+
+ + +
+