div
input#modalUser.modal(type="checkbox" @change="trySetEnterTime")
div(role="dialog" data-checkbox="modalUser")
.card
label.modal-close(for="modalUser")
h3 {{ stage }}
form#userForm(@submit.prevent="onSubmit()" @keyup.enter="onSubmit")
div(v-show="stage!='Login'")
fieldset
label(for="username") Name
input#username(type="text" v-model="user.name")
fieldset
label(for="useremail") Email
input#useremail(type="email" v-model="user.email")
fieldset
label(for="notifyNew") Notify new moves & games
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")
.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 }}