45 lines
No EOL
1.4 KiB
HTML
45 lines
No EOL
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Register - Flask Files{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="auth-container">
|
|
<h2>Create an Account</h2>
|
|
|
|
<form method="POST" action="{{ url_for('auth.register') }}" class="auth-form">
|
|
{{ form.hidden_tag() }}
|
|
|
|
<div class="form-group">
|
|
{{ form.username.label }}
|
|
{{ form.username(size=32, class="form-control") }}
|
|
{% for error in form.username.errors %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{{ form.password.label }}
|
|
{{ form.password(size=32, class="form-control") }}
|
|
{% for error in form.password.errors %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{{ form.password2.label }}
|
|
{{ form.password2(size=32, class="form-control") }}
|
|
{% for error in form.password2.errors %}
|
|
<span class="error">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
{{ form.submit(class="btn primary") }}
|
|
</div>
|
|
</form>
|
|
|
|
<div class="auth-links">
|
|
<p>Already have an account? <a href="{{ url_for('auth.login') }}">Sign in</a></p>
|
|
</div>
|
|
</section>
|
|
{% endblock %} |