X-Git-Url: https://git.auder.net/pieces/Checkered/cp.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=14273b082e8ea268d7746004324eda22a45f58b9;hb=a154d45ebb7e409cd714d0c517e79c8147bdea69;hp=aae0a50446cca441d539bee02ffedc9c0bfb84e5;hpb=603b8a8b4a854efb168953da70e7b43ae99b50d9;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index aae0a504..14273b08 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,40 +1,50 @@
div
- input#modalContact.modal(type="checkbox")
- div(role="dialog" aria-labelledby="contactTitle")
- form.card.smallpad
+ input#modalContact.modal(type="checkbox" @change="trySetEnterTime($event)")
+ div(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")
- 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!"] }}
+ 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
+ label(for="mailContent") {{ st.tr["Content"] }} *
+ br
+ textarea#mailContent
+ button(@click="trySendMessage()") {{ st.tr["Send"] }}
+ #dialog.text-center {{ st.tr[infoMsg] }}
+
+