fediglam/src/main/controllers/web/signup.tmpl.html

46 lines
1.6 KiB
HTML
Raw Normal View History

2022-12-10 09:42:07 +00:00
<header>
<h2>{ %community.name }</h2>
</header>
2022-12-12 04:36:22 +00:00
<form action="/signup" method="post" enctype="multipart/form-data">
2022-12-10 09:42:07 +00:00
<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>
2022-12-12 04:23:20 +00:00
{#template mini-user $invite.creator}
2023-01-04 19:03:23 +00:00
{#if @isTag($invite.meta.kind, community_owner) =}
2022-12-10 10:45:16 +00:00
<div>This act will make your new account the owner of { %community.name }.</div>
2022-12-10 09:42:07 +00:00
{/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>
2022-12-10 10:45:16 +00:00
<input type="email" name="email" placeholder="me@example.com" />
2022-12-10 09:42:07 +00:00
</div>
</label>
{#if .invite |$invite| =}
2023-01-04 19:03:23 +00:00
<input style="display: none" type="text" name="invite_code" value="{$invite.meta.code}" />
2022-12-10 09:42:07 +00:00
{/if =}
<button type="submit">Sign up</button>
</form>