- Introduced a new CSS file for form styles (forms.css) to enhance form layout and design. - Removed deprecated button styles from imports.css and updated button classes across templates to use the new utility classes. - Updated various templates to reflect the new button styles, ensuring a consistent look and feel throughout the application. - Refactored form-related styles in main.css and removed redundant styles from projects.css and scenarios.css. - Ensured responsive design adjustments for form actions in smaller viewports.
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
{% extends "base.html" %} {% block title %}Register{% endblock %} {% block
|
|
content %}
|
|
<div class="container">
|
|
<h1>Register</h1>
|
|
{% if errors %}
|
|
<div class="alert alert-error">
|
|
<ul>
|
|
{% for error in errors %}
|
|
<li>{{ error }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
<form id="register-form" method="post" action="{{ form_action }}">
|
|
<div class="form-group">
|
|
<label for="username">Username:</label>
|
|
<input
|
|
type="text"
|
|
id="username"
|
|
name="username"
|
|
value="{{ form_data.username if form_data else '' }}"
|
|
required
|
|
/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="email">Email:</label>
|
|
<input
|
|
type="email"
|
|
id="email"
|
|
name="email"
|
|
value="{{ form_data.email if form_data else '' }}"
|
|
required
|
|
/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password:</label>
|
|
<input type="password" id="password" name="password" required />
|
|
</div>
|
|
<button type="submit" class="btn btn--primary">Register</button>
|
|
</form>
|
|
<p>Already have an account? <a href="/login">Login here</a></p>
|
|
</div>
|
|
{% endblock %}
|