X-Git-Url: https://git.auder.net/assets/rpsls.css?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FUpsertUser.vue;h=dc948cf1a4976ccf423e5362fd5d597e27e9828b;hb=7e476ce4b299c0a35529b80c730a452992453cc6;hp=6461657412754d1655540ac8b09fe4f8112cde6e;hpb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;p=vchess.git
diff --git a/client/src/components/UpsertUser.vue b/client/src/components/UpsertUser.vue
index 64616574..dc948cf1 100644
--- a/client/src/components/UpsertUser.vue
+++ b/client/src/components/UpsertUser.vue
@@ -1,69 +1,95 @@
div
- input#modalUser.modal(type="checkbox" @change="trySetEnterTime")
- div(role="dialog" data-checkbox="modalUser")
+ input#modalUser.modal(
+ type="checkbox"
+ @change="trySetEnterTime($event)"
+ )
+ div#upsertDiv(
+ role="dialog"
+ data-checkbox="modalUser"
+ )
.card
label.modal-close(for="modalUser")
- h3 {{ stage }}
- form#userForm(@submit.prevent="onSubmit()" @keyup.enter="onSubmit")
+ h3.section {{ st.tr[stage] }}
+ div(@keyup.enter="onSubmit()")
div(v-show="stage!='Login'")
fieldset
- label(for="username") Name
- input#username(type="text" v-model="user.name")
+ label(for="u_username") {{ st.tr["User name"] }}
+ input#u_username(
+ type="text"
+ v-model="user.name"
+ )
fieldset
- label(for="useremail") Email
- input#useremail(type="email" v-model="user.email")
+ label(for="u_useremail") {{ st.tr["Email"] }}
+ input#u_useremail(
+ type="email"
+ v-model="user.email"
+ )
fieldset
- label(for="notifyNew") Notify new moves & games
- input#notifyNew(type="checkbox" v-model="user.notify")
+ label(for="notifyNew") {{ st.tr["Notifications by email"] }}
+ input#notifyNew(
+ type="checkbox"
+ v-model="user.notify"
+ )
div(v-show="stage=='Login'")
fieldset
- label(for="nameOrEmail") Name or Email
- input#nameOrEmail(type="text" v-model="nameOrEmail")
+ label(for="nameOrEmail") {{ st.tr["Name or Email"] }}
+ input#nameOrEmail(
+ type="text"
+ v-model="nameOrEmail"
+ )
.button-group
- button#submit(type="button" @click="onSubmit()")
- span {{ submitMessage }}
- i.material-icons send
- button(v-if="stage!='Update'" @click="toggleStage()")
- span {{ stage=="Login" ? "Register" : "Login" }}
- button(v-else @click="doLogout()")
- span Logout
- #dialog(:style="{display: displayInfo}") {{ infoMsg }}
+ button(@click="onSubmit()")
+ span {{ st.tr[submitMessage] }}
+ button(
+ v-if="stage!='Update'"
+ type="button"
+ @click="toggleStage()"
+ )
+ span {{ st.tr[stage=="Login" ? "Register" : "Login"] }}
+ button(
+ v-else type="button"
+ @click="doLogout()"
+ )
+ span {{ st.tr["Logout"] }}
+ #dialog.text-center {{ st.tr[infoMsg] }}
+
+