Files
cmhub/apps/portal/templates/account/login.html
T

22 lines
660 B
HTML
Raw Normal View History

2026-07-03 11:27:45 +08:00
{% extends "portal/base.html" %}
{% block title %}登录 - cmhub{% endblock %}
{% block content %}
<section class="cmhub-panel">
<h1 class="h4 mb-3">登录</h1>
<form method="post" action="{% url 'portal-login' %}">
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.as_p }}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}">
{% endif %}
<button class="btn btn-primary w-100" type="submit">登录</button>
</form>
<div class="mt-3 text-secondary">
没有账号?<a href="{% url 'portal-signup' %}">注册</a>
</div>
</section>
{% endblock %}