contentdb/app/templates/users/claim_forums.html

93 lines
2.8 KiB
HTML
Raw Normal View History

2020-12-22 11:58:43 +01:00
{% extends "base.html" %}
{% block title %}
Create Account from Forums User
{% endblock %}
{% block content %}
2021-02-23 00:45:20 +01:00
<h1>{{ self.title() }}</h1>
2020-12-22 11:58:43 +01:00
2021-02-23 00:45:20 +01:00
<h2>{{ _("Confirm Your Account") }}</h2>
2020-12-22 11:58:43 +01:00
2021-02-23 00:45:20 +01:00
<p>
2022-01-08 00:27:00 +01:00
{{ _("You'll need to use prove that you have access to your forum account using one of the options below.") }}<br>
{{ _("This is so ContentDB can link your account to your forum account.") }}
2021-02-23 00:45:20 +01:00
</p>
2020-12-22 11:58:43 +01:00
2021-02-23 00:45:20 +01:00
<p>
2022-01-08 00:27:00 +01:00
{{ _("Don't have a forums account?") }}
{{ _("You can still <a href='%(url)s'>sign up without one</a>.", url=url_for('users.register')) }}
2021-02-23 00:45:20 +01:00
</p>
2020-12-22 11:58:43 +01:00
2021-02-23 00:45:20 +01:00
<div class="row mt-5">
<div class="col-sm-6">
2020-12-22 11:58:43 +01:00
<div class="card">
<div class="card-header">
2022-01-08 00:27:00 +01:00
<span class="badge badge-pill badge-dark mr-2">{{ _("Option 1") }}</span>
{{ _("Use GitHub field in forum profile") }}
2020-12-22 11:58:43 +01:00
</div>
<form method="post" class="card-body" action="">
<input class="form-control" type="hidden" name="claim_type" value="github">
<input class="form-control" type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<p>
2022-01-08 00:27:00 +01:00
{{ _("Enter your forum username here:") }}
2020-12-22 11:58:43 +01:00
</p>
<input class="form-control my-4" type="text" name="username" value="{{ username }}"
2022-01-08 00:27:00 +01:00
placeholder="{{ _('Forum username') }}" pattern="[a-zA-Z0-9._ -]+"
title="{{ _('Only a-zA-Z0-9._ allowed') }}" required>
2020-12-22 11:58:43 +01:00
<p>
2022-01-08 00:27:00 +01:00
{{ _("You'll need to have the GitHub field in your forum profile filled out.") }}
{{ _("Log into the forum and <a href='https://forum.minetest.net/ucp.php?i=173'>do that here</a>.") }}
2020-12-22 11:58:43 +01:00
</p>
2022-01-08 00:27:00 +01:00
<input class="btn btn-primary" type="submit" value="{{ _('Next: log in with GitHub') }}">
2020-12-22 11:58:43 +01:00
</form>
</div>
2021-02-23 00:45:20 +01:00
</div>
2020-12-22 11:58:43 +01:00
2021-02-23 00:45:20 +01:00
<div class="col-sm-6">
2020-12-22 11:58:43 +01:00
<div class="card">
<div class="card-header">
2022-01-08 00:27:00 +01:00
<span class="badge badge-pill badge-dark mr-2">{{ _("Option 2") }}</span>
{{ _("Verification token") }}
2020-12-22 11:58:43 +01:00
</div>
<form method="post" class="card-body" action="">
<input type="hidden" name="claim_type" value="forum">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<p>
2022-01-08 00:27:00 +01:00
{{ _("Enter your forum username here:") }}
2020-12-22 11:58:43 +01:00
</p>
<input class="form-control my-3" type="text" name="username" value="{{ username }}"
2022-01-08 00:27:00 +01:00
placeholder="{{ _('Forum username') }}" pattern="[a-zA-Z0-9._ -]+" title="{{ _('Only a-zA-Z0-9._ allowed') }}" required>
2020-12-22 11:58:43 +01:00
<p>
2022-01-08 02:49:13 +01:00
{{ _("Go to <a href='https://forum.minetest.net/ucp.php?i=profile&mode=signature'>User Control Panel > Profile > Edit signature</a>") }}
2020-12-22 11:58:43 +01:00
</p>
<p>
2022-01-08 00:27:00 +01:00
{{ _("Paste this into your signature:") }}
2020-12-22 11:58:43 +01:00
</p>
<input class="form-control my-3" type="text" value="{{ key }}" readonly size=32>
<p>
2022-01-08 00:27:00 +01:00
{{ _("Click next so we can check it.") }}
2020-12-22 11:58:43 +01:00
</p>
<p>
2022-01-08 00:27:00 +01:00
{{ _("Don't worry, you can remove it after this is done.") }}
2020-12-22 11:58:43 +01:00
</p>
2022-01-08 00:27:00 +01:00
<input class="btn btn-primary" type="submit" value="{{ _('Next') }}">
2020-12-22 11:58:43 +01:00
</form>
</div>
</div>
2021-02-23 00:45:20 +01:00
</div>
2020-12-22 11:58:43 +01:00
{% endblock %}