X-Git-Url: https://git.auder.net/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=e5d27326c796dd853a3f77f26639120e04d0b946;hb=a06fc4ba49b535ba45d70ee7401c5d2e26faefa2;hp=9c70a559887f4661e2b05e88eaac2697a8a34c9d;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index 9c70a559..e5d27326 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,26 +1,32 @@
div
- input#modalContact.modal(type="checkbox" @change="trySetEnterTime($event)")
- div(role="dialog" data-checkbox="modalContact")
+ input#modalContact.modal(
+ type="checkbox"
+ @change="trySetEnterTime($event)"
+ )
+ div#contactDiv(
+ role="dialog"
+ data-checkbox="modalContact"
+ )
.card
label.modal-close(for="modalContact")
- form(@submit.prevent="trySendMessage()" @keyup.enter="trySendMessage()")
- fieldset
- label(for="userEmail") {{ st.tr["Email"] }}
- input#userEmail(type="email")
- fieldset
- label(for="mailSubject") {{ st.tr["Subject"] }}
- input#mailSubject(type="text")
- fieldset
- textarea#mailContent(:placeholder="st.tr['Your message']")
+ fieldset
+ label(for="userEmail") {{ st.tr["Email"] }}
+ input#userEmail(type="email" :value="st.user.email")
+ fieldset
+ label(for="mailSubject") {{ st.tr["Subject"] }}
+ input#mailSubject(type="text")
+ fieldset
+ textarea#mailContent(:placeholder="st.tr['Your message']")
button(@click="trySendMessage()") {{ st.tr["Send"] }}
#dialog.text-center {{ st.tr[infoMsg] }}