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
|
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2025 metamuffin <metamuffin.org>
*/
use crate::locale::{Language, tr, trs};
use jellycommon::routes::u_account_login;
markup::define! {
AccountRegister<'a>(lang: &'a Language) {
form.account[method="POST", action=""] {
h1 { @trs(&lang, "account.register") }
label[for="inp-invitation"] { @trs(&lang, "account.register.invitation") }
input[type="text", id="inp-invitation", name="invitation"]; br;
label[for="inp-username"] { @trs(&lang, "account.username") }
input[type="text", id="inp-username", name="username"]; br;
label[for="inp-password"] { @trs(&lang, "account.password") }
input[type="password", id="inp-password", name="password"]; br;
input[type="submit", value=&*tr(**lang, "account.register.submit")];
p { @trs(&lang, "account.register.login") " " a[href=u_account_login()] { @trs(&lang, "account.register.login_here") } }
}
}
}
|