<commit_before>{assign var='page_title' value='Sign up for a new account' nav_tab='signup'}
{include file='inc_head.txt'}

<div class="col-md-8 col-md-offset-2 blah-blah-blah">

	{if $error_missing}		<p class="alert alert-error">Please fill out all the fields</p>{/if}
	{if $error_email_taken}		<p class="alert alert-error">Email address already registered.</p>{/if}
	{if $error_username_taken}	<p class="alert alert-error">Username is taken.</p>{/if}
	{if $error_failed}		<p class="alert alert-error">Failed for an unknown reason :(</p>{/if}

	<form action="{$cfg.abs_root_url}signup/" method="POST" accept-encoding="UTF-8" class="form" role="form" id="signup">
		{$crumb_key|crumb_input}
		<input type="hidden" name="signup" value="1" />
		<input type="hidden" name="redir" value="{$redir|escape}" />

	        <div class="form-group{if $error_missing && !$username} error{/if}">
			<label class="control-label" for="username">username</label>
			<input type="text" name="username" size="40" value="{$username|escape}" class="form-control" />
		</div>
			
	        <div class="form-group{if $error_missing && !$email} error{/if}">
			<label class="control-label" for="email">email address</label>
			<input type="email" name="email" size="40" value="{if $email}{$email|escape}{elseif $invite}{$invite.email|escape}{else}{/if}" class="form-control" />
		</div>

	        <div class="form-group{if $error_missing && !$password} error{/if}">
			<label class="control-label" for="password">password</label>
			<input type="password" name="password" size="40" value="{$password|escape}" class="form-control" />
		</div>

		<div class="form-group">
			<input type="checkbox" id="tos" name="tos" />
			<label for="tos">By signing up you are agreeing to the <a href="{$cfg.abs_root_url}" target="_tos"><span class="hey-look">{$cfg.site_name|escape}</span> terms of service</a>.
			</label>
		</div>

	        <div class="form-group text-center" style="margin-top:2em; margin-bottom:4em;">
			<input type="submit" class="btn btn-primary" value="CREATE YOUR ACCOUNT"/>
		</div>

	</form>

<div class="text-center">
			<p><small>	     
			Do you already have an account? <a href="{$cfg.abs_root_url}signin/">Sign in here</a>. 
			</small></p>
</div>

</div>

<script type="text/javascript">
{literal}
$(document).ready(function(){

	$("#signup").submit(function(){

		var tos = $("#tos");

		if (! tos.attr("checked")){
			alert("You forgot to agree to the terms of service!");
			return false;
		}
	});
});
{/literal}
</script>

{include file='inc_foot.txt'}
<commit_msg>:dizzy: page_signup.txt<commit_after>{assign var='page_title' value='Sign up for a new account' nav_tab='signup'}
{include file='inc_head.txt'}

<div class="container">
<div class="col-md-8 col-md-offset-2 blah-blah-blah">

	{if $error_missing}		<p class="alert alert-error">Please fill out all the fields</p>{/if}
	{if $error_email_taken}		<p class="alert alert-error">Email address already registered.</p>{/if}
	{if $error_username_taken}	<p class="alert alert-error">Username is taken.</p>{/if}
	{if $error_failed}		<p class="alert alert-error">Failed for an unknown reason :(</p>{/if}

	<form action="{$cfg.abs_root_url}signup/" method="POST" accept-encoding="UTF-8" class="form" role="form" id="signup">
		{$crumb_key|crumb_input}
		<input type="hidden" name="signup" value="1" />
		<input type="hidden" name="redir" value="{$redir|escape}" />

	        <div class="form-group{if $error_missing && !$username} error{/if}">
			<label class="control-label" for="username">username</label>
			<input type="text" name="username" size="40" value="{$username|escape}" class="form-control" />
		</div>

	        <div class="form-group{if $error_missing && !$email} error{/if}">
			<label class="control-label" for="email">email address</label>
			<input type="email" name="email" size="40" value="{if $email}{$email|escape}{elseif $invite}{$invite.email|escape}{else}{/if}" class="form-control" />
		</div>

	        <div class="form-group{if $error_missing && !$password} error{/if}">
			<label class="control-label" for="password">password</label>
			<input type="password" name="password" size="40" value="{$password|escape}" class="form-control" />
		</div>

		<div class="form-group">
			<input type="checkbox" id="tos" name="tos" />
			<label for="tos">By signing up you are agreeing to the <a href="{$cfg.abs_root_url}" target="_tos"><span class="hey-look">{$cfg.site_name|escape}</span> terms of service</a>.
			</label>
		</div>

	        <div class="form-group text-center" style="margin-top:2em; margin-bottom:4em;">
			<input type="submit" class="btn btn-primary" value="CREATE YOUR ACCOUNT"/>
		</div>

	</form>

<div class="text-center">
			<p><small>
			Do you already have an account? <a href="{$cfg.abs_root_url}signin/">Sign in here</a>.
			</small></p>
</div>

</div>
</div>

<script type="text/javascript">
{literal}
$(document).ready(function(){

	$("#signup").submit(function(){

		var tos = $("#tos");

		if (! tos.attr("checked")){
			alert("You forgot to agree to the terms of service!");
			return false;
		}
	});
});
{/literal}
</script>

{include file='inc_foot.txt'}

{'fraction_non_alphanumeric': 0.2092301725809579, 'fraction_numerical': 0.004653868528214078, 'mean_word_length': 4.963005780346821, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3925826', 'n_tokens_mistral': 1907, 'n_tokens_neox': 1780, 'n_words': 390}