57 lines
2.2 KiB
HTML
57 lines
2.2 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
<div class="auth-container">
|
|
<h1>Register for TimeTrack</h1>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<form method="POST" action="{{ url_for('register') }}" class="auth-form">
|
|
<div class="form-group">
|
|
<label for="company_code">Company Code</label>
|
|
<input type="text" id="company_code" name="company_code" class="form-control" required autofocus
|
|
placeholder="Enter your company code">
|
|
<small class="form-text text-muted">Get this code from your company administrator.</small>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" class="form-control" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="email">Email</label>
|
|
<input type="email" id="email" name="email" class="form-control" required>
|
|
<small class="form-text text-muted">A verification link will be sent to this email address.</small>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" class="form-control" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="confirm_password">Confirm Password</label>
|
|
<input type="password" id="confirm_password" name="confirm_password" class="form-control" required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary">Register</button>
|
|
</div>
|
|
|
|
<div class="auth-links">
|
|
<p>Already have an account? <a href="{{ url_for('login') }}">Login here</a></p>
|
|
</div>
|
|
|
|
<div class="verification-notice">
|
|
<p>After registration, you'll need to verify your email address before you can log in.</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %} |