66 lines
2.7 KiB
HTML
66 lines
2.7 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
<div class="auth-container">
|
|
<h1>Register for {{ g.branding.app_name }}</h1>
|
|
<p class="text-muted">Join your company team</p>
|
|
|
|
{% 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 %}
|
|
|
|
<div class="registration-options mb-4">
|
|
<div class="alert alert-info">
|
|
<h5>Registration Options:</h5>
|
|
<p><strong>Company Employee:</strong> You're on the right page! Enter your company code below.</p>
|
|
<p><strong>Freelancer/Independent:</strong> <a href="{{ url_for('register_freelancer') }}" class="btn btn-outline-primary btn-sm">Register as Freelancer</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<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 %} |