div
input#modalUser.modal(
type="checkbox"
@change="trySetEnterTime($event)"
)
div(
role="dialog"
data-checkbox="modalUser"
)
.card
label.modal-close(for="modalUser")
h3.section {{ st.tr[stage] }}
div(@keyup.enter="onSubmit()")
div(v-show="stage!='Login'")
fieldset
label(for="u_username") {{ st.tr["User name"] }}
input#u_username(
type="text"
v-model="user.name"
)
fieldset
label(for="u_useremail") {{ st.tr["Email"] }}
input#u_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(@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] }}