X-Git-Url: https://git.auder.net/pieces/Checkered/cb.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=78e8b8374ccf6a07689893f6205c7bdae5bf6fb1;hb=f1c77d60e6a21b0f4a7350319ecce3a3c5cef980;hp=cbfa622c9f0893e26aebe022b24c631f87e52d74;hpb=98db2082fd31e7a7bc0348e31ce119f39dbc31b3;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index cbfa622c..78e8b837 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,61 +1,116 @@
div
- input#modalContact.modal(type="checkbox")
- div(role="dialog" aria-labelledby="contactTitle")
- form.card.smallpad
+ input#modalContact.modal(
+ type="checkbox"
+ @change="trySetEnterTime($event)"
+ )
+ div#contactDiv(
+ role="dialog"
+ data-checkbox="modalContact"
+ )
+ .card
label.modal-close(for="modalContact")
- h3#contactTitle.section {{ $tr["Contact form"] }}
+ a#discordLink(href="https://discord.gg/a9ZFKBe")
+ span {{ st.tr["Discord invitation"] }}
+ img(src="/images/icons/discord.svg")
fieldset
- label(for="userEmail") {{ $tr["Email"] }}
- input#userEmail(type="email")
+ label(for="userEmail") {{ st.tr["Email"] }}
+ input#userEmail(type="email" :value="st.user.email")
fieldset
- label(for="mailSubject") {{ $tr["Subject"] }}
+ label(for="mailSubject") {{ st.tr["Subject"] }}
input#mailSubject(type="text")
fieldset
- label(for="mailContent") {{ $tr["Content"] }}
- br
- textarea#mailContent
- fieldset
- button(type="button" onClick="trySendMessage()") Send
- p#emailSent {{ $tr["Email sent!"] }}
+ textarea#mailContent(:placeholder="st.tr['Your message']")
+ button(@click="trySendMessage()") {{ st.tr["Send"] }}
+ #dialog.text-center {{ st.tr[infoMsg] }}
+
+