X-Git-Url: https://git.auder.net/doc/screen_ranking.png?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=f9c5c60be61647345618c6f6180e8aa987b0f141;hb=aae89b49a846b2c101d74db7dff9151392d6db34;hp=aae0a50446cca441d539bee02ffedc9c0bfb84e5;hpb=603b8a8b4a854efb168953da70e7b43ae99b50d9;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index aae0a504..f9c5c60b 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,51 +1,66 @@
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")
+ 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] }}
+
+