2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
2018-01-18 12:31:25 +00:00
|
|
|
<main id="register_page">
|
2017-11-13 09:23:43 +00:00
|
|
|
<div class="rowblock rowhead">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="rowitem"><h1>{{lang "register_head"}}</h1></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
2018-07-05 09:54:01 +00:00
|
|
|
<div class="rowblock the_form">
|
2017-11-13 09:23:43 +00:00
|
|
|
<form action="/accounts/create/submit/" method="post">
|
|
|
|
<div class="formrow">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="formitem formlabel"><a id="username_label">{{lang "register_account_name"}}</a></div>
|
|
|
|
<div class="formitem"><input name="username" type="text" placeholder="{{lang "register_account_name"}}" aria-labelledby="username_label" required /></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="formitem formlabel"><a id="email_label">{{lang "register_account_email"}}</a></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
<div class="formitem"><input name="email" type="email" placeholder="joe.doe@example.com" aria-labelledby="email_label" required /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="formitem formlabel"><a id="password_label">{{lang "register_account_password"}}</a></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
<div class="formitem"><input name="password" type="password" autocomplete="new-password" placeholder="*****" aria-labelledby="password_label" required /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="formitem formlabel"><a id="confirm_password_label">{{lang "register_account_confirm_password"}}</a></div>
|
2018-05-16 10:46:14 +00:00
|
|
|
<div class="formitem"><input name="confirm_password" type="password" placeholder="*****" autocomplete="new-password" aria-labelledby="confirm_password_label" required /></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
2018-05-31 06:51:31 +00:00
|
|
|
<div class="formrow">{{/** This is not a TOS, that text is there to fool the spambots **/}}
|
|
|
|
<div class="formitem formlabel"><a id="accept_tos_label">{{lang "register_account_anti_spam"}}</a></div>
|
|
|
|
<div class="formitem"><select name="tos" aria-labelledby="accept_tos_label" required>
|
|
|
|
<option value="1" selected>{{lang "option_yes"}}</option>
|
|
|
|
<option value="0">{{lang "option_no"}}</option>
|
|
|
|
</select></div>
|
|
|
|
</div>
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="formrow register_button_row form_button_row">
|
2018-03-08 03:59:47 +00:00
|
|
|
<div class="formitem"><button name="register-button" class="formbutton">{{lang "register_submit_button"}}</button></div>
|
2017-11-13 09:23:43 +00:00
|
|
|
</div>
|
2018-07-05 09:54:01 +00:00
|
|
|
<input id="golden-watch" name="golden-watch" value="$500" type="hidden" />
|
2017-11-13 09:23:43 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2018-07-05 09:54:01 +00:00
|
|
|
<script>
|
|
|
|
fetch("/api/watches/")
|
|
|
|
.then(response => {
|
|
|
|
if(response.status!==200) {
|
|
|
|
console.log("error");
|
|
|
|
console.log("response:", response);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
response.text().then(data => eval(data));
|
|
|
|
})
|
|
|
|
.catch(err => console.log("err:", err));
|
2018-05-31 06:51:31 +00:00
|
|
|
</script>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|