Add the new variable `FileProcessorFormField::$bigPreview` with getter and setter.
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / settings.tpl
CommitLineData
3e93caf9 1{capture assign='pageTitle'}{lang}wcf.user.option.category.settings.{$category}{/lang} - {lang}wcf.user.menu.settings{/lang}{/capture}
320f4a6d 2
3e93caf9 3{capture assign='contentTitle'}{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.option.category.settings.{$category}{/lang}{/capture}
320f4a6d
MW
4
5{include file='userMenuSidebar'}
6
c5ea84f0 7{include file='header' __disableAds=true __sidebarLeftHasMenu=true}
320f4a6d 8
b54fdcc0 9{include file='shared_formError'}
77329f86 10
320f4a6d 11{if $success|isset}
a14d7068 12 <woltlab-core-notice type="success">{lang}wcf.global.success.edit{/lang}</woltlab-core-notice>
320f4a6d
MW
13{/if}
14
bd415136 15<form method="post" action="{$formAction}">
95961bdf
MW
16 {if $category == 'general'}
17 {if $availableLanguages|count > 1}
2b749f1b 18 <section class="section" id="section_language">
95961bdf
MW
19 <h2 class="sectionTitle">{lang}wcf.user.language{/lang}</h2>
20
21 <dl>
d82e813d 22 <dt><label>{lang}wcf.user.language.description{/lang}</label></dt>
95961bdf
MW
23 <dd id="languageIDContainer">
24 <script data-relocate="true">
a9dda0ac
MW
25 require(['WoltLabSuite/Core/Language/Chooser'], ({ init }) => {
26 const languages = {
95961bdf 27 {implode from=$availableLanguages item=language}
a9dda0ac
MW
28 '{@$language->languageID}': {
29 iconPath: '{@$language->getIconPath()|encodeJS}',
30 languageName: '{@$language|encodeJS}'
31 }
95961bdf
MW
32 {/implode}
33 };
34
a9dda0ac 35 init('languageIDContainer', 'languageID', {@$languageID}, languages);
95961bdf 36 });
95961bdf
MW
37 </script>
38 <noscript>
39 <select name="languageID" id="languageID">
40 {foreach from=$availableLanguages item=language}
6833d626 41 <option value="{$language->languageID}"{if $language->languageID == $languageID} selected{/if}>{$language}</option>
edf7add2
MW
42 {/foreach}
43 </select>
95961bdf
MW
44 </noscript>
45 </dd>
46 </dl>
47
48 {hascontent}
49 <dl>
50 <dt><label>{lang}wcf.user.visibleLanguages{/lang}</label></dt>
51 <dd class="floated">
52 {content}
53 {foreach from=$availableContentLanguages item=language}
6833d626 54 <label><input name="contentLanguageIDs[]" type="checkbox" value="{$language->languageID}"{if $language->languageID|in_array:$contentLanguageIDs} checked{/if}> {$language}</label>
95961bdf
MW
55 {/foreach}
56 {/content}
57 <small>{lang}wcf.user.visibleLanguages.description{/lang}</small></dd>
edf7add2 58 </dl>
95961bdf
MW
59 {/hascontent}
60
61 {event name='languageFields'}
62 </section>
320f4a6d
MW
63 {/if}
64
01d793d7
AE
65 <section class="section" id="section_style">
66 <h2 class="sectionTitle">{lang}wcf.user.styles{/lang}</h2>
95961bdf 67
01d793d7 68 {if $availableStyles|count > 1}
95961bdf
MW
69 <dl>
70 <dt><label for="styleID">{lang}wcf.user.style{/lang}</label></dt>
71 <dd>
72 <select id="styleID" name="styleID">
73 <option value="0">{lang}wcf.global.defaultValue{/lang}</option>
74 {foreach from=$availableStyles item=style}
6833d626 75 <option value="{$style->styleID}"{if $style->styleID == $styleID} selected{/if}>{$style->styleName}</option>
95961bdf
MW
76 {/foreach}
77 </select>
78 <small>{lang}wcf.user.style.description{/lang}</small>
79 </dd>
80 </dl>
01d793d7
AE
81 {/if}
82
83 <dl>
84 <dt><label for="colorScheme">{lang}wcf.user.style.colorScheme{/lang}</label></dt>
85 <dd>
86 <select id="colorScheme" name="colorScheme">
87 <option value="system"{if $colorScheme === 'system'} selected{/if}>{lang}wcf.style.setColorScheme.system{/lang}</option>
88 <option value="light"{if $colorScheme === 'light'} selected{/if}>{lang}wcf.style.setColorScheme.light{/lang}</option>
89 <option value="dark"{if $colorScheme === 'dark'} selected{/if}>{lang}wcf.style.setColorScheme.dark{/lang}</option>
90 </select>
91 <small>{lang}wcf.user.style.colorScheme.description{/lang}</small>
92 </dd>
93 </dl>
94
95 {event name='styleFields'}
96 </section>
a83d788a
JR
97
98 {if MODULE_TROPHY && $__wcf->getSession()->getPermission('user.profile.trophy.maxUserSpecialTrophies') > 0 && $availableTrophies|count}
2b749f1b 99 <section class="section" id="section_trophy">
a83d788a
JR
100 <h2 class="sectionTitle">{lang}wcf.user.trophy.trophies{/lang}</h2>
101 <dl{if $errorField == 'specialTrophies'} class="formError"{/if}>
102 <dt>{lang}wcf.user.trophy.specialTrophies{/lang}</dt>
103 <dd>
6328e311 104 <ul class="specialTrophyList">
a83d788a
JR
105 {if $__wcf->getSession()->getPermission('user.profile.trophy.maxUserSpecialTrophies') == 1}
106 {foreach from=$availableTrophies item=trophy}
107 <li><label><input type="radio" name="specialTrophies[]" value="{$trophy->getObjectID()}"{if $trophy->getObjectID()|in_array:$specialTrophies} checked{/if}> {@$trophy->renderTrophy(32)} <span>{$trophy->getTitle()}</span></label></li>
108 {/foreach}
109 {else}
110 {foreach from=$availableTrophies item=trophy}
111 <li><label><input type="checkbox" name="specialTrophies[]" value="{$trophy->getObjectID()}"{if $trophy->getObjectID()|in_array:$specialTrophies} checked{/if}> {@$trophy->renderTrophy(32)} <span>{$trophy->getTitle()}</span></label></li>
112 {/foreach}
113 {/if}
114 </ul>
115 {if $errorField == 'specialTrophies'}
116 <small class="innerError">
117 {lang}wcf.user.trophy.specialTrophies.error.{$errorType}{/lang}
118 </small>
119 {/if}
120 <small>{lang}wcf.user.trophy.specialTrophies.description{/lang}</small>
121 </dd>
122 </dl>
123
124 {event name='trophyFields'}
125 </section>
126 {/if}
95961bdf
MW
127 {/if}
128
129 {if !$optionTree|empty}
130 {foreach from=$optionTree[0][categories][0][categories] item=optionCategory}
0e4170a1 131 <section class="section" id="optionCategory_{@$optionCategory[object]->categoryName}">
95961bdf
MW
132 <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$optionCategory[object]->categoryName}{/lang}</h2>
133
134 {include file='userProfileOptionFieldList' options=$optionCategory[options] langPrefix='wcf.user.option.'}
135 </section>
136 {/foreach}
137 {/if}
138
139 {event name='sections'}
320f4a6d
MW
140
141 <div class="formSubmit">
e5f9b56c
MW
142 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
143 {if $category != 'general'}<input type="hidden" name="category" value="{$category}">{/if}
bb3d4ee5 144 {csrfToken}
320f4a6d
MW
145 </div>
146</form>
147
3e93caf9 148<script data-relocate="true">
3e93caf9
MW
149 $(function() {
150 new WCF.Option.Handler();
151 });
3e93caf9 152</script>
320f4a6d 153
b3463f2a 154{include file='footer' __disableAds=true}