mirror of https://github.com/jumpserver/jumpserver
fix(authentication): 调整登录页面样式
parent
c277aec561
commit
2f11a70341
|
@ -67,9 +67,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="box-3">
|
<div class="box-3">
|
||||||
<div style="background-color: white">
|
<div style="background-color: white">
|
||||||
<div style="margin-top: 20px;padding-top: 40px;padding-left: 20px;padding-right: 20px;height: 80px">
|
{% if form.challenge %}
|
||||||
<span style="font-size: 21px;font-weight:400;color: #151515;letter-spacing: 0;">{{ JMS_TITLE }}</span>
|
<div style="margin-top: 20px;padding-top: 30px;padding-left: 20px;padding-right: 20px;height: 60px">
|
||||||
</div>
|
{% else %}
|
||||||
|
<div style="margin-top: 20px;padding-top: 40px;padding-left: 20px;padding-right: 20px;height: 80px">
|
||||||
|
{% endif %}
|
||||||
|
<span style="font-size: 21px;font-weight:400;color: #151515;letter-spacing: 0;">{{ JMS_TITLE }}</span>
|
||||||
|
</div>
|
||||||
<div style="font-size: 12px;color: #999999;letter-spacing: 0;line-height: 18px;margin-top: 18px">
|
<div style="font-size: 12px;color: #999999;letter-spacing: 0;line-height: 18px;margin-top: 18px">
|
||||||
{% trans 'Welcome back, please enter username and password to login' %}
|
{% trans 'Welcome back, please enter username and password to login' %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,9 +84,13 @@
|
||||||
<form id="contact-form" action="" method="post" role="form" novalidate="novalidate">
|
<form id="contact-form" action="" method="post" role="form" novalidate="novalidate">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
<div style="height: 70px;color: red;line-height: 17px;">
|
{% if form.challenge %}
|
||||||
<p class="red-fonts">{{ form.non_field_errors.as_text }}</p>
|
<div style="height: 50px;color: red;line-height: 17px;">
|
||||||
</div>
|
{% else %}
|
||||||
|
<div style="height: 70px;color: red;line-height: 17px;">
|
||||||
|
{% endif %}
|
||||||
|
<p class="red-fonts">{{ form.non_field_errors.as_text }}</p>
|
||||||
|
</div>
|
||||||
{% elif form.errors.captcha %}
|
{% elif form.errors.captcha %}
|
||||||
<p class="red-fonts">{% trans 'Captcha invalid' %}</p>
|
<p class="red-fonts">{% trans 'Captcha invalid' %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue