div
input#modalUser.modal(
type="checkbox"
@change="trySetEnterTime($event)"
)
#upsertDiv(
role="dialog"
data-checkbox="modalUser"
)
.card
label.modal-close(for="modalUser")
h3.section
span.title {{ st.tr[stage] }}
| (
span.link(
v-if="stage!='Update'"
@click="toggleStage()"
)
| {{ st.tr[stage=="Login" ? "Register" : "Login"] }}
span.link(
v-else
@click="doLogout()"
)
| {{ st.tr["Logout"] }}
img(src="/images/icons/rightArrow.svg")
| )
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#submitBtn(@click="onSubmit()")
| {{ st.tr[submitMessage] }}
#dialog.text-center {{ st.tr[infoMsg] }}