Fixed preview of box images
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2016 14:12:08 +0000 (16:12 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 May 2016 14:12:13 +0000 (16:12 +0200)
wcfsetup/install/files/acp/templates/boxAdd.tpl

index 86f0e3b9aaa3f91800d058163d494a38dec905bc..7881269c786d08834bc405327feb0c3ff3e424d5 100644 (file)
                                                        <dl{if $errorField == 'image'|concat:$availableLanguage->languageID} class="formError"{/if}>
                                                                <dt><label for="image{@$availableLanguage->languageID}">{lang}wcf.acp.box.image{/lang}</label></dt>
                                                                <dd>
-                                                                       <div id="imageDisplay{@$availableLanguage->languageID}"></div>
+                                                                       <div id="imageDisplay{@$availableLanguage->languageID}">
+                                                                               {if $images[$availableLanguage->languageID]|isset}
+                                                                                       {@$images[$availableLanguage->languageID]->getThumbnailTag('small')}
+                                                                               {/if}
+                                                                       </div>
                                                                        <p class="button jsMediaSelectButton" data-store="imageID{@$availableLanguage->languageID}" data-display="imageDisplay{@$availableLanguage->languageID}">{lang}wcf.acp.box.image.button.chooseImage{/lang}</p>
                                                                        <input type="hidden" name="imageID[{@$availableLanguage->languageID}]" id="imageID{@$availableLanguage->languageID}"{if $imageID[$availableLanguage->languageID]|isset} value="{@$imageID[$availableLanguage->languageID]}"{/if} />
                                                                        {if $errorField == 'image'|concat:$availableLanguage->languageID}