Skip to content

Node.js based forum software built for the modern web

1.2 KB
Raw Blame
<div class="row">
	<div class="col-12 col-sm-8 offset-sm-2">
		<h1 class="text-center fs-5">
			{{{ if register }}}{{tx("register:interstitial.intro-new")}}{{{ else }}}{{tx("register:interstitial.intro")}}{{{ end }}}
		</h1>

		{{{ if errors.length }}}
		<div class="alert alert-warning">
			<p>
				{{tx("register:interstitial.errors-found")}}
			</p>
			<ul>
				{{{each errors}}}
				<li>{{tx(@value)}}</li>
				{{{end}}}
			</ul>
		</div>
		{{{ end }}}
	</div>
</div>

<form role="form" method="post" action="{config.relative_path}/register/complete" enctype="multipart/form-data">
	<input type="hidden" name="csrf_token" value="{config.csrf_token}" />

	{{{each sections}}}
	<div class="row mb-3">
		<div class="col-12 col-sm-8 offset-sm-2">
			<div class="card">
				<div class="card-body">
					{{@value}}
				</div>
			</div>
		</div>
	</div>
	{{{end}}}

	<div class="row mt-3">
		<div class="col-12 col-sm-8 offset-sm-2 d-grid">
			<button class="btn btn-primary">{{tx("topic:composer.submit")}}</button>
			<button class="btn btn-link" formaction="{config.relative_path}/register/abort">{{{ if register }}}{{tx("register:cancel-registration")}}{{{ else }}}{{tx("modules:bootbox.cancel")}}{{{ end }}}</button>
		</div>
	</div>
</form>