X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=e5d27326c796dd853a3f77f26639120e04d0b946;hb=54ec15ebc0cc874cb40307d0d674964b2f0e11a4;hp=45b7c011c4b39dd2bee67abbcaed767b1c54fb7e;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index 45b7c011..e5d27326 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,76 +1,104 @@
div
- input#modalContact.modal(type="checkbox")
- div(role="dialog" data-checkbox="modalContact"
- 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 {{ st.tr["Contact form"] }}
fieldset
label(for="userEmail") {{ st.tr["Email"] }}
- input#userEmail(type="email")
+ input#userEmail(type="email" :value="st.user.email")
fieldset
label(for="mailSubject") {{ st.tr["Subject"] }}
input#mailSubject(type="text")
fieldset
- label(for="mailContent") {{ st.tr["Content"] }}
- br
- textarea#mailContent
- fieldset
- button(type="button" @click="trySendMessage") Send
- p#emailSent {{ st.tr["Email sent!"] }}
+ textarea#mailContent(:placeholder="st.tr['Your message']")
+ button(@click="trySendMessage()") {{ st.tr["Send"] }}
+ #dialog.text-center {{ st.tr[infoMsg] }}