45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
<header>
|
|
<h2>{ %community.name }</h2>
|
|
</header>
|
|
<form action="/signup" method="post" enctype="multipart/form-data">
|
|
<h3>Sign Up</h3>
|
|
{#if .error_msg |$msg| =}
|
|
<div class="error">Error: {$msg}</div>
|
|
{= /if}
|
|
{#if .invite |$invite| =}
|
|
<div>
|
|
<div>You are about to accept an invite from:</div>
|
|
{#template mini-user $invite.creator}
|
|
{#if @isTag($invite.kind, community_owner) =}
|
|
<div>This act will make your new account the owner of { %community.name }.</div>
|
|
{/if =}
|
|
</div>
|
|
{=/if}
|
|
<label>
|
|
<div>Username <span class="required">(required)</span></div>
|
|
<div class="textinput username">
|
|
<span class="prefix">@</span>
|
|
<input type="text" name="username" placeholder="xion" />
|
|
<span class="suffix">@{ %community.host }</span>
|
|
</div>
|
|
<div class="form-helpinfo">Up to 32 characters, allows alphanumeric characters and underscores.</div>
|
|
</label>
|
|
<label>
|
|
<div>Password <span class="required">(required)</span></div>
|
|
<div class="textinput">
|
|
<span class="prefix"><i class="fa-solid fa-key fa-fw"></i></span>
|
|
<input type="password" name="password" placeholder="hunter2" />
|
|
</div>
|
|
</label>
|
|
<label>
|
|
<div>Email</div>
|
|
<div class="textinput">
|
|
<span class="prefix"><i class="fa-solid fa-envelope fa-fw"></i></span>
|
|
<input type="email" name="email" placeholder="me@example.com" />
|
|
</div>
|
|
</label>
|
|
{#if .invite |$invite| =}
|
|
<input style="display: none" type="text" name="invite_code" value="{$invite.code}" />
|
|
{/if =}
|
|
<button type="submit">Sign up</button>
|
|
</form>
|