-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsign_in_dialog.html.mu
134 lines (125 loc) · 2.86 KB
/
sign_in_dialog.html.mu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<dlg>
<content>
<style>
.sign-in-logo {
align-self: center;
}
.sign-in-slides {
align-self: center;
width: 360px;
padding: 1em 2em;
}
.sign-in-slides .btn {
//margin: .25em 0;
}
#usr_form {
grid-template-areas:
"email"
"name"
"lang"
"country"
"theme"
"auth_sign_out_button"
"auth_sign_in_button"
}
#auth_sign_out_button,
#auth_sign_in_button {
padding-top : .5em;
padding-bottom : .5em;
margin-top : .5em;
margin-bottom : .5em;
}
.sign-in-email-button,
.sign-in-code-button
{
margin-top: .5em;
}
.sign-in-splash-img {
background-image: url("/login-bg.jpg");
background-position: center;
}
.dlg-head-split {
display: flex;
justify-content: space-between;
}
.sign-in-lang-dropdown {
align-self: center;
margin-left: 1em;
}
</style>
<script runit>
this.add(bare_nav({
id: 'auth_pick_lang_nav',
rowset: {
fields: [
{
name: 'lang',
lookup_rowset_name: 'pick_lang',
lookup_cols: 'lang',
display_col: 'name',
}
],
rows: [
[lang()],
],
},
}))
</script>
<img class=sign-in-logo src=/sign-in-logo.png onerror="this.style.display='none'">
<slides class=sign-in-slides>
<div class="frm">
<div class=dlg-head-split>
<div class=dlg-heading>
<t s=heading_sign_in>
Sign-in
</t>
</div>
{{#multilang}}
<lookup-dropdown class=sign-in-lang-dropdown
xnav=auth_pick_lang_nav
xcol=lang
rowset=pick_lang lookup_cols=lang display_col=name
.nolabel
></lookup-dropdown>
{{/multilang}}
</div>
<p small><t s=sign_in_greet>
The security of your account is important to us.
That is why instead of having you set up a hard-to-remember password,
we will send you a one-time activation code every time
you need to sign in.
</t></p>
<textedit
class=sign-in-email-edit
field_type=email
label:s:textedit_label_sign_in_email="E-mail address" focusfirst
></textedit>
<btn primary
class=sign-in-email-button
text:s:button_text_sign_in_email="E-mail me a sign-in code"
></btn>
</div>
<div class="frm">
<div class=dlg-heading><t s=heading_sign_in_enter_code>
Enter code
</t></div>
<p small><t s=sign_in_email_sent>
An e-mail was sent to you with a 6-digit sign-in code.
Enter the code in the box below to sign-in.
<br>
If you haven't received an email even after
a few minutes, please <a href="/sign-in">try again</a>.
</t></p>
<textedit
class=sign-in-code-edit
field_type=sign_in_code
label:s:textedit_label_sign_in_code="6-digit sign-in code"
focusfirst></textedit>
<btn primary
class=sign-in-code-button
text:s:button_text_sign_in="Sign-in"
></btn>
</div>
</slides>
</content>
</dlg>