Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262900
confirm-registration-email.views.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
confirm-registration-email.views.ts
View Options
import
{
BaseContext
}
from
"koa"
;
import
html
from
"../../../html"
;
import
navbar
from
"../../common/navbar"
;
import
input
from
"../../common/ui/input"
;
export
async
function
accountCreationDetailsForm
(
ctx
:
BaseContext
,
{
values
,
errors
,
}
:
{
values
:
{
token
:
string
;
email
:
string
;
username
?:
string
};
errors
?:
{
email
?:
string
;
username
?:
string
;
password
?:
string
};
}
)
{
errors
=
errors
||
{};
return
html
(
ctx
,
/* HTML */
`
${
navbar
(
ctx
)
}
<h1>
${
ctx
.
$app
.
i18n
(
"registration_intent_cta"
)
}
</h1>
<form method="POST" id="form" action="/account/confirm-registration-email">
<input type="hidden" name="token" value="
${
values
.
token
||
""
}
" />
<fieldset>
<legend>
${
ctx
.
$app
.
i18n
(
"registration_intent_form_description"
)
}
</legend>
${
input
({
name
:
"email"
,
type
:
"email"
,
value
:
values
.
email
||
""
,
readonly
:
true
,
error
:
""
,
}
)}
${
input
({
name
:
"username"
,
value
:
values
.
username
,
error
:
errors
.
username
||
""
,
type
:
"text"
,
}
)}
${
input
({
name
:
"password"
,
value
:
""
,
error
:
errors
.
password
||
""
,
type
:
"password"
,
}
)}
<input
type="submit"
value="
${
ctx
.
$app
.
i18n
(
"registration_intent_cta"
)
}
"
/>
</fieldset>
</form>
`
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 24, 15:16 (17 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601625
Default Alt Text
confirm-registration-email.views.ts (1 KB)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment