Commit | Line | Data |
---|---|---|
b955c65b BA |
1 | input#modalLang.modal(type="checkbox") |
2 | div(role="dialog") | |
3 | #language.card | |
4 | label.modal-close(for="modalLang") | |
5 | form | |
6 | fieldset | |
7 | label(for="langSelect")= translations["Language"] | |
8 | select#langSelect | |
9 | each language,langCode in langName | |
10 | option(value=langCode selected=(lang==langCode)) | |
11 | =language | |
12 | ||
298c42e6 | 13 | input#modalSettings.modal(type="checkbox") |
b6487fb9 | 14 | div(role="dialog" aria-labelledby="settingsTitle") |
582df349 | 15 | .card.smallpad(@change="updateSettings") |
298c42e6 | 16 | label.modal-close(for="modalSettings") |
b6487fb9 | 17 | h3#settingsTitle.section= translations["Preferences"] |
b6487fb9 | 18 | fieldset |
582df349 BA |
19 | label(for="setSqSize")= translations["Square size (in pixels). 0 for 'adaptative'"] |
20 | input#setSqSize(type="number" v-model="settings.sqSize") | |
21 | fieldset | |
22 | label(for="selectHints")= translations["Show move hints?"] | |
23 | select#setHints(v-model="settings.hints") | |
24 | option(value="0")= translations["None"] | |
25 | option(value="1")= translations["Moves from a square"] | |
26 | option(value="2")= translations["Pieces which can move"] | |
27 | fieldset | |
28 | label(for="setHighlight")= translations["Highlight squares? (Last move & checks)"] | |
29 | input#setHighlight(type="checkbox" v-model="settings.highlight") | |
30 | fieldset | |
31 | label(for="setCoords")= translations["Show board coordinates?"] | |
32 | input#setCoords(type="checkbox" v-model="settings.coords") | |
b6487fb9 BA |
33 | fieldset |
34 | label(for="selectColor")= translations["Board colors"] | |
582df349 BA |
35 | select#setBcolor(v-model="settings.bcolor") |
36 | option(value="lichess") | |
b6487fb9 | 37 | = translations["brown"] |
582df349 | 38 | option(value="chesscom") |
b6487fb9 | 39 | = translations["green"] |
582df349 | 40 | option(value="chesstempo") |
b6487fb9 BA |
41 | = translations["blue"] |
42 | fieldset | |
43 | label(for="selectSound")= translations["Play sounds?"] | |
582df349 BA |
44 | select#setSound(v-model="settings.sound") |
45 | option(value="0")= translations["None"] | |
46 | option(value="1")= translations["New game"] | |
47 | option(value="2")= translations["All"] | |
b955c65b BA |
48 | |
49 | input#modalContact.modal(type="checkbox") | |
50 | div(role="dialog" aria-labelledby="contactTitle") | |
51 | form.card.smallpad | |
52 | label.modal-close(for="modalContact") | |
53 | h3#contactTitle.section= translations["Contact form"] | |
54 | fieldset | |
55 | label(for="userEmail")= translations["Email"] | |
56 | input#userEmail(type="email") | |
57 | fieldset | |
58 | label(for="mailSubject")= translations["Subject"] | |
59 | input#mailSubject(type="text") | |
60 | fieldset | |
61 | label(for="mailContent")= translations["Content"] | |
62 | br | |
63 | textarea#mailContent | |
64 | fieldset | |
65 | button(type="button" onClick="trySendMessage()") Send | |
66 | p#emailSent= translations["Email sent!"] |