div
input#modalUser.modal(type="checkbox" @change="trySetEnterTime")
div(role="dialog" data-checkbox="modalUser")
.card
label.modal-close(for="modalUser")
h3 {{ st.tr[stage] }}
form#userForm(@submit.prevent="onSubmit()" @keyup.enter="onSubmit")
div(v-show="stage!='Login'")
fieldset
label(for="username") {{ st.tr["Name"] }}
input#username(type="text" v-model="user.name")
fieldset
label(for="useremail") {{ st.tr["Email"] }}
input#useremail(type="email" v-model="user.email")
fieldset
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") {{ st.tr["Name or Email"] }}
input#nameOrEmail(type="text" v-model="nameOrEmail")
.button-group
button#submit(type="button" @click="onSubmit()")
span {{ st.tr[submitMessage] }}
button(v-if="stage!='Update'" @click="toggleStage()")
span {{ st.tr[stage=="Login" ? "Register" : "Login"] }}
button#logoutBtn(v-else @click="doLogout()")
span {{ st.tr["Logout"] }}
#dialog(:style="{display: displayInfo}") {{ st.tr[infoMsg] }}