X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=views%2Fmodals.pug;fp=views%2FmodalSettings.pug;h=e24a7389e9c3bc0cf3b56fcc0d17b897630738d9;hp=3c22c3592525274495486987cecb73215bfc2a73;hb=b955c65b942d09d24b5c3bed0d755d4f2f8f71f1;hpb=74ea2e8d9ec6980e2fb5a4f86afe33b4850e3d53 diff --git a/views/modalSettings.pug b/views/modals.pug similarity index 62% rename from views/modalSettings.pug rename to views/modals.pug index 3c22c359..e24a7389 100644 --- a/views/modalSettings.pug +++ b/views/modals.pug @@ -1,3 +1,15 @@ +input#modalLang.modal(type="checkbox") +div(role="dialog") + #language.card + label.modal-close(for="modalLang") + form + fieldset + label(for="langSelect")= translations["Language"] + select#langSelect + each language,langCode in langName + option(value=langCode selected=(lang==langCode)) + =language + input#modalSettings.modal(type="checkbox") div(role="dialog" aria-labelledby="settingsTitle") .card.smallpad(@change="updateSettings") @@ -33,3 +45,22 @@ div(role="dialog" aria-labelledby="settingsTitle") option(value="0")= translations["None"] option(value="1")= translations["New game"] option(value="2")= translations["All"] + +input#modalContact.modal(type="checkbox") +div(role="dialog" aria-labelledby="contactTitle") + form.card.smallpad + label.modal-close(for="modalContact") + h3#contactTitle.section= translations["Contact form"] + fieldset + label(for="userEmail")= translations["Email"] + input#userEmail(type="email") + fieldset + label(for="mailSubject")= translations["Subject"] + input#mailSubject(type="text") + fieldset + label(for="mailContent")= translations["Content"] + br + textarea#mailContent + fieldset + button(type="button" onClick="trySendMessage()") Send + p#emailSent= translations["Email sent!"]