X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=e5d27326c796dd853a3f77f26639120e04d0b946;hb=89a6214b27561878670914a65902aa51682efe61;hp=392d3196daf850b8ecde14f669cd44e416b36b90;hpb=9a3049f3a48fa4b3627ef26ccdf213a8e550d478;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index 392d3196..e5d27326 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,42 +1,48 @@
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")
- h3.section {{ st.tr["Contact form"] }}
- 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
+ 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] }}
@@ -81,9 +93,11 @@ export default {
[type="checkbox"].modal+div .card
max-width: 767px
max-height: 100%
+
textarea#mailContent
width: 100%
min-height: 100px
+
#dialog
padding: 5px
color: blue